/* ====================================================================
   XTTS-2 ENTERPRISE - MAIN STYLESHEET
   ====================================================================
   
   Organized CSS for Professional Voice Cloning & Audiobook Converter
   Version: 3.0.0
   
   SECTIONS:
   1. CSS Variables & Base Styles
   2. Theme Variants (Light, Sunny, Ocean, Professional)
   3. Layout Components (Header, Footer, Main)
   4. Form Elements & Inputs
   5. Buttons & Interactive Elements
   6. Progress & Status Display
   7. Modals & Overlays
   8. Responsive Design
   9. Animations & Transitions
   10. Utility Classes
   
   ==================================================================== */

/* ====================================================================
   SECTION 1: CSS VARIABLES & BASE STYLES
   ==================================================================== */

/* Font Awesome replacement - hide icon elements or use Unicode fallbacks */
.fas, .far, .fab, .fa {
    font-family: inherit;
    font-style: normal;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #0ea5e9;
    --bg-dark: #0f172a;
    --bg-darker: #0a0f1c;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border: #475569;
    --border-light: #64748b;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-success: linear-gradient(135deg, var(--success), #059669);
}

/* ====================================================================
   SECTION 2: THEME VARIANTS
   ==================================================================== */

/* Light Theme */
[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-darker: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Sunny Theme */
[data-theme="sunny"] {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --secondary: #f97316;
    --bg-dark: #fff7ed;
    --bg-darker: #ffedd5;
    --bg-card: #ffffff;
    --bg-hover: #fed7aa;
    --text-primary: #7c2d12;
    --text-secondary: #9a3412;
    --text-muted: #fb923c;
    --border: #fdba74;
    --border-light: #fed7aa;
    --shadow: 0 10px 25px rgba(245, 158, 11, 0.1);
}

/* Ocean Theme */
[data-theme="ocean"] {
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --secondary: #0ea5e9;
    --bg-dark: #ecfeff;
    --bg-darker: #cffafe;
    --bg-card: #ffffff;
    --bg-hover: #a5f3fc;
    --text-primary: #164e63;
    --text-secondary: #155e75;
    --text-muted: #22d3ee;
    --border: #67e8f9;
    --border-light: #a5f3fc;
    --shadow: 0 10px 25px rgba(6, 182, 212, 0.1);
}

/* Professional Theme */
[data-theme="professional"] {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #7c3aed;
    --bg-dark: #fafafa;
    --bg-darker: #f5f5f5;
    --bg-card: #ffffff;
    --bg-hover: #e5e5e5;
    --text-primary: #262626;
    --text-secondary: #525252;
    --text-muted: #a3a3a3;
    --border: #d4d4d4;
    --border-light: #e5e5e5;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* Auth Overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.auth-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.auth-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ====================================================================
   SECTION 3: LAYOUT COMPONENTS
   ==================================================================== */

/* Header */
header {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
}

.brand-text h1 {
    font-size: 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    font-weight: 700;
}

.brand-text p {
    color: var(--text-secondary);
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid var(--border);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.server-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* Main Layout */
main {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    main {
        grid-template-columns: 1fr;
    }
}

/* Panels */
.panel {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.panel:hover {
    transform: translateY(-2px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.panel-header h2 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-badge {
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 30px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
    background: var(--bg-card);
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.footer-links a {
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.2s;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.footer-links a:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ====================================================================
   SECTION 4: FORM ELEMENTS & INPUTS
   ==================================================================== */

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-textarea {
    min-height: 350px;
    resize: vertical;
    line-height: 1.6;
}

/* File Upload */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.upload-area.drag-over {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

/* Speaker Selection */
.speaker-list {
    max-height: 350px;
    overflow-y: auto;
    margin-top: 10px;
}

.speaker-card {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.speaker-card:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.speaker-card.selected {
    border-color: var(--secondary);
    background: rgba(139, 92, 246, 0.1);
}

.speaker-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.speaker-info {
    flex: 1;
}

.speaker-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.speaker-type {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

.type-uploaded {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.type-preloaded {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.type-default {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
}

.voice-play-btn, .voice-delete-btn {
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.voice-play-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.1);
}

.voice-delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

/* ====================================================================
   SECTION 5: BUTTONS & INTERACTIVE ELEMENTS
   ==================================================================== */

button {
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    font-weight: 600;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border: 1px solid var(--secondary);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.3);
}

.btn-outline {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(99, 102, 241, 0.25));
    color: #60a5fa;
    border: 2px solid rgba(59, 130, 246, 0.5);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.btn-outline:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(99, 102, 241, 0.4));
    border-color: #3b82f6;
    color: #93c5fd;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
    font-size: 16px;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* ====================================================================
   SECTION 6: PROGRESS & STATUS DISPLAY
   ==================================================================== */

/* Progress */
.progress-container {
    margin: 25px 0;
    position: relative;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-bar {
    height: 10px;
    background: var(--border);
    border-radius: 5px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 10px;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Status Display */
.status-log {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
}

.log-entry {
    padding: 8px 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.log-time {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
    min-width: 60px;
}

.log-content {
    flex: 1;
}

/* Alerts & Toasts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: none;
    position: relative;
}

.alert.show {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* Download Section */
.download-section {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
    padding: 25px;
    margin-top: 30px;
    text-align: center;
    display: none;
}

.download-section.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--success);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s;
}

.download-link:hover {
    background: #0da271;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* Voice Preview */
.voice-preview {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* Text Stats */
.text-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Model Status */
.model-status {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin: 20px 0;
    border: 1px solid var(--border);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.status-label {
    color: var(--text-secondary);
    min-width: 100px;
}

.status-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Resource Monitor */
.resource-monitor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.resource-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border);
}

.resource-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.resource-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====================================================================
   SECTION 7: MODALS & OVERLAYS
   ==================================================================== */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 40px;
    border-radius: var(--radius);
    max-width: 800px;
    position: relative;
    box-shadow: var(--shadow);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    color: var(--primary);
    font-size: 28px;
}

.modal-close {
    font-size: 32px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--error);
}

.modal-body {
    line-height: 1.8;
    color: var(--text-secondary);
}

.modal-body h3 {
    color: var(--primary-light);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 20px;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.modal-body li {
    margin-bottom: 10px;
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--error);
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.info-box {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Theme Selector Styles */
.theme-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.theme-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

.theme-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: none;
    min-width: 180px;
}

.theme-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.theme-option {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.theme-option:hover {
    background: var(--bg-hover);
}

.theme-option.active {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--primary);
}

.theme-icon {
    font-size: 20px;
}

/* Feedback Section Styles */
.feedback-section {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.feedback-header h2 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.feedback-form {
    display: grid;
    gap: 20px;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.rating-stars {
    display: flex;
    gap: 8px;
}

.star {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s;
}

.star:hover, .star.active {
    color: var(--warning);
    transform: scale(1.2);
}

.feedback-type {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.type-btn {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
}

.type-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.type-btn.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.feedback-success {
    text-align: center;
    padding: 40px;
    display: none;
}

.feedback-success.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* ====================================================================
   SECTION 8: RESPONSIVE DESIGN
   ==================================================================== */

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .brand {
        flex-direction: column;
        gap: 15px;
    }

    .user-info {
        width: 100%;
        justify-content: center;
    }

    .panel {
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .tab {
        padding: 8px 15px;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 2px solid var(--primary);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    color: var(--primary);
}

.cookie-text p {
    color: var(--text-secondary);
}

.cookie-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-actions button {
        flex: 1;
    }
}

/* Language Selector Buttons (Footer) */
.language-option {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    font-weight: 500;
}

.language-option:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--text);
    transform: translateY(-1px);
}

/* Active language button - handled by TranslationService, but ensure consistency */
.language-option[data-lang].active,
.language-option.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--text);
}