/* ============================================
   Audio TTS - Sidebar Layout Styles v3.1
   ============================================ */

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.1);
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --elevenlabs: #10b981;

    /* Background - Dark Theme */
    --bg-main: #0f172a;
    --bg-sidebar: #0c1222;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-input: #0f172a;
    --bg-header: rgba(15, 23, 42, 0.95);

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Border */
    --border-color: #334155;
    --border-focus: #6366f1;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    --gradient-sidebar: linear-gradient(180deg, #0c1222 0%, #0f172a 100%);

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Sizing */
    --sidebar-width: 260px;
    --header-height: 64px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Light Theme */
body.light-theme {
    --bg-main: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-input: #f8fafc;
    --bg-header: rgba(255, 255, 255, 0.95);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    --gradient-sidebar: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body.light-theme::before {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Starfield Background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* ============================================
   Christmas Animations 🎄
   ============================================ */

/* Santa peeking from left sidebar */
.christmas-santa {
    position: fixed;
    left: 255px;
    top: 40%;
    z-index: 2;
    animation: santaPeek 10s ease-in-out infinite;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.christmas-santa .santa-face {
    font-size: 55px;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.4));
}

.christmas-santa .santa-wave {
    font-size: 30px;
    position: absolute;
    top: -5px;
    right: -20px;
    animation: wave 0.5s ease-in-out infinite alternate;
    transform-origin: bottom center;
}

@keyframes wave {
    from {
        transform: rotate(-15deg);
    }

    to {
        transform: rotate(15deg);
    }
}

@keyframes santaPeek {

    0%,
    100% {
        transform: translateX(-80px);
        opacity: 0;
    }

    10%,
    35% {
        transform: translateX(0);
        opacity: 1;
    }

    40% {
        transform: translateX(-80px);
        opacity: 0;
    }
}

/* Santa's sleigh flying across bottom - LEFT TO RIGHT */
.christmas-sleigh {
    position: fixed;
    bottom: 20%;
    left: -300px;
    font-size: 35px;
    z-index: 2;
    animation: sleighFly 15s linear infinite;
    pointer-events: none;
    filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.4));
    letter-spacing: -5px;
}

@keyframes sleighFly {
    0% {
        left: -300px;
        bottom: 20%;
    }

    20% {
        bottom: 25%;
    }

    40% {
        left: 30%;
        bottom: 18%;
    }

    60% {
        bottom: 28%;
    }

    80% {
        bottom: 22%;
    }

    100% {
        left: 110%;
        bottom: 25%;
    }
}


/* Snowflakes container */
.christmas-snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: white;
    opacity: 0.7;
    pointer-events: none;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}



/* ============================================
   App Layout
   ============================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Legacy .app class for compatibility */
.app {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--gradient-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

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

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header .logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.sidebar-header .logo-text {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-close {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
}

.nav-item:hover:not(.disabled) {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

.nav-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 12px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

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

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

.theme-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
}

.theme-switch {
    width: 36px;
    height: 20px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    position: relative;
    transition: background 0.3s;
}

.theme-toggle.light .theme-switch {
    background: var(--primary);
}

.theme-switch-handle {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.theme-toggle.light .theme-switch-handle {
    transform: translateX(16px);
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* ============================================
   Main Wrapper
   ============================================ */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Top Header
   ============================================ */
.top-header {
    height: var(--header-height);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

/* Legacy Header - for old layout compatibility */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

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

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

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

.status-dot.online {
    background: var(--success);
}

.status-dot.offline {
    background: var(--error);
    animation: none;
}

.status-text {
    font-size: 13px;
    color: var(--text-secondary);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* User Tokens */
.user-tokens {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--primary);
}

.tokens-icon {
    font-size: 14px;
}

.tokens-value {
    font-weight: 600;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.user-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.user-avatar {
    font-size: 16px;
}

.user-name {
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 200;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* Legacy User Header */
.user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.user-info {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.admin-link,
.settings-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.admin-link:hover,
.settings-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.logout-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: var(--error);
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    flex: 1;
    padding: 24px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.main {
    max-width: 900px;
    margin: 0 auto;
}

.module-content,
.provider-content {
    display: none;
}

.module-content.active,
.provider-content.active {
    display: block;
}

/* ============================================
   Provider Tabs (Legacy)
   ============================================ */
.provider-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-card);
    padding: 6px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.provider-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.provider-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.provider-tab.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.provider-icon {
    font-size: 18px;
}

.provider-name {
    font-weight: 500;
}

/* ============================================
   Announcements Banner
   ============================================ */
.announcements-banner {
    margin-bottom: 16px;
    padding: 0 24px;
}

.main-wrapper .announcements-banner {
    padding: 0;
    margin: 16px 24px 16px;
}

.announcement-item {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.announcement-item.info {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.announcement-item.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.announcement-item.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.announcement-item.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.announcement-content {
    flex: 1;
}

.announcement-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.announcement-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.announcement-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    opacity: 0.6;
}

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

/* Quota Warning */
.quota-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(239, 68, 68, 0.2) 100%);
    border: 1px solid var(--warning);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.main-wrapper .quota-warning {
    margin: 0 24px 16px;
}

.quota-warning-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.quota-warning-icon {
    font-size: 1.2rem;
}

.quota-warning-text {
    font-weight: 500;
    color: var(--warning);
}

.quota-warning-link {
    margin-left: auto;
    padding: 6px 12px;
    background: var(--warning);
    color: #000;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.quota-warning-link:hover {
    background: #d97706;
}

/* ============================================
   Tabs
   ============================================ */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-card);
    padding: 6px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.tab-icon {
    font-size: 18px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 24px 24px 0;
}

.card-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.card-body {
    padding: 24px;
}

/* ElevenLabs Card Accent */
.elevenlabs-card {
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-elevenlabs {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.btn-elevenlabs:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    resize: vertical;
}

.input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input::placeholder {
    color: var(--text-muted);
}

.input-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

select.input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-content {
    pointer-events: none;
}

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

.upload-zone p {
    color: var(--text-secondary);
    font-size: 15px;
}

.upload-zone a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.upload-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    margin-top: 12px;
}

.file-name {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.btn-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

/* Text Counter */
.text-counter {
    text-align: right;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Range Input */
.range-input {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    appearance: none;
    cursor: pointer;
}

.range-input::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s;
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-value {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* Settings Section */
.settings-section {
    margin: 24px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.settings-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.toggle-icon {
    font-size: 10px;
    transition: transform 0.3s;
}

.settings-section.open .toggle-icon {
    transform: rotate(180deg);
}

.settings-body {
    display: none;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.settings-section.open .settings-body {
    display: block;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.settings-hint {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Settings Section Large */
.settings-section-large {
    margin-bottom: 24px;
}

.settings-section-large h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon {
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

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

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* ============================================
   Audio Player
   ============================================ */
.audio-player {
    width: 100%;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
}

.result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================
   Task Status & Spinner
   ============================================ */
.task-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: var(--text-secondary);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner.large {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Voices List
   ============================================ */
.voices-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

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

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.voices-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.voice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.voice-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.voice-info {
    flex: 1;
}

.voice-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.voice-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.voice-badge {
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
}

.voice-badge.builtin {
    background: rgba(100, 116, 139, 0.2);
    color: var(--secondary);
}

.voice-actions {
    display: flex;
    gap: 8px;
}

/* Empty & Loading States */
.empty-state,
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ============================================
   Keys Management
   ============================================ */
.keys-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.keys-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.key-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
    gap: 12px;
}

.key-info {
    flex: 1;
    min-width: 200px;
}

.key-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.key-masked {
    font-family: monospace;
    font-size: 13px;
    color: var(--text-muted);
}

.key-tokens {
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-progress {
    width: 100px;
    height: 6px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.key-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.3s;
}

.key-actions {
    display: flex;
    gap: 8px;
}

.add-key-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Info Box */
.info-box {
    padding: 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
}

.info-box p {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box a {
    color: var(--primary);
}

.info-grid {
    display: grid;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 13px;
}

.info-value {
    font-weight: 500;
    font-size: 13px;
}

/* Checkbox */
.checkbox-group {
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* ============================================
   Toast
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.15);
}

.toast.error {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.15);
}

.toast.warning {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.15);
}

.toast-icon {
    font-size: 18px;
}

.toast-message {
    font-size: 14px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   Loading Overlay
   ============================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-primary);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .hamburger-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 0 16px;
    }

    .main-content {
        padding: 16px;
    }

    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 10px 14px;
        font-size: 12px;
    }

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

    .card-header,
    .card-body {
        padding: 16px;
    }

    .user-name {
        display: none;
    }

    .quota-warning,
    .main-wrapper .quota-warning {
        margin: 0 16px 16px;
    }

    .announcements-banner,
    .main-wrapper .announcements-banner {
        padding: 0 16px;
        margin: 0 0 16px;
    }

    .form-row {
        flex-direction: column;
    }

    .key-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .key-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-header {
        width: 100%;
        flex-wrap: wrap;
        margin-left: 0;
    }

    .provider-tabs {
        flex-direction: column;
    }

    .provider-tab {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 8px;
    }

    .user-tokens {
        padding: 6px 10px;
    }

    .tokens-icon {
        display: none;
    }

    .user-btn {
        padding: 6px 10px;
    }

    .dropdown-arrow {
        display: none;
    }

    .voice-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .voice-actions {
        width: 100%;
    }

    .voice-actions .btn {
        flex: 1;
    }

    .status-text {
        display: none;
    }
}

/* ============================================
   Recent Voices
   ============================================ */
.recent-voices-container {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.recent-voices-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.recent-clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.recent-clear-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.recent-voices-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.recent-voice-btn {
    padding: 6px 12px;
    background: var(--primary-light);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-voice-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================
   Enhanced Progress Bar
   ============================================ */
.progress-container {
    margin-bottom: 16px;
}

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

.progress-label {
    color: var(--text-primary);
    font-weight: 500;
}

.progress-eta {
    color: var(--text-muted);
    font-size: 12px;
}

.progress-bar-wrapper {
    height: 8px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-percentage {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Processing Status Enhanced */
.task-status-enhanced {
    text-align: center;
    padding: 24px;
}

.task-status-enhanced .spinner {
    margin: 0 auto 16px;
}

.task-status-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ============================================
   Keyboard Shortcuts Hint
   ============================================ */
.shortcuts-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.shortcuts-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
    color: var(--text-secondary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Tooltip for buttons */
.btn[data-shortcut]::after {
    content: attr(data-shortcut);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 100;
}

.btn[data-shortcut]:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 4px);
}

/* ============================================
   Audio History
   ============================================ */
.history-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.history-stats {
    margin-bottom: 16px;
}

.history-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 8px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
}

.history-stat .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.history-stat .stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.history-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.history-item-info {
    flex: 1;
    min-width: 0;
}

.history-item-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: var(--text-primary);
    word-break: break-word;
}

.history-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.history-provider {
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.history-provider.minimax {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.history-provider.elevenlabs {
    background: rgba(16, 185, 129, 0.1);
    color: var(--elevenlabs);
}

.history-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .history-item {
        flex-direction: column;
    }

    .history-item-actions {
        width: 100%;
    }

    .history-item-actions .btn {
        flex: 1;
    }

    .history-actions {
        flex-direction: column;
    }
}

/* ============================================
   Batch Processing
   ============================================ */
.batch-step {
    padding: 16px 0;
}

.batch-step h4 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.form-divider {
    text-align: center;
    color: var(--text-muted);
    margin: 16px 0;
    position: relative;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.form-divider::before {
    left: 0;
}

.form-divider::after {
    right: 0;
}

.char-count {
    display: block;
    text-align: right;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.batch-preview-info {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
}

.preview-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-stat .stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.preview-stat .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.batch-chunks-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.chunk-preview {
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.chunk-preview .chunk-number {
    font-weight: 600;
    color: var(--primary);
    margin-right: 8px;
}

.chunk-preview .chunk-length {
    font-size: 12px;
    color: var(--text-muted);
}

.chunk-preview .chunk-text {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.batch-actions {
    display: flex;
    gap: 12px;
}

.batch-progress {
    margin-bottom: 16px;
}

.batch-progress .progress-bar-container {
    height: 20px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.batch-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.batch-progress .progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
}

.batch-chunks-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.batch-chunks-status span {
    font-size: 18px;
}

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

.batch-result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .batch-preview-info {
        flex-direction: column;
        gap: 12px;
    }

    .batch-actions {
        flex-direction: column;
    }
}

/* ============================================
   Mobile Responsive
   ============================================ */

@media (max-width: 900px) {

    /* === HIDE ALL EFFECTS ON MOBILE === */
    .christmas-santa,
    .christmas-sleigh,
    .christmas-snowflakes,
    .starfield {
        display: none !important;
    }

    /* === SIDEBAR === */
    .sidebar {
        transform: translateX(-100%);
        width: 85vw;
        max-width: 300px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .hamburger-btn {
        display: flex;
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* === LAYOUT === */
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .main-content {
        padding: 12px;
        max-width: 100%;
    }

    .top-header {
        padding: 0 10px;
        gap: 8px;
    }

    /* === HEADER === */
    .user-name {
        display: none;
    }

    .user-tokens {
        padding: 6px 10px;
        font-size: 12px;
    }

    .status-indicator {
        padding: 6px 10px;
    }

    .status-text {
        font-size: 11px;
    }

    /* === CARDS === */
    .card {
        padding: 14px;
        border-radius: 12px;
    }

    /* === TABS === */
    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        padding-bottom: 4px;
    }

    .tab {
        padding: 8px 12px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* === FORMS === */
    .form-group {
        margin-bottom: 12px;
    }

    textarea {
        min-height: 100px;
        font-size: 14px;
    }

    input,
    select {
        font-size: 14px;
        padding: 10px 12px;
    }

    /* === BUTTONS === */
    .btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .btn-group {
        flex-direction: column;
        gap: 8px;
    }

    .btn-group .btn {
        width: 100%;
    }

    /* === AUDIO PLAYER === */
    .audio-player {
        padding: 12px;
    }

    /* === CLONE SECTION === */
    .file-upload-zone {
        padding: 20px 12px;
    }

    /* === ANNOUNCEMENTS === */
    .announcements-banner {
        margin: 8px 12px;
        padding: 0;
    }
}

@media (max-width: 480px) {

    /* Extra small screens */
    .top-header {
        height: 52px;
        padding: 0 8px;
    }

    .main-content {
        padding: 8px;
    }

    .card {
        padding: 12px;
        border-radius: 10px;
    }

    .tab,
    .tab-btn {
        padding: 6px 10px;
        font-size: 10px;
    }

    .tokens-icon {
        display: none;
    }

    .hamburger-btn {
        width: 28px;
        height: 28px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 12px;
    }
}