/* Glassmorphism utilities */
.glass-panel {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
}

.glass-header {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Tab active state styles */
.tab-btn.active {
    background-color: rgba(31, 41, 55, 0.8);
    color: white;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Scrollbar styling for a premium feel */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0b0f19;
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* =======================================================================
   GRADIO REPLICATION THEME (PHASE 6)
   ======================================================================= */
   
/* Base dark background for Gradio panels */
.gr-bg {
    background-color: #0b0f19;
    color: #e5e7eb;
}

/* The sub-tabs at the top */
.gr-tabs-nav {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid #374151;
    padding: 0 1rem;
    margin-bottom: 1rem;
}
.gr-tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
}
.gr-tab-btn.active {
    color: #eab308; /* Golden text */
    border-bottom-color: #eab308;
}

/* Panel Box with rounded borders (like Prompt area) */
.gr-panel-box {
    border: 1px solid #374151;
    border-radius: 0.5rem;
    background: #1f2937;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

/* Form Labels */
.gr-label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Radios as pills */
.gr-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.gr-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    background: #111827;
    cursor: pointer;
    font-size: 0.875rem;
    color: #d1d5db;
    transition: all 0.2s;
}
.gr-radio-label:has(input:checked) {
    border-color: #eab308; /* Golden border */
}
.gr-radio-label input[type="radio"] {
    appearance: none;
    margin: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.gr-radio-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #4b5563; /* Inactive dot */
}
.gr-radio-label input[type="radio"]:checked ~ .gr-radio-dot {
    background: #eab308; /* Active golden dot */
}
.gr-radio-text-selected {
    display: none;
    color: #eab308;
    font-size: 0.65rem;
    margin-left: 0.25rem;
}
.gr-radio-label input[type="radio"]:checked ~ .gr-radio-text-selected {
    display: inline;
}

/* Primary Generate Button (Golden Gradient) */
.gr-btn-primary {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #854d0e;
    background: linear-gradient(180deg, #fcd34d 0%, #b45309 100%);
    color: #fffbeb;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    margin: 1rem 0;
    transition: opacity 0.2s;
}
.gr-btn-primary:hover {
    opacity: 0.9;
}

/* Sliders */
.gr-slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.gr-slider {
    flex-grow: 1;
    appearance: none;
    height: 4px;
    background: #374151;
    border-radius: 2px;
    outline: none;
}
.gr-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 2px solid #eab308;
}
.gr-slider-val {
    background: #111827;
    border: 1px solid #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    min-width: 2.5rem;
    text-align: center;
}

/* Magic Wand Button */
.gr-btn-magic {
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    color: #eab308;
    padding: 0.5rem;
    cursor: pointer;
}
.gr-btn-magic:hover {
    background: #4b5563;
}

/* Upload Box */
.gr-upload-box {
    border: 1px dashed #4b5563;
    border-radius: 0.5rem;
    background: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: pointer;
    color: #9ca3af;
    text-align: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
}
.gr-upload-box:hover {
    border-color: #6b7280;
    background: #1f2937;
}
.gr-upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.gr-upload-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
