:root {
  --bg-color: #0f172a;
  --text-color: #f8fafc;
  --primary-accent: #3b82f6;
  --primary-accent-hover: #60a5fa;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-primary-custom {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    color: white;
}

/* Custom styling for standard dash inputs inside glass */
.form-control, .dash-dropdown .Select-control {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--glass-border) !important;
    color: white !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.form-control:focus {
    background-color: rgba(15, 23, 42, 0.8) !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
    border-color: var(--primary-accent) !important;
    color: white !important;
}

.Select-value-label {
    color: white !important;
}

/* Fix dropdown menu text colors */
.Select-menu-outer {
    background-color: #1e293b !important;
    border: 1px solid var(--glass-border) !important;
}
.Select-option {
    color: white !important;
}
.Select-option.is-focused, .Select-option.is-selected {
    background-color: #3b82f6 !important;
}

.timestamp-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}
.timestamp-link:hover {
    color: #bfdbfe;
    background-color: rgba(59, 130, 246, 0.3);
}

.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f8fafc;
}

.highlight {
    background-color: rgba(234, 179, 8, 0.3);
    color: #fef08a;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: bold;
}

/* ============================================
   Phase 5: Interactive Transcript Timeline
   ============================================ */

#transcript-panel {
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.4) transparent;
}

#transcript-panel::-webkit-scrollbar { width: 4px; }
#transcript-panel::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.4); border-radius: 4px; }

.transcript-row {
    display: flex;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    border-left: 3px solid transparent;
    margin-bottom: 2px;
}

.transcript-row:hover {
    background: rgba(59, 130, 246, 0.12);
    border-left-color: rgba(59, 130, 246, 0.4);
    transform: translateX(2px);
}

.transcript-active {
    background: rgba(59, 130, 246, 0.2) !important;
    border-left-color: #3b82f6 !important;
    transform: translateX(4px) !important;
}

.transcript-timestamp {
    font-size: 0.75rem;
    color: #3b82f6;
    font-family: monospace;
    white-space: nowrap;
    padding-top: 2px;
    min-width: 42px;
    font-weight: 600;
}

.transcript-text {
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.transcript-active .transcript-text { color: #f1f5f9; }

/* ============================================
   Phase 5: AI Chatbot Panel  
   ============================================ */

.chat-message-user {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px 12px 4px 12px;
    padding: 10px 14px;
    margin: 6px 0 6px 40px;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.chat-message-ai {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px 12px 12px 4px;
    padding: 10px 14px;
    margin: 6px 40px 6px 0;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
}

#chat-messages {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
}

.bookmark-saved { color: #fbbf24 !important; border-color: #fbbf24 !important; }
