/* Phantom AI Interview - Main Styles */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-lighter: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #cbd5e1;
    --white: #f8fafc;
    --glass: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark);
}
::-webkit-scrollbar-thumb {
    background: var(--dark-lighter);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* Auth Pages */
.auth-body {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 50%, var(--dark-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

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

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--gray-light);
    font-size: 14px;
    margin-bottom: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--dark-lighter);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--white);
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

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

.form-group input::placeholder {
    color: var(--gray);
}

.checkbox-group {
    margin: 8px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s;
}

.checkbox-label:hover {
    background: rgba(59, 130, 246, 0.1);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text strong {
    display: block;
    color: var(--white);
    font-size: 14px;
    margin-bottom: 2px;
}

.checkbox-text small {
    color: var(--gray-light);
    font-size: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--dark-lighter);
    color: var(--gray-light);
    border: 1px solid var(--dark-lighter);
}

.btn-secondary:hover {
    background: var(--gray);
    color: var(--white);
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--gray-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

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

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

/* Auth Footer */
.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary-light);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.hint {
    margin-top: 8px;
    font-size: 11px;
    color: var(--gray);
    opacity: 0.7;
}

/* App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--dark-light);
    border-right: 1px solid var(--dark-lighter);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--dark-lighter);
}

.brand {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--gray-light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--dark-lighter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
}

.role {
    font-size: 11px;
    color: var(--gray);
}

.logout-btn {
    color: var(--gray);
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s;
}

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

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px 32px;
    max-width: calc(100% - 260px);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.top-bar h1 {
    font-size: 28px;
    font-weight: 700;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.stat-icon.purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--secondary);
}

.stat-icon.orange {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 13px;
    color: var(--gray);
}

/* Sections */
.section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.action-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.3);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
}

.action-icon.stealth {
    background: rgba(139, 92, 246, 0.15);
    color: var(--secondary);
}

.action-icon.practice {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

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

.action-card p {
    font-size: 13px;
    color: var(--gray);
}

/* Table */
.table-container {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--dark-lighter);
}

.data-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.badge-completed {
    background: rgba(100, 116, 139, 0.15);
    color: var(--gray-light);
}

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

.badge-type {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
}

.badge-stealth {
    background: rgba(139, 92, 246, 0.15);
    color: var(--secondary);
}

.badge-normal {
    background: rgba(100, 116, 139, 0.15);
    color: var(--gray-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--dark-light);
    border: 1px solid var(--dark-lighter);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
}

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

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

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.modal-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Interview Page Styles */
.interview-body {
    background: var(--dark);
    min-height: 100vh;
}

.interview-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.interview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: var(--dark-light);
    border-bottom: 1px solid var(--dark-lighter);
}

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

.back-btn {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 18px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.interview-info h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    color: var(--primary-light);
}

.header-right {
    display: flex;
    gap: 8px;
}

.tool-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: var(--dark-lighter);
    color: var(--gray-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 16px;
}

.tool-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.tool-btn.stealth-toggle:hover {
    background: var(--secondary);
}

.tool-btn.active {
    background: var(--primary);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

.interview-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.input-panel {
    flex: 0 0 38%;
    min-width: 320px;
    border-right: 1px solid var(--dark-lighter);
}

.response-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.3);
}

.panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--dark-lighter);
    background: rgba(30, 41, 59, 0.5);
}

.panel-header h3 {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.response-actions {
    display: flex;
    gap: 4px;
}

.input-methods {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.method-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--dark-lighter);
    background: rgba(15, 23, 42, 0.3);
    flex-shrink: 0;
}

.method-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--dark-lighter);
    background: rgba(15, 23, 42, 0.3);
}

.method-tab {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    font-family: inherit;
}

.method-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-light);
}

.method-tab.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
}

.method-content {
    display: none;
    flex: 1;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
}

.method-content.active {
    display: flex;
}

.question-textarea {
    height: 120px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--dark-lighter);
    border-radius: 12px;
    padding: 16px;
    color: var(--white);
    font-size: 14px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    width: 100%;
}

.question-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.input-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

/* Voice */
.voice-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 20px;
}

.voice-visualizer {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 60px;
}

.wave-bar {
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 50px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 20px; animation-delay: 0.4s; }

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

.voice-status {
    color: var(--gray);
    font-size: 14px;
}

.voice-transcript {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    color: var(--gray-light);
}

/* OCR */
.ocr-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-area {
    flex: 1;
    border: 2px dashed var(--dark-lighter);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--gray);
}

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

.upload-area i {
    font-size: 32px;
}

.ocr-preview img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--dark-lighter);
}

.ocr-text {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: var(--gray-light);
    max-height: 150px;
    overflow-y: auto;
}

/* Clipboard */
.clipboard-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clipboard-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray);
    transition: all 0.3s;
}

.status-indicator.active {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.clipboard-log {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    padding: 12px;
    overflow-y: auto;
    font-size: 13px;
}

.clip-item {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-light);
    cursor: pointer;
    transition: all 0.3s;
}

.clip-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--white);
}

/* Response Panel */
.response-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    font-size: 15px;
    line-height: 1.8;
}

.response-content {
    min-height: 100%;
    font-size: 15px;
    line-height: 1.8;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray);
    gap: 12px;
}

.empty-state i {
    font-size: 48px;
    opacity: 0.5;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--gray-light);
}

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

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

.hidden {
    display: none !important;
}

.response-meta {
    padding: 12px 20px;
    border-top: 1px solid var(--dark-lighter);
    font-size: 12px;
    color: var(--gray);
    display: flex;
    justify-content: space-between;
}

/* History Panel */
.history-panel {
    background: var(--dark-light);
    border-top: 1px solid var(--dark-lighter);
    max-height: 200px;
    transition: all 0.3s;
}

.history-panel.collapsed {
    max-height: 50px;
    overflow: hidden;
}

.history-panel .panel-header {
    cursor: pointer;
}

.history-content {
    overflow-y: auto;
    max-height: 150px;
}

.history-list {
    padding: 12px;
}

.history-item {
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.history-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.history-question,
.history-response {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.history-question {
    color: var(--gray-light);
    margin-bottom: 4px;
}

.history-question i {
    color: var(--primary-light);
    margin-top: 3px;
}

.history-response i {
    color: var(--secondary);
    margin-top: 3px;
}

.history-response {
    color: var(--gray);
}

.empty-history {
    text-align: center;
    color: var(--gray);
    padding: 20px;
    font-size: 13px;
}

/* AI Response Formatting */
.ai-response {
    line-height: 1.85;
    font-size: 15px;
}

.ai-response h1,
.ai-response h2,
.ai-response h3 {
    color: var(--primary-light);
    margin: 20px 0 12px;
    font-size: 18px;
    font-weight: 600;
}

.ai-response p {
    margin-bottom: 14px;
    color: #e2e8f0;
}

.ai-response code {
    background: rgba(15, 23, 42, 0.9);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #7dd3fc;
    border: 1px solid rgba(125, 211, 252, 0.2);
}

.ai-response pre {
    background: rgba(15, 23, 42, 0.9);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--dark-lighter);
    font-size: 14px;
}

.ai-response pre code {
    background: none;
    padding: 0;
    color: #a5d6ff;
    border: none;
    font-size: 14px;
}

.ai-response ul,
.ai-response ol {
    margin: 14px 0;
    padding-left: 28px;
    color: #e2e8f0;
}

.ai-response li {
    margin-bottom: 8px;
}

.ai-response strong {
    color: #f8fafc;
    font-weight: 600;
}

.ai-response blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--gray-light);
    font-style: italic;
}


/* Live Mode Bar */
.live-mode-bar {
    display: none;
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid var(--dark-lighter);
    backdrop-filter: blur(10px);
}

.live-mode-bar.active {
    display: flex;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    transition: all 0.3s;
}

.live-indicator.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    transition: all 0.3s;
}

.live-indicator.active .live-dot {
    background: #10b981;
    animation: livePulse 1.5s infinite;
}

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

.live-text {
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 1px;
}

.live-indicator.active .live-text {
    color: #10b981;
}

.live-status {
    font-size: 13px;
    color: var(--gray-light);
    flex: 1;
}

.live-transcript {
    max-width: 300px;
    font-size: 12px;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
}

/* Live Button */
.tool-btn.live-btn {
    position: relative;
    overflow: hidden;
}

.tool-btn.live-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.tool-btn.live-btn.active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    animation: pulse 2s infinite;
}


/* Karaoke Reading Mode */
.karaoke-active .karaoke-word {
    transition: all 0.15s ease;
    padding: 1px 2px;
    border-radius: 3px;
}

.karaoke-active .karaoke-word.karaoke-highlight {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Read Cooldown Indicator */
.read-cooldown-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(245, 158, 11, 0.2);
    z-index: 9999;
    display: none;
}

.read-cooldown-bar.active {
    display: block;
}

.read-cooldown-bar .cooldown-progress {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    width: 100%;
    animation: cooldownShrink 20s linear forwards;
}

@keyframes cooldownShrink {
    from { width: 100%; }
    to { width: 0%; }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        transform: translateX(-100%);
    }
    .main-content {
        margin-left: 0;
        max-width: 100%;
    }
    .interview-layout {
        flex-direction: column;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* Utility */
.text-center {
    text-align: center;
}


/* Question Box - Always Visible */
.question-box {
    padding: 16px;
    border-bottom: 1px solid var(--dark-lighter);
}

.question-box .question-textarea {
    margin-bottom: 12px;
}

.question-box .input-actions {
    display: flex;
    gap: 10px;
}
