/* UUID Generator Styles */

#uuid-generator-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Output Section */
.uuid-output-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Version Selector */
.uuid-version-selector .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2355ddff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    padding: 0.4rem 1.75rem 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.uuid-version-selector .form-select:hover {
    border-color: #55ddff;
}

.uuid-version-selector .form-select:focus {
    border-color: #55ddff;
    box-shadow: 0 0 0 0.25rem rgba(85, 221, 255, 0.25);
    outline: none;
}

.uuid-version-selector .form-select option {
    background: #1a1a2e;
    color: white;
}

/* UUID Info text */
.uuid-info .text-muted,
#uuid-version-info {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Quantity Selector */
.uuid-quantity-selector label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.uuid-quantity-selector .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2355ddff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    padding: 0.4rem 1.75rem 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: auto;
    min-width: 70px;
}

.uuid-quantity-selector .form-select:hover {
    border-color: #55ddff;
}

.uuid-quantity-selector .form-select:focus {
    border-color: #55ddff;
    box-shadow: 0 0 0 0.25rem rgba(85, 221, 255, 0.25);
    outline: none;
}

.uuid-quantity-selector .form-select option {
    background: #1a1a2e;
    color: white;
}

/* UUID List Container */
.uuid-list-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.uuid-list-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.uuid-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.uuid-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.uuid-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(85, 221, 255, 0.3);
}

.uuid-list-item .uuid-text {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: white;
    letter-spacing: 0.5px;
}

.uuid-list-item .btn-copy-single {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.uuid-list-item .btn-copy-single:hover {
    color: #55ddff;
}

.uuid-list-item .btn-copy-single.copied {
    color: #2ed573;
}

/* Scrollbar for UUID list */
.uuid-list::-webkit-scrollbar {
    width: 6px;
}

.uuid-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.uuid-list::-webkit-scrollbar-thumb {
    background: rgba(85, 221, 255, 0.3);
    border-radius: 3px;
}

.uuid-list::-webkit-scrollbar-thumb:hover {
    background: rgba(85, 221, 255, 0.5);
}

/* Main UUID Input */
#main-uuid-input {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

#main-uuid-input:focus {
    border-color: #55ddff;
    box-shadow: 0 0 20px rgba(85, 221, 255, 0.3);
    outline: none;
}

/* Action Buttons */
.btn-action {
    background: linear-gradient(135deg, #55ddff, #4aa3ff);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(85, 221, 255, 0.3);
    color: white;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 221, 255, 0.4);
    color: white;
}

.btn-action.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Tabs Container */
.uuid-tabs-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    overflow: hidden;
}

/* Tabs Navigation */
.uuid-tabs-nav {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.uuid-tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.uuid-tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.uuid-tab-btn.active {
    color: #55ddff;
    background: rgba(85, 221, 255, 0.1);
}

.uuid-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #55ddff, #4aa3ff);
}

.uuid-tab-btn i {
    color: inherit;
}

/* Tabs Content */
.uuid-tabs-content {
    padding: 2rem;
}

.uuid-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.uuid-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* UUID Details Section */
.uuid-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.uuid-detail-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.uuid-detail-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.detail-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1rem;
    color: #55ddff;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* UUID Tips Section */
.uuid-tips {
    background: rgba(85, 221, 255, 0.1);
    border: 1px solid rgba(85, 221, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.uuid-tips h5 {
    color: #55ddff;
    margin-bottom: 1rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.tip-item i {
    color: #55ddff;
    margin-right: 0.5rem;
    margin-top: 0.2rem;
}

.tip-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Generator Navigation */
.generator-nav .btn-outline-light {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.generator-nav .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Animation for UUID generation */
.uuid-generating {
    animation: uuidPulse 0.5s ease-in-out;
}

@keyframes uuidPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Copy success animation */
.copy-success {
    animation: copyFlash 0.6s ease-in-out;
}

@keyframes copyFlash {
    0% { background-color: rgba(45, 213, 115, 0.2); }
    50% { background-color: rgba(45, 213, 115, 0.4); }
    100% { background-color: transparent; }
}

/* Responsive */
@media only screen and (max-width: 768px) {
    .uuid-output-section {
        padding: 1.25rem;
    }

    .uuid-output-section .d-flex.justify-content-between.align-items-center.mb-3 {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
    }

    .uuid-output-section .d-flex.align-items-center.gap-3 {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .uuid-output-section .d-flex.gap-2 {
        justify-content: center;
        width: 100%;
    }

    #main-uuid-input {
        font-size: 0.85rem;
        letter-spacing: 0.3px;
        padding: 0.75rem;
    }

    /* UUID info row on mobile */
    .uuid-info {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch !important;
    }

    .uuid-info .uuid-quantity-selector {
        justify-content: space-between;
        width: 100%;
    }

    .uuid-info #uuid-version-info {
        text-align: center;
    }

    /* UUID list on mobile */
    .uuid-list-item .uuid-text {
        font-size: 0.7rem;
        word-break: break-all;
    }

    .uuid-list-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch !important;
    }

    .uuid-list-header .uuid-list-count {
        text-align: center;
    }

    #btn-copy-all-uuids {
        width: 100%;
        justify-content: center;
    }

    .uuid-details {
        padding: 1.25rem;
    }

    .uuid-tips {
        padding: 1rem;
    }

    .tip-item span {
        font-size: 0.85rem;
    }

    .generator-nav .btn-outline-light {
        width: 100%;
        justify-content: center;
    }

    /* Action buttons on mobile */
    .btn-action.btn-sm {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

@media only screen and (max-width: 480px) {
    .uuid-output-section {
        padding: 1rem;
    }

    #main-uuid-input {
        font-size: 0.7rem;
        letter-spacing: 0;
    }

    .uuid-list-item .uuid-text {
        font-size: 0.65rem;
    }

    .detail-value {
        font-size: 0.8rem;
        word-break: break-all;
    }

    .uuid-detail-card {
        padding: 0.75rem;
    }

    .detail-label {
        font-size: 0.7rem;
    }

    /* Version selector on very small screens */
    .uuid-version-selector .form-select,
    .uuid-quantity-selector .form-select {
        font-size: 0.8rem;
        padding: 0.35rem 1.5rem 0.35rem 0.5rem;
    }

    .uuid-quantity-selector label {
        font-size: 0.8rem;
    }
}

/* Code Section */
.code-section {
    background: #0d1117;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.code-lang {
    font-size: 0.8rem;
    color: #55ddff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-version-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 2px;
}

.code-version-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-version-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.code-version-btn.active {
    background: linear-gradient(135deg, #55ddff, #4aa3ff);
    color: white;
}

.btn-copy-code {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy-code:hover {
    background: rgba(85, 221, 255, 0.2);
    border-color: #55ddff;
    color: #55ddff;
}

.code-block {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
    background: #0d1117;
}

.code-block code {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e6edf3;
    white-space: pre;
    display: block;
}

/* Responsive Tabs */
@media only screen and (max-width: 768px) {
    .uuid-tabs-container {
        margin-top: 1.5rem;
    }

    .uuid-tabs-nav {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .uuid-tab-btn {
        padding: 0.75rem 0.5rem;
        text-align: center;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .uuid-tab-btn i {
        display: none;
    }

    .uuid-tabs-content {
        padding: 1.25rem;
    }

    .code-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .code-header-left {
        justify-content: space-between;
    }

    .btn-copy-code {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .code-block {
        padding: 1rem;
    }

    .code-block code {
        font-size: 0.7rem;
        line-height: 1.5;
    }
}

@media only screen and (max-width: 480px) {
    .uuid-tabs-content {
        padding: 1rem;
    }

    .code-block code {
        font-size: 0.65rem;
    }

    .code-lang {
        font-size: 0.7rem;
    }

    .code-version-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
}
