:root {
    /* ZEUS AI Theme - Lightning Colors */
    --primary: #a855f7;
    --primary-dark: #7c3aed;
    --primary-light: #c084fc;
    --secondary: #3b82f6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    
    /* Zeus Lightning Accent */
    --zeus-gold: #fbbf24;
    --zeus-lightning: #facc15;
    --zeus-purple: #a855f7;
    --zeus-blue: #3b82f6;
    --zeus-cyan: #22d3ee;
    --zeus-glow: rgba(168, 85, 247, 0.5);
    
    /* Modern Dark Theme Palette - Zeus Edition */
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-tertiary: #1a1a3a;
    --bg-hover: #252550;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border: #3b3b6b;
    --border-light: #4b4b8b;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-zeus: 0 0 30px rgba(168, 85, 247, 0.3), 0 0 60px rgba(59, 130, 246, 0.2);
    
    --sidebar-width: 280px;
    --topbar-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-hover: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --border: #cbd5e1;
    --border-light: #e2e8f0;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-primary);
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow);
    z-index: 10;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

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

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 3px;
}

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

.menu-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 20px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 4px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: var(--radius-sm);
}

.menu-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateX(4px);
}

.menu-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.menu-item.active::before {
    content: "";
    position: absolute;
    left: -12px; /* Outside the rounded corner */
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 4px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    display: none; /* Removed the side line for a card-like active state */
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.menu-item:hover .menu-icon {
    transform: scale(1.1);
}

.menu-badge {
    margin-left: auto;
    padding: 4px 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.menu-badge.new {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.api-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.region-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 6px 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    cursor: help;
}

.region-status i {
    color: var(--success);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-bar {
    height: var(--topbar-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumb i {
    font-size: 10px;
    color: var(--text-muted);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
    border-color: var(--border);
    transform: translateY(-1px);
}

.btn-icon:active {
    transform: translateY(0);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid var(--bg-secondary);
    outline: 2px solid transparent;
}

.user-avatar:hover {
    transform: scale(1.05);
    outline-color: var(--primary-light);
}

.content-wrapper {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px;
    overflow: hidden;
}

.input-panel, .output-panel {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.input-panel:hover, .output-panel:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.panel-header h2 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.btn-small:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

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

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-danger:hover {
    background: #dc2626;
}

.panel-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.panel-body::-webkit-scrollbar {
    width: 8px;
}

.panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.panel-body::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}

.panel-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

.form-textarea:focus, .form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-textarea {
    min-height: 120px;
}

.char-counter {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

.char-counter span {
    color: var(--primary);
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.form-range::-moz-range-thumb {
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--primary);
cursor: pointer;
border: none;
}

.checkbox-group, .radio-group {
display: flex;
flex-direction: column;
gap: 12px;
}

.checkbox-label, .radio-label {
display: flex;
align-items: flex-start;
gap: 12px;
cursor: pointer;
padding: 12px;
border-radius: 8px;
transition: all 0.2s;
}

.checkbox-label:hover, .radio-label:hover {
background: var(--bg-tertiary);
}

.checkbox-label input, .radio-label input {
margin-top: 2px;
cursor: pointer;
}

.checkbox-label span, .radio-label span {
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
}

.checkbox-label small, .radio-label small {
color: var(--text-muted);
font-size: 12px;
}

.btn-primary {
width: 100%;
padding: 16px 24px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
border: none;
border-radius: var(--radius-md);
font-size: 16px;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
filter: brightness(1.1);
}

.btn-primary:active {
transform: translateY(0);
}

.btn-secondary {
    padding: 12px 20px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

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

.empty-state, .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.5s ease-out;
}

.empty-icon, .error-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--text-muted);
    margin-bottom: 24px;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.05), var(--shadow);
    border: 1px solid var(--border);
}

.error-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.empty-state h3, .error-state h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.empty-state p, .error-state p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 300px;
    line-height: 1.6;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--success);
    margin: 0 auto 20px;
}

.output-success h3 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 32px;
}

.processing-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.3s ease-in-out;
}

.processing-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.processing-icon i {
    font-size: 32px;
    color: var(--primary);
    z-index: 2;
}

.processing-icon .spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.processing-content {
    max-width: 400px;
    width: 100%;
}

.processing-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.processing-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.progress-bar-track {
    height: 6px;
    background: var(--bg-hover);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-bar-percentage {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

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

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 320px;
    padding: 16px 20px;
    background: rgba(30, 41, 59, 0.95); /* Darker, slightly transparent */
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 24px;
}

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

.toast-success {
    border-left: 4px solid var(--success);
    background: linear-gradient(to right, rgba(16, 185, 129, 0.1), rgba(30, 41, 59, 0.95) 20%);
}

.toast-error {
    border-left: 4px solid var(--danger);
    background: linear-gradient(to right, rgba(239, 68, 68, 0.1), rgba(30, 41, 59, 0.95) 20%);
}

.toast-warning {
    border-left: 4px solid var(--warning);
    background: linear-gradient(to right, rgba(245, 158, 11, 0.1), rgba(30, 41, 59, 0.95) 20%);
}

.toast-info {
    border-left: 4px solid var(--info);
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(30, 41, 59, 0.95) 20%);
}

.audio-player {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.audio-player audio {
    width: 100%;
}

.output-info {
    display: flex;
    gap: 16px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.info-item {
    flex: 1;
    min-width: 200px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.info-item i {
    color: var(--primary);
    font-size: 18px;
}

.btn-download {
    width: 100%;
    padding: 14px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-download:hover {
    background: var(--primary-dark);
}

.audio-upload-area, .image-upload-area, .video-upload-area, .document-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.01);
}

.audio-upload-area:hover, .image-upload-area:hover, .video-upload-area:hover, .document-upload-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.upload-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.audio-upload-area:hover .upload-icon, 
.image-upload-area:hover .upload-icon, 
.video-upload-area:hover .upload-icon, 
.document-upload-area:hover .upload-icon {
    transform: scale(1.1);
    background: var(--bg-secondary);
}

.audio-upload-area h4, .image-upload-area h4, .video-upload-area h4, .document-upload-area h4 {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.audio-upload-area p, .image-upload-area p, .video-upload-area p, .document-upload-area p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.recorder-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-record, .btn-stop {
    flex: 1;
    min-width: 150px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-record {
    background: var(--danger);
    color: white;
}

.btn-record:hover:not(:disabled) {
    background: #dc2626;
}

.btn-stop {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-stop:hover:not(:disabled) {
    background: var(--bg-hover);
}

.btn-record:disabled, .btn-stop:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recording-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 10px;
    color: var(--danger);
    font-size: 14px;
    font-weight: 600;
}

.recording-indicator .pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--danger);
    animation: pulse 1s infinite;
}

.audio-preview, .image-preview, .video-preview, .document-preview {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.audio-preview audio, .video-preview video {
    width: 100%;
    border-radius: 8px;
}

.image-preview {
    position: relative;
}

.image-preview img {
    width: 100%;
    border-radius: 12px;
    max-height: 400px;
    object-fit: contain;
}

.preview-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.preview-info i {
    font-size: 32px;
    color: var(--primary);
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
}

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

.transcript-box, .translation-box, .text-box {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.transcript-header, .translation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.transcript-content, .translation-content {
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
}

.confidence-badge {
    padding: 4px 12px;
    background: var(--success);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.output-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.analysis-section {
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.analysis-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 16px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 8px 16px;
    background: var(--bg-hover);
    border-radius: 8px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tag-score {
    padding: 2px 6px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.info-card {
    padding: 16px;
    background: var(--bg-hover);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.info-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.detected-language {
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    color: var(--info);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-translate {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

.btn-quick {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.sentiment-result {
    padding: 24px 0;
}

.sentiment-main {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.sentiment-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.sentiment-info h4 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sentiment-info p {
    color: var(--text-muted);
    font-size: 15px;
}

.sentiment-meters {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.meter-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meter-item label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
}

.meter-bar {
    height: 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.meter-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.meter-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.meter-item small {
    font-size: 12px;
    color: var(--text-muted);
}

.sentence-sentiments {
    margin-top: 32px;
}

.sentence-sentiments h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sentence-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.sentence-item:hover {
    border-color: var(--border);
    transform: translateX(4px);
    background: var(--bg-hover);
}

.sentence-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.sentence-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.sentence-score {
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
}

.entity-list, .object-list, .logo-list, .landmark-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entity-item, .object-item, .logo-item, .landmark-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-hover);
    border-radius: 8px;
}

.entity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.entity-content {
    flex: 1;
}

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

.entity-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.entity-type {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.entity-salience, .entity-confidence, .object-score, .logo-score {
    font-size: 12px;
    color: var(--text-muted);
}

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

.color-palette {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.color-box {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid var(--border);
}

.safe-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.safe-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-hover);
    border-radius: 8px;
}

.badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

/* Old media queries removed - see new responsive section at end of file */
.settings-panel, .history-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.settings-panel.active, .history-panel.active {
    opacity: 1;
    visibility: visible;
}

.settings-overlay, .history-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.settings-content, .history-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.settings-panel.active .settings-content,
.history-panel.active .history-content {
    transform: scale(1);
}

.settings-header, .history-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.settings-header h2, .history-header h2 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-body, .history-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.settings-body::-webkit-scrollbar, .history-body::-webkit-scrollbar {
    width: 8px;
}

.settings-body::-webkit-scrollbar-thumb, .history-body::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-item {
    margin-bottom: 16px;
}

.setting-item label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.setting-item input[type="number"],
.setting-item select {
    padding: 8px 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
}

.setting-toggle {
    position: relative;
    cursor: pointer;
}

.setting-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    width: 48px;
    height: 24px;
    background: var(--bg-hover);
    border-radius: 12px;
    transition: all 0.3s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.setting-toggle input:checked + .toggle-slider {
    background: var(--primary);
}

.setting-toggle input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.api-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.api-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.shortcut-item kbd {
    padding: 4px 8px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.settings-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

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

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.history-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

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

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

.history-item-preview {
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-icon-small:hover {
    background: var(--danger);
    color: white;
}

.empty-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-history i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-history p {
    color: var(--text-muted);
}

.progress-bar-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 24px;
    min-width: 300px;
    box-shadow: 0 10px 40px var(--shadow);
}

.progress-bar-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-bar-track {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-bar-percentage {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

.drag-over {
    border-color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

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

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

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}
.api-selector {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.api-selector-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-hover);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.api-select:hover {
    background: var(--bg-secondary);
}

.api-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.api-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px;
}

.api-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

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

.rate-limit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}
.menu-category {
    margin-bottom: 24px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.category-header i {
    font-size: 12px;
}

.menu-badge.new {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.welcome-message {
    text-align: center;
    padding: 60px 20px;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.chat-message {
    display: flex;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-message.user .message-avatar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.chat-message.assistant .message-avatar {
    background: var(--bg-hover);
}

.message-content {
    flex: 1;
    max-width: 80%;
}

.message-text {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.6;
}

.chat-message.user .message-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 4px;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-textarea {
    flex: 1;
    resize: none;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
}

.btn-send {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-send:hover {
    transform: scale(1.1);
}

.chat-options {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.generated-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--border);
}

.generated-image:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.generated-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.generated-image:hover img {
    transform: scale(1.02);
}

.image-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    display: flex;
    gap: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.generated-image:hover .image-actions {
    opacity: 1;
    transform: translateY(0);
}

.image-actions .btn-small {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    justify-content: center;
}

.image-actions .btn-small:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.advanced-options {
    margin-top: 16px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.advanced-content {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.code-result {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.code-header {
    padding: 12px 20px;
    background: var(--bg-tertiary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.code-language {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-language::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.code-result pre {
    margin: 0;
    padding: 24px;
    overflow-x: auto;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.code-result code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.7;
}

.code-explanation {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.video-result video {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.audio-player {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.audio-player audio {
    width: 100%;
    height: 40px;
    border-radius: var(--radius-md);
}

.audio-info {
    padding: 20px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.summary-result {
    padding: 24px 0;
}

.summary-content {
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    line-height: 1.8;
    margin: 20px 0;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 15px;
    box-shadow: var(--shadow-sm);
}

.summary-stats {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: var(--bg-hover);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.classification-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.classification-label {
    min-width: 140px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.classification-bar {
    flex: 1;
    height: 24px;
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.classification-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.classification-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 2s infinite;
}

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

.classification-score {
    min-width: 60px;
    text-align: right;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.batch-upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
}

.batch-upload-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.files-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.file-name {
    flex: 1;
    font-size: 14px;
}

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

.batch-stats {
    display: flex;
    gap: 24px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    margin-top: 16px;
}

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

.batch-result-item {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
}

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

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.menu-badge.demo { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

/* ==================== UX POLISH ==================== */

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1000;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 8px 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

[data-tooltip]::after {
    content: "";
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 6px solid transparent;
    border-top-color: var(--border);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Focus states for accessibility */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

button:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth page transitions */
.main-content,
.input-section,
.output-section {
    animation: fadeSlideIn 0.3s ease-out;
}

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

/* Button press effect */
.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-small:active {
    transform: scale(0.97);
}

/* Menu item active indicator animation */
.menu-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 0 4px 4px 0;
    animation: slideInLeft 0.2s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateY(-50%) translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

/* Ripple effect for buttons */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Skeleton loading animation */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Pulse animation for notifications */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Bounce animation for icons */
.bounce {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

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

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

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

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

/* Selection styling */
::selection {
    background: var(--primary);
    color: white;
}

/* Improved link hover */
a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

/* Card hover lift effect */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Input placeholder animation */
.form-input::placeholder,
.form-textarea::placeholder {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-input:focus::placeholder,
.form-textarea:focus::placeholder {
    opacity: 0.5;
    transform: translateX(5px);
}

/* Status indicator dot */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: statusPulse 2s infinite;
}

.status-dot.offline {
    background: var(--danger);
}

.status-dot.processing {
    background: var(--warning);
    animation: statusPulse 1s infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 4px currentColor; }
    50% { box-shadow: 0 0 12px currentColor; }
}

/* Number counter animation */
.counter-animate {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.counter-animate.updated {
    animation: counterPop 0.3s ease;
}

@keyframes counterPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Checkbox and radio custom styling */
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Range slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
}

/* Floating label effect */
.floating-label {
    position: relative;
}

.floating-label label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
    padding: 0 4px;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 12px;
    color: var(--primary);
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Progress ring */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring circle {
    transition: stroke-dashoffset 0.5s ease;
}

/* Glow effect on hover */
.glow-hover {
    transition: box-shadow 0.3s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Subtle text gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Improved disabled state */
button:disabled,
.btn:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(30%);
}

/* Loading dots animation */
.loading-dots::after {
    content: "";
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75% { content: "..."; }
    100% { content: ""; }
}

/* ==================== VIDEO GENERATION ==================== */

.video-result {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.video-container {
    position: relative;
    background: #000;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.video-container video {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.video-result .result-info {
    display: flex;
    gap: 24px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.video-result .result-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.video-result .result-info i {
    color: var(--primary);
}

.video-result .result-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.video-result .result-actions .btn-primary,
.video-result .result-actions .btn-secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.video-result .result-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
}

.video-result .result-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.video-result .result-actions .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    cursor: pointer;
}

.video-result .result-actions .btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

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

.info-box > i {
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.info-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.info-box.warning > i {
    color: var(--warning);
}

.info-box strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-box p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Form Hint */
.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   ZEUS AI THEME - Lightning Effects & Branding
   ============================================ */

/* Zeus Lightning Background */
.zeus-lightning-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
    animation: zeusAmbient 8s ease-in-out infinite;
}

@keyframes zeusAmbient {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Zeus Logo Styles */
.zeus-logo {
    position: relative;
}

.zeus-icon {
    background: linear-gradient(135deg, var(--zeus-purple) 0%, var(--zeus-blue) 50%, var(--zeus-cyan) 100%) !important;
    position: relative;
    overflow: visible;
    animation: zeusIconPulse 3s ease-in-out infinite;
}

.zeus-icon i {
    color: var(--zeus-lightning) !important;
    text-shadow: 0 0 10px var(--zeus-lightning), 0 0 20px var(--zeus-lightning);
    animation: lightningFlicker 2s ease-in-out infinite;
}

.lightning-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--zeus-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes zeusIconPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.5); }
    50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.8), 0 0 60px rgba(59, 130, 246, 0.4); }
}

@keyframes lightningFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    52% { opacity: 1; }
    54% { opacity: 0.9; }
    56% { opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* Zeus Title */
.zeus-title {
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 800 !important;
    font-size: 24px !important;
    background: linear-gradient(135deg, var(--zeus-lightning) 0%, var(--zeus-purple) 50%, var(--zeus-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: 2px;
    animation: zeusTextGlow 3s ease-in-out infinite;
}

.zeus-subtitle {
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: var(--zeus-cyan) !important;
    letter-spacing: 4px;
    text-transform: uppercase;
}

@keyframes zeusTextGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(250, 204, 21, 0.8)); }
}

/* Zeus Footer */
.zeus-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.1) 100%);
    border-top: 1px solid rgba(168, 85, 247, 0.3) !important;
}

/* Zeus Select */
.zeus-select {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(168, 85, 247, 0.1) 100%) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
}

.zeus-select:focus {
    border-color: var(--zeus-purple) !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2), 0 0 20px rgba(168, 85, 247, 0.3) !important;
}

/* Zeus Pulse Status */
.zeus-pulse {
    animation: zeusPulse 2s ease-in-out infinite !important;
    background: var(--zeus-cyan) !important;
}

@keyframes zeusPulse {
    0%, 100% { box-shadow: 0 0 5px var(--zeus-cyan), 0 0 10px var(--zeus-cyan); }
    50% { box-shadow: 0 0 10px var(--zeus-cyan), 0 0 20px var(--zeus-cyan), 0 0 30px var(--zeus-purple); }
}

/* Zeus Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--zeus-purple) 0%, var(--zeus-blue) 100%) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 40px rgba(59, 130, 246, 0.3) !important;
    transform: translateY(-2px);
}

/* Zeus Panel Headers */
.panel-header h2 {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--zeus-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Zeus Menu Items */
.menu-item:hover,
.menu-item.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%) !important;
    border-left: 3px solid var(--zeus-purple) !important;
}

.menu-item.active .menu-icon {
    color: var(--zeus-lightning) !important;
    text-shadow: 0 0 10px var(--zeus-lightning);
}

/* Zeus Badge */
.menu-badge.new {
    background: linear-gradient(135deg, var(--zeus-purple) 0%, var(--zeus-blue) 100%) !important;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 5px rgba(168, 85, 247, 0.5); }
    50% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.8); }
}

/* Zeus Input Focus */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--zeus-purple) !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15), 0 0 20px rgba(168, 85, 247, 0.2) !important;
}

/* Zeus Empty State */
.empty-state .empty-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%) !important;
}

.empty-state .empty-icon i {
    background: linear-gradient(135deg, var(--zeus-lightning) 0%, var(--zeus-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Zeus Loading Animation */
.loading-spinner {
    border-color: rgba(168, 85, 247, 0.2) !important;
    border-top-color: var(--zeus-lightning) !important;
}

/* Zeus Toast */
.toast {
    border-left: 4px solid var(--zeus-purple) !important;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(168, 85, 247, 0.1) 100%) !important;
}

/* Lightning Strike Animation (for special effects) */
@keyframes lightningStrike {
    0% { opacity: 0; }
    10% { opacity: 1; }
    20% { opacity: 0; }
    30% { opacity: 0.8; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

/* Zeus Scrollbar */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--zeus-purple) 0%, var(--zeus-blue) 100%) !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--zeus-purple) 0%, var(--zeus-cyan) 100%) !important;
}

/* Zeus Info Box */
.info-box {
    background: rgba(168, 85, 247, 0.1) !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
}

.info-box > i {
    color: var(--zeus-purple) !important;
}

/* Zeus App Container */
.app-container {
    position: relative;
    z-index: 1;
}

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: var(--zeus-purple);
    color: white;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Hamburger to X animation */
.mobile-menu-btn.active i::before {
    content: "\f00d";
}

/* Sidebar Close Button */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    align-items: center;
    justify-content: center;
}

.sidebar-close-btn:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

/* Sidebar header relative positioning for close button */
.sidebar-header {
    position: relative;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ============================================
   TABLET RESPONSIVE (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 260px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .input-panel, .output-panel {
        min-height: 400px;
    }
    
    .panel-header {
        padding: 16px 20px;
    }
    
    .panel-body {
        padding: 20px;
    }
    
    .panel-footer {
        padding: 16px 20px;
    }
    
    .top-bar {
        padding: 0 20px;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
}

/* ============================================
   MOBILE RESPONSIVE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 300px;
        --topbar-height: 60px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .sidebar-close-btn {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: var(--sidebar-width);
        max-width: 85vw;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar-header {
        padding: 20px 16px;
        padding-top: 60px;
    }
    
    .sidebar-content {
        padding: 16px 0;
    }
    
    .sidebar-footer {
        padding: 16px;
    }
    
    .menu-item {
        padding: 14px 16px;
        margin: 4px 8px;
        font-size: 15px;
    }
    
    .menu-icon {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
    
    .menu-badge {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .top-bar {
        height: var(--topbar-height);
        padding: 0 12px;
        gap: 12px;
    }
    
    .breadcrumb {
        font-size: 13px;
        flex: 1;
        min-width: 0;
    }
    
    .breadcrumb-item {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }
    
    .top-bar-actions {
        gap: 8px;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
        overflow-y: auto;
    }
    
    .input-panel, .output-panel {
        min-height: auto;
        border-radius: var(--radius-md);
    }
    
    .panel-header {
        padding: 14px 16px;
    }
    
    .panel-header h2 {
        font-size: 16px;
    }
    
    .panel-body {
        padding: 16px;
    }
    
    .panel-footer {
        padding: 14px 16px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-label {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .form-textarea, .form-input, .form-select {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .form-textarea {
        min-height: 100px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .btn-primary {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .btn-small {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .panel-actions {
        gap: 6px;
    }
    
    .panel-actions .btn-small span {
        display: none;
    }
    
    .empty-state, .error-state {
        padding: 30px 20px;
    }
    
    .empty-icon, .error-icon {
        width: 72px;
        height: 72px;
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .empty-state h3, .error-state h3 {
        font-size: 18px;
    }
    
    .empty-state p, .error-state p {
        font-size: 14px;
    }
    
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 12px;
        left: 12px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .audio-upload-area, .image-upload-area, .video-upload-area, .document-upload-area {
        padding: 30px 16px;
    }
    
    .upload-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .output-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .info-item {
        min-width: auto;
        padding: 14px;
    }
    
    .sentiment-main {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .sentiment-icon {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }
    
    .sentiment-info h4 {
        font-size: 22px;
    }
    
    .settings-content, .history-content {
        width: 95%;
        max-height: 90vh;
        border-radius: var(--radius-md);
    }
    
    .settings-header, .history-header {
        padding: 16px;
    }
    
    .settings-body, .history-body {
        padding: 16px;
    }
    
    .api-selector {
        padding: 10px;
    }
    
    .api-select {
        padding: 10px;
        font-size: 13px;
    }
    
    .region-status {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .rate-limit {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .chat-messages {
        padding: 16px;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .chat-input-area {
        padding: 12px;
    }
    
    .code-result pre {
        padding: 16px;
        font-size: 12px;
    }
    
    .video-container video {
        max-height: 300px;
    }
    
    .analysis-section {
        padding: 16px;
        margin: 16px 0;
    }
    
    .tag-cloud {
        gap: 6px;
    }
    
    .tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .info-card {
        padding: 12px;
    }
    
    .info-value {
        font-size: 20px;
    }
    
    .transcript-box, .translation-box, .text-box {
        padding: 16px;
        margin: 16px 0;
    }
    
    .batch-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .progress-bar-container {
        left: 12px;
        right: 12px;
        transform: none;
        min-width: auto;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .logo-title {
        font-size: 18px;
    }
    
    .zeus-title {
        font-size: 20px !important;
    }
    
    .logo-subtitle {
        font-size: 10px;
    }
    
    .category-header {
        padding: 6px 12px;
        font-size: 10px;
    }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    :root {
        --sidebar-width: 280px;
        --topbar-height: 56px;
    }
    
    .sidebar {
        max-width: 90vw;
    }
    
    .sidebar-header {
        padding: 16px 12px;
        padding-top: 56px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .zeus-title {
        font-size: 18px !important;
        letter-spacing: 1px;
    }
    
    .zeus-subtitle {
        font-size: 9px !important;
        letter-spacing: 2px;
    }
    
    .top-bar {
        padding: 0 10px;
    }
    
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .breadcrumb-item.active {
        max-width: 80px;
    }
    
    .btn-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .user-avatar {
        width: 34px;
        height: 34px;
    }
    
    .content-wrapper {
        padding: 10px;
        gap: 10px;
    }
    
    .panel-header {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .panel-header h2 {
        font-size: 15px;
        width: 100%;
    }
    
    .panel-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .panel-body {
        padding: 14px;
    }
    
    .panel-footer {
        padding: 12px 14px;
    }
    
    .btn-primary {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .form-textarea, .form-input, .form-select {
        padding: 10px 12px;
    }
    
    .menu-item {
        padding: 12px 14px;
        margin: 3px 6px;
        font-size: 14px;
    }
    
    .menu-icon {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }
    
    .menu-badge {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .empty-icon, .error-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
    
    .empty-state h3, .error-state h3 {
        font-size: 16px;
    }
    
    .empty-state p, .error-state p {
        font-size: 13px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-content, .history-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .toast {
        padding: 12px 16px;
    }
    
    .toast i {
        font-size: 20px;
    }
    
    .toast span {
        font-size: 13px;
    }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .content-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    
    .input-panel, .output-panel {
        min-height: 300px;
    }
    
    .sidebar {
        max-width: 280px;
    }
    
    .sidebar-header {
        padding-top: 50px;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .menu-item {
        min-height: 48px;
    }
    
    .btn-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    .btn-small {
        min-height: 40px;
    }
    
    .form-select {
        min-height: 48px;
    }
    
    .menu-item:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .generated-image:hover {
        transform: none;
    }
    
    .generated-image:hover img {
        transform: none;
    }
    
    .generated-image .image-actions {
        opacity: 1;
        transform: translateY(0);
    }
    
    [data-tooltip]::before,
    [data-tooltip]::after {
        display: none;
    }
}

/* ============================================
   SAFE AREA INSETS (notched devices)
   ============================================ */
@supports (padding: max(0px)) {
    .sidebar {
        padding-left: max(0px, env(safe-area-inset-left));
    }
    
    .top-bar {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    
    .content-wrapper {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    
    .toast-container {
        bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .sidebar {
        transition: none;
    }
    
    .sidebar-overlay {
        transition: none;
    }
}
