/* BizMagnet Dashboard Styles */

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --secondary: #EC4899;
    --accent: #F59E0B;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;
    --success: #10B981;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-secondary);
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

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

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

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

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.nav-item.active {
    background: var(--bg-secondary);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-weight: 500;
}

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

.btn-logout {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
}

.page {
    display: none;
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Dashboard Page */
.next-step-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 32px;
    border-radius: var(--radius-xl);
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.next-step-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.next-step-content p {
    opacity: 0.9;
    font-size: 16px;
}

.btn-primary {
    background: white;
    color: var(--primary);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
    background: var(--bg-primary);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Section */
.section {
    margin-bottom: 48px;
}

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

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
}

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

.course-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.course-card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.course-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.course-status-badge.active {
    background: var(--success);
    color: white;
}

.course-status-badge.draft {
    background: var(--text-muted);
    color: white;
}

.course-path {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.course-progress {
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

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

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.stat-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 32px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border-color);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Course Viewer */
.course-viewer-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-back {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    transition: var(--transition);
}

.btn-back:hover {
    text-decoration: underline;
}

.course-viewer-content {
    display: grid;
    grid-template-columns: 300px 1fr 350px;
    gap: 32px;
}

@media (max-width: 1400px) {
    .course-viewer-content {
        grid-template-columns: 300px 1fr;
    }
    
    .ai-tutor-widget {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 350px;
        max-height: 500px;
        z-index: 1000;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    
    .ai-tutor-widget.collapsed .ai-tutor-body {
        display: none;
    }
}

@media (max-width: 1024px) {
    .course-viewer-content {
        grid-template-columns: 1fr;
    }
}

.course-sidebar {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 32px;
}

.progress-bar-container {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

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

.module-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

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

.module-item.active {
    background: var(--bg-secondary);
    border: 2px solid var(--primary);
}

.module-item.completed {
    opacity: 0.7;
}

.module-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.module-item.locked:hover {
    background: var(--bg-primary);
}

.module-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.module-item.completed .module-check {
    background: var(--success);
    color: white;
}

.module-info {
    flex: 1;
}

.module-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
}

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

.course-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
}

.course-main-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-color);
    min-height: 600px;
}

@media (max-width: 1400px) {
    .course-content {
        grid-template-columns: 1fr;
    }
}

.module-content-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.module-content-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.module-meta-info {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

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

.module-content-body {
    line-height: 1.8;
    color: var(--text-primary);
}

.module-content-body h1,
.module-content-body h2,
.module-content-body h3,
.module-content-body h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.module-content-body p {
    margin-bottom: 16px;
}

.module-content-body ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.module-content-body li {
    margin-bottom: 8px;
}

.module-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 16px;
}

.empty-content {
    text-align: center;
    padding: 64px 32px;
    color: var(--text-muted);
}

/* Module Summary View */
.module-summary-view {
    max-width: 800px;
    margin: 0 auto;
}

.module-summary-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.module-summary-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.module-summary-content {
    margin: 32px 0;
}

.summary-box {
    background: linear-gradient(135deg, #F5F7FF 0%, #FFFFFF 100%);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.summary-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.summary-box p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.module-summary-actions {
    text-align: center;
    padding: 32px 0;
}

.btn-large {
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
}

/* Ebook Reader Style */
.ebook-reader-container {
    max-width: 900px;
    margin: 0 auto;
}

.ebook-reader-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.reader-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.reader-nav-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.reader-nav-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.reader-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    flex: 1;
}

.reader-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.ebook-reader-content {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.9;
    font-size: 18px;
    color: #2D3748;
    max-width: 700px;
    margin: 0 auto;
    padding: 32px 0;
}

.reader-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 24px;
}

.reader-heading:first-of-type {
    margin-top: 0;
}

h2.reader-heading {
    font-size: 28px;
}

h3.reader-heading {
    font-size: 24px;
}

h4.reader-heading {
    font-size: 20px;
}

h5.reader-heading {
    font-size: 18px;
}

h6.reader-heading {
    font-size: 16px;
}

.reader-paragraph {
    margin-bottom: 24px;
    text-align: justify;
    text-align-last: left;
    letter-spacing: 0.3px;
}

.reader-list {
    margin: 24px 0;
    padding-left: 24px;
}

.reader-list li {
    margin-bottom: 12px;
    line-height: 1.8;
}

/* Responsive ebook reader */
@media (max-width: 768px) {
    .ebook-reader-content {
        font-size: 16px;
        padding: 24px 0;
    }
    
    .reader-title {
        font-size: 20px;
    }
    
    .ebook-reader-container {
        max-width: 100%;
    }
}

/* Video Library */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: var(--transition);
}

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

.video-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.video-source-icon {
    font-size: 24px;
}

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

.video-badge.top-pick {
    background: var(--accent);
    color: white;
}

.video-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.video-course {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.video-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Video Embedding */
.video-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-top: 16px;
    background: var(--bg-tertiary);
}

.video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Module Videos Section */
.module-videos {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
}

.module-videos-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.module-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.module-video-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.module-video-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.video-summary-small {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

/* First Time Guide Styles */
.first-time-guide {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
}

.guide-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.guide-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.steps-list {
    display: grid;
    gap: 24px;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.step-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.step-number {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
}

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

.step-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-info p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 16px;
    line-height: 1.6;
}

.step-info .btn-primary {
    background: white;
    color: var(--primary);
    border: none;
}

.step-info .btn-primary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

/* Mentors */
.mentors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.mentor-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: var(--transition);
}

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

.mentor-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

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

.mentor-info {
    flex: 1;
}

.mentor-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.mentor-headline {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.mentor-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mentor-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.mentor-badge.verified {
    background: var(--success);
    color: white;
}

.mentor-badge.featured {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.mentor-badge.pro {
    background: var(--accent);
    color: white;
}

.mentor-bio {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.rating-count {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
}

.mentor-location {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

/* Loading */
.loading {
    text-align: center;
    padding: 64px;
    color: var(--text-muted);
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 0;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 32px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.close-modal:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 968px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .course-viewer-content {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
}

/* AI Tutor Widget */
.ai-tutor-widget {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 600px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.ai-tutor-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.tutor-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tutor-info {
    flex: 1;
}

.tutor-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.tutor-status {
    font-size: 12px;
    opacity: 0.9;
}

.tutor-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tutor-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ai-tutor-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.tutor-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.5;
}

.tutor-message.bot {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    align-self: flex-start;
}

.tutor-message.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
}

.tutor-input-container {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    align-items: center;
}

.tutor-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

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

.tutor-send {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tutor-send:hover {
    background: var(--primary-dark);
}

.tutor-send:active {
    transform: scale(0.98);
}

.ai-tutor-widget.collapsed {
    height: auto;
}

.ai-tutor-widget.collapsed .ai-tutor-body {
    display: none;
}

/* Scrollbar for tutor messages */
.tutor-messages::-webkit-scrollbar {
    width: 6px;
}

.tutor-messages::-webkit-scrollbar-track {
    background: transparent;
}

.tutor-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.tutor-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Responsive AI Tutor */
@media (max-width: 1400px) {
    .ai-tutor-widget {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 350px;
        max-height: 500px;
        z-index: 1000;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 768px) {
    .ai-tutor-widget {
        width: calc(100% - 40px);
        max-width: 350px;
        bottom: 10px;
        right: 10px;
    }
}

/* Notifications Badge */
.notification-badge {
    background: #ef4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    min-width: 18px;
    text-align: center;
}

/* Notifications Page */
.notifications-container {
    padding: 20px;
}

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

.notification-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.notification-item:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notification-item.unread {
    background: #eff6ff;
    border-color: #3b82f6;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #3b82f6;
    border-radius: 12px 0 0 12px;
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

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

.notification-title {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-time {
    font-size: 12px;
    color: #9ca3af;
}

.notification-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
}

/* Empty state for notifications */
.notifications-container .empty-state {
    text-align: center;
    padding: 60px 20px;
}

.notifications-container .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.notifications-container .empty-state h3 {
    font-size: 20px;
    color: #111827;
    margin-bottom: 8px;
}

.notifications-container .empty-state p {
    color: #6b7280;
    font-size: 14px;
}

