/* Blink - Modern Web Interface Styles */
/* Purpose: Beautiful, responsive styling for the FastAPI web interface */
/* Status: Production-ready with modern design and smooth animations */

/* --- Blink Unified Design System --- */
:root {
    /* Primary Colors - Matching 1-2-3 onboarding */
    --primary-blue: #3B82F6;
    --accent-purple: #A78BFA;
    --button-gradient: linear-gradient(90deg, #3B82F6 0%, #A78BFA 100%);
    
    /* Light Theme (Primary) */
    --background: #F3F6FB;
    --surface: #FFFFFF;
    --sidebar: #E0E7FF;
    --card-bg: #FFFFFF;
    
    /* Typography */
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    
    /* Status Colors */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    
    /* Spacing Scale */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 40px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(59, 130, 246, 0.06);
    --shadow-md: 0 4px 16px rgba(59, 130, 246, 0.1);
    --shadow-lg: 0 8px 32px rgba(59, 130, 246, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: var(--sidebar);
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-xl) 0 0 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    min-height: 100vh;
}
.sidebar-logo {
    display: flex;
    align-items: center;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    letter-spacing: 1px;
}
.logo-icon {
    font-size: 2.1rem;
    margin-right: 10px;
    color: var(--accent-purple);
}
.sidebar-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 14px var(--spacing-xl);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    transition: all var(--transition-normal);
    margin-right: var(--spacing-md);
}
.sidebar-link i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    color: var(--primary-blue);
}
.sidebar-link:hover, .sidebar-link.active {
    background: var(--button-gradient);
    color: #fff;
    transform: translateX(4px) scale(1.04);
}
.sidebar-link.active i {
    color: #fff;
}

/* Main Content */
.main-content {
    margin-left: 220px;
    width: 100%;
    min-height: 100vh;
    background: var(--background);
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid #e5e7eb;
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-md) var(--spacing-xl);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}
.header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Card Headers */
.main-card h2, .main-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
}

/* Login Section */
.login-section {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}
.login-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    background: var(--surface);
    color: var(--primary-blue);
}
.login-btn.google {
    background: var(--button-gradient);
    color: #fff;
}
.login-btn.google:hover {
    filter: brightness(1.1);
    box-shadow: var(--shadow-md);
}
.login-btn:not(.google):hover {
    background: #e0e7ff;
    color: var(--accent-purple);
}

/* Card & Form Styles */
.main-card, .feature-card, .playlist-form, .playlist-results, .activity-section, .stat-card, .action-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    transition: all var(--transition-normal);
}
.main-card:hover, .feature-card:hover, .stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Main Card Styles (for index.html) */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #e5e7eb;
    padding: 36px 32px 32px 32px;
    min-width: 320px;
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all var(--transition-normal);
}

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

/* Center Layout */
.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--spacing-xl);
}

/* BLINK Title */
.blink-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-blue);
    letter-spacing: 2px;
    margin-bottom: 18px;
    text-align: center;
}

/* Stepper Styles */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.step-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.step-link:hover {
    transform: scale(1.05);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sidebar);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.step-link:hover .step-number {
    background: var(--button-gradient);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.step.active .step-number {
    background: var(--button-gradient);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.step-arrow {
    font-size: 2rem;
    color: var(--text-muted);
    margin: 0 8px;
}



/* Input Styles */
.input-label {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 10px;
    text-align: left;
    width: 100%;
}

.input-box {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--sidebar);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    margin-bottom: 24px;
    outline: none;
    transition: border var(--transition-normal);
    background: var(--background);
    color: var(--text-primary);
}

.input-box:focus {
    border: 2px solid var(--primary-blue);
    background: var(--surface);
}

/* Summarize Button */
.summarize-btn {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-radius: var(--radius-md);
    background: var(--button-gradient);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    margin-top: 8px;
}

.summarize-btn:hover:enabled {
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: var(--shadow-md);
}

.summarize-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* Emerald Balance */
.emerald-balance {
    position: fixed;
    top: 24px;
    left: 32px;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1000;
}

.emerald-balance .emerald-icon {
    font-size: 1rem;
}

.emerald-balance.low {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.emerald-balance.critical {
    background: linear-gradient(135deg, var(--error), #dc2626);
}

/* Subtitle */
.subtitle {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: 36px;
    text-align: center;
}

/* Step Indicator (for wait.html) */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    gap: 20px;
}

.step-indicator .step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.step-indicator .step.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.step-indicator .step.completed {
    color: var(--success);
}

.step-indicator .step-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.step-indicator .step-link:hover {
    transform: scale(1.05);
}

.step-indicator .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.step-indicator .step.active .step-number {
    background: var(--primary-blue);
    color: white;
}

.step-indicator .step.completed .step-number {
    background: var(--success);
    color: white;
}

.step-indicator .step:not(.active):not(.completed) .step-number {
    background: #e5e7eb;
    color: var(--text-secondary);
}

.step-indicator .step-link:hover .step-number {
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

/* Processing Text */
.processing-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.processing-subtext {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), #3b82f6);
    border-radius: 4px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Secondary Button */
.btn-secondary {
    background: #f3f4f6;
    color: var(--text-primary);
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.form-group {
    margin-bottom: var(--spacing-lg);
}
.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background: var(--surface);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn-group {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}
.btn-primary {
    background: var(--button-gradient);
    color: #fff;
}
.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--sidebar);
    color: var(--primary-blue);
    border: 2px solid #e5e7eb;
}
.btn-secondary:hover {
    background: var(--accent-purple);
    color: #fff;
    transform: translateY(-1px);
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}
.feature-card i {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}
.feature-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.action-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-normal);
}

.action-link:hover {
    background: var(--button-gradient);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.action-link i {
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.action-link:hover i {
    color: #fff;
}

/* Stat Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

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

.stat-card i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.stat-card h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.stat-card p {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
}

/* File Browser */
.file-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.file-filters .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
}

.file-filters .btn.active {
    background: var(--button-gradient);
    color: #fff;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.file-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.file-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    width: 40px;
    text-align: center;
}

.file-info {
    flex: 1;
}

.file-info h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.file-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

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

.file-actions .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 32px 0 0 0;
    color: var(--text-secondary);
    margin-top: 32px;
}

/* Message Styles */
.message {
    background: #e0f2fe;
    border: 2px solid var(--primary-blue);
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Loading Spinner */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: var(--primary-blue);
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e7ff;
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 900px) {
    .sidebar {
        width: 60px;
        align-items: center;
        padding-left: 0;
    }
    .sidebar-logo .logo-text {
        display: none;
    }
    .sidebar-link span {
        display: none;
    }
    .main-content {
        margin-left: 60px;
    }
    .container {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
        max-width: 100%;
    }
    
    .header {
        padding: var(--spacing-lg) var(--spacing-md);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .main-card, .feature-card, .playlist-form, .playlist-results, .activity-section, .stat-card, .action-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    

    
    .stepper {
        gap: var(--spacing-sm);
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .blink-title {
        font-size: 2rem;
    }
    
    .profile-bubble {
        top: 12px;
        right: 10px;
        width: 38px;
        height: 38px;
    }
    
    .emerald-balance {
        top: 12px;
        left: 10px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .card {
        padding: 24px 16px 20px 16px;
        min-width: unset;
        max-width: 98vw;
        margin: 0 var(--spacing-sm);
    }
    
    .input-box {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 600px) {
    .container {
        padding: var(--spacing-sm);
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .main-card, .feature-card, .playlist-form, .playlist-results, .activity-section, .stat-card, .action-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    
    .card {
        padding: 20px 12px 16px 12px;
        margin: 0 var(--spacing-xs);
    }
    
    .blink-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .stepper {
        gap: 8px;
        margin-bottom: 24px;
    }
    
    .step {
        font-size: 0.9rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .step-arrow {
        font-size: 1.2rem;
    }
    

    
    .input-label {
        font-size: 1rem;
    }
    
    .input-box {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .summarize-btn {
        padding: 14px 0;
        font-size: 1.1rem;
    }
    
    .profile-bubble {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
    }
    
    .emerald-balance {
        top: 8px;
        left: 8px;
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--spacing-xs);
    }
    
    .card {
        padding: 16px 8px 12px 8px;
        margin: 0;
        border-radius: var(--radius-md);
    }
    
    .blink-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .stepper {
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .step {
        font-size: 0.8rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .step-arrow {
        font-size: 1rem;
    }
    

    
    .input-label {
        font-size: 0.95rem;
    }
    
    .input-box {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .summarize-btn {
        padding: 12px 0;
        font-size: 1rem;
    }
}

.blink-logo {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 36px;
    letter-spacing: 4px;
    text-align: center;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

/* Profile Bubble (Floating Top Right) */
.profile-bubble {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sidebar);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 100;
}

.profile-bubble:hover {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.profile-bubble img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-bubble .fa-user {
    font-size: 1.7rem;
    color: var(--primary-blue);
    transition: color var(--transition-normal);
}

.profile-bubble:hover .fa-user {
    color: #fff;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 56px;
    right: 0;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 200;
    padding: 12px 0;
    border: 1px solid #e5e7eb;
}

.profile-dropdown.show {
    display: block;
}

.profile-dropdown .dropdown-item {
    padding: 10px 24px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition-normal);
    text-align: left;
    border: none;
    background: none;
    width: 100%;
}

.profile-dropdown .dropdown-item:hover {
    background: var(--sidebar);
    color: var(--primary-blue);
}

.profile-dropdown .profile-info {
    padding: 10px 24px 8px 24px;
    border-bottom: 1px solid var(--sidebar);
    margin-bottom: 6px;
    text-align: left;
}

.profile-dropdown .profile-info .name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.profile-dropdown .profile-info .email {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Session History Styles */
.history-section {
    margin-top: 40px;
    width: 100%;
    max-width: 600px;
}

.history-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.history-title i {
    color: var(--primary-blue);
}

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

.loading-history {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 20px;
}

.loading-history i {
    margin-right: 8px;
    color: var(--primary-blue);
}

.session-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: all var(--transition-fast);
    cursor: pointer;
}

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

.session-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.session-info {
    flex: 1;
}

.session-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.session-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.session-type {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.session-type.audio {
    background: #f0f9ff;
    color: #0369a1;
}

.session-type.video {
    background: #fef3c7;
    color: #d97706;
}

.session-date {
    color: var(--text-muted);
}

.session-style {
    background: var(--primary-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.session-preview {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.session-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.session-card:hover .session-actions {
    opacity: 1;
}

.session-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}

.session-btn.primary {
    background: var(--primary-blue);
    color: white;
}

.session-btn.primary:hover {
    background: #2563eb;
}

.session-btn.secondary {
    background: #f3f4f6;
    color: var(--text-secondary);
    border: 1px solid #e5e7eb;
}

.session-btn.secondary:hover {
    background: #e5e7eb;
    color: var(--text-primary);
}

.session-expanded {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: none;
}

.session-expanded.show {
    display: block;
}

.session-full-summary {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.no-sessions {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 40px 20px;
}

.no-sessions i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

/* Responsive adjustments for history */
@media (max-width: 768px) {
    .history-section {
        margin-top: 30px;
    }
    
    .session-card {
        padding: 16px;
    }
    
    .session-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .session-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .session-actions {
        opacity: 1;
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .history-title {
        font-size: 1.2rem;
    }
    
    .session-card {
        padding: 12px;
    }
    
    .session-title {
        font-size: 1rem;
    }
    
    .session-meta {
        font-size: 0.8rem;
    }
    
    .session-preview {
        font-size: 0.9rem;
    }
}

 