:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-cyan: #22d3ee;
    --accent-emerald: #34d399;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-dark: #0a0e1a;
    --bg-card: rgba(15, 23, 42, 0.8);
    --bg-card-solid: #111827;
    --bg-card-hover: #1e293b;
    --bg-input: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: rgba(99, 102, 241, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e1a 0%, #111827 50%, #0f172a 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

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

/* Animated gradient mesh background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(139, 92, 246, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(34, 211, 238, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 1;
}

/* ===================== HEADER ===================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.25rem 2rem;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}

.header-content {
    flex: 1;
}

.title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 40%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50px;
    border: 1px solid var(--border-subtle);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.status-indicator.connected .status-dot {
    background: var(--success-color);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.status-indicator.connecting .status-dot {
    background: var(--warning-color);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.status-indicator.error .status-dot {
    background: var(--danger-color);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.status-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* ===================== MAIN CONTENT GRID ===================== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ===================== CARDS ===================== */
.input-card,
.avatar-section,
.conversation-log,
.quick-phrases {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.section-title svg {
    width: 22px;
    height: 22px;
    color: var(--primary-light);
}

/* ===================== FORM INPUTS ===================== */
.input-group {
    margin-bottom: 1.25rem;
}

.input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.text-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-input);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.25s ease;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 20px rgba(99, 102, 241, 0.08);
}

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

/* ====== SELECT DROPDOWN FIX (critical) ====== */
select.text-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bg-input);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 2.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

select.text-input option {
    background-color: #1e293b;
    color: #f1f5f9;
    padding: 10px;
}

select.text-input:hover {
    border-color: var(--primary-light);
}

/* ===================== BUTTONS ===================== */
.button-group {
    display: flex;
    gap: 0.75rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    flex: 1;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

.btn-speak {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(79, 172, 254, 0.35);
}

.btn-speak:hover {
    box-shadow: 0 6px 24px rgba(79, 172, 254, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--primary-light);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    box-shadow: none;
    transform: none;
}

/* ===================== AVATAR SECTION ===================== */
.avatar-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg), inset 0 0 60px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(99, 102, 241, 0.15);
}

.avatar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.pulse-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    animation: pulseRing 3s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.avatar-icon {
    width: 70px;
    height: 70px;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
    z-index: 1;
}

.placeholder-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 1;
    font-weight: 500;
}

#avatarVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Speaking Indicator */
.speaking-indicator {
    margin-top: 1rem;
    padding: 0.85rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.25);
    text-align: center;
}

.wave-bars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    height: 32px;
    margin-bottom: 0.4rem;
}

.wave-bars span {
    width: 4px;
    height: 100%;
    background: var(--primary-light);
    border-radius: 4px;
    animation: wave 1s ease-in-out infinite;
}

.wave-bars span:nth-child(1) { animation-delay: 0s; }
.wave-bars span:nth-child(2) { animation-delay: 0.1s; }
.wave-bars span:nth-child(3) { animation-delay: 0.2s; }
.wave-bars span:nth-child(4) { animation-delay: 0.3s; }
.wave-bars span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* ===================== Q&A / RIGHT COLUMN ===================== */
.qa-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ===================== CONVERSATION LOG ===================== */
.log-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.log-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary-light);
}

.log-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

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

.log-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.log-content::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 10px;
}

.log-content::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
}

.log-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-style: italic;
    font-size: 0.9rem;
}

.log-entry {
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
    animation: slideIn 0.3s ease;
    transition: background 0.2s;
}

.log-entry:hover {
    background: rgba(255, 255, 255, 0.06);
}

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

.log-entry-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    letter-spacing: 0.3px;
}

.log-entry-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.log-entry.candidate {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.06);
}

.log-entry.interviewer {
    border-left-color: var(--accent-emerald);
    background: rgba(52, 211, 153, 0.06);
}

.log-entry.system {
    border-left-color: var(--text-muted);
    background: rgba(100, 116, 139, 0.06);
}

/* ===================== LOADING OVERLAY ===================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(16px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(99, 102, 241, 0.15);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-overlay p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===================== QUICK PHRASES ===================== */
.phrases-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.phrases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.phrase-btn {
    padding: 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}

.phrase-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* ===================== RECORDING STATE ===================== */
.btn.recording {
    background: #e53e3e !important;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7); }
    70% { transform: scale(1.01); box-shadow: 0 0 0 8px rgba(229, 62, 62, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

.interview-status {
    padding: 10px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===================== SCREEN TRANSITIONS ===================== */
.setup-screen,
.interview-screen {
    animation: fadeIn 0.4s ease-out;
}

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

/* ===================== MIRROR WEBCAM ===================== */
#setupVideo,
#candidateVideo {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

/* ===================== SETUP SCREEN ===================== */
.setup-screen .main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 1rem;
}

/* Setup card specific overrides */
.setup-screen .input-card {
    max-width: 720px !important;
    width: 100% !important;
}

/* Settings grid within setup */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.settings-grid .input-group {
    margin-bottom: 0;
}

/* Webcam preview in setup */
.setup-webcam-container {
    margin-top: 1.25rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    height: 260px;
    position: relative;
    border: 2px solid rgba(99, 102, 241, 0.15);
    box-shadow: var(--shadow-md);
}

.setup-webcam-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.setup-webcam-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.65);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Start button */
.btn-start-interview {
    width: 100%;
    margin-top: 1.5rem;
    height: 56px;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-primary) !important;
    border: none;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.btn-start-interview:hover {
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.55);
    transform: translateY(-2px);
}

/* ===================== INTERVIEW SCREEN ===================== */

/* Interview timer */
.interview-timer-box {
    max-width: 380px;
    margin: 0 auto 1.25rem auto;
    padding: 0.85rem 1.25rem;
    background: rgba(239, 68, 68, 0.08) !important;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(239, 68, 68, 0.3) !important;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
}

.timer-label {
    font-size: 0.7rem;
    color: #f87171;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

#interviewCountdown {
    font-size: 2.5rem;
    font-weight: 900;
    color: #f87171;
    font-family: 'Inter', monospace;
    line-height: 1;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Interview layout override - avatar takes more space */
.interview-screen .main-content {
    grid-template-columns: 1.8fr 1fr;
    align-items: start;
    gap: 1.25rem;
}

/* Avatar section in interview */
.interview-screen .avatar-section {
    position: sticky;
    top: 12px;
    padding: 1.25rem;
}

.interview-screen .avatar-container {
    aspect-ratio: auto;
    height: 65vh;
    min-height: 420px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow:
        0 0 50px rgba(99, 102, 241, 0.1),
        0 0 100px rgba(99, 102, 241, 0.05),
        var(--shadow-lg);
    border-radius: var(--radius-lg);
}

/* Status bar under avatar */
.interview-controls-bar {
    display: flex;
    gap: 8px;
    margin-top: 0.75rem;
}

.status-chip {
    flex: 1;
    padding: 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(6px);
}

.status-chip-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.status-chip-value {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Hands-free toggle in interview */
.toggle-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

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

.toggle-chip label {
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Interview Buttons */
.interview-btn-group {
    margin-top: 0.75rem;
    display: flex;
    gap: 8px;
}

.interview-btn-group .btn {
    height: 48px;
    font-size: 0.9rem;
}

.btn-record {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%) !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-finish {
    background: var(--gradient-danger) !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
    font-weight: 700 !important;
}

/* Candidate preview in sidebar */
.candidate-preview {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    height: 170px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
}

.candidate-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidate-preview-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.65);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-emerald);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .interview-screen .main-content {
        grid-template-columns: 1fr !important;
    }

    .interview-screen .avatar-container {
        height: 50vh;
        min-height: 300px;
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0.75rem;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }

    .title {
        font-size: 1.4rem;
    }

    .button-group,
    .interview-btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .interview-screen .avatar-container {
        height: 40vh;
        min-height: 250px;
    }
}

/* ===================== FILE INPUT ===================== */
input[type="file"].text-input {
    padding: 0.75rem 1rem;
    border-style: dashed;
    border-color: rgba(99, 102, 241, 0.25);
    cursor: pointer;
}

input[type="file"].text-input:hover {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.05);
}

input[type="file"].text-input::file-selector-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    margin-right: 0.75rem;
    transition: all 0.2s;
}

input[type="file"].text-input::file-selector-button:hover {
    opacity: 0.9;
}