/*
 * Vidyanex - Android Mobile Education App UI Stylesheet
 * Specifically designed for Android Studio WebView & Mobile App Viewport
 * Blueprint Screens: Profile/Me, Profile Details, Class Selector Modal, Home/Course Screen, Login Screen
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --app-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --app-font-heading: 'Outfit', sans-serif;
    
    /* Modern Harmonious Palette */
    --app-bg: #f8fafc;
    --app-card-bg: #ffffff;
    --app-primary: #2563eb;
    --app-primary-hover: #1d4ed8;
    --app-primary-light: #eff6ff;
    --app-secondary: #4f46e5;
    --app-accent: #f59e0b;
    --app-text: #0f172a;
    --app-text-sub: #64748b;
    --app-border: #e2e8f0;
    
    --app-radius-sm: 10px;
    --app-radius-md: 16px;
    --app-radius-lg: 24px;
    --app-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    --app-shadow-lg: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
}

/* App Shell Base Reset */
.app-container {
    font-family: var(--app-font);
    background-color: var(--app-bg);
    color: var(--app-text);
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: 74px; /* clearance for bottom nav bar */
    box-sizing: border-box;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Screen View Panels */
.app-screen {
    display: none;
    animation: fadeInScreen 0.25s ease-in-out forwards;
}

.app-screen.active {
    display: block;
}

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

/* Status Bar & Header Base */
.app-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--app-border);
}

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

.class-selector-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--app-text);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.class-selector-btn:active {
    transform: scale(0.96);
    background: #e2e8f0;
}

.app-icon-btn {
    background: #f8fafc;
    border: 1px solid var(--app-border);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--app-text);
    font-size: 1.15rem;
    position: relative;
    cursor: pointer;
}

.notification-badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

/* ==========================================
   SCREEN 1: PROFILE / ME SCREEN
   ========================================== */
.me-profile-card {
    background: #ffffff;
    padding: 20px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--app-border);
}

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

.me-avatar-circle {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.me-user-name {
    font-family: var(--app-font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.online-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.me-user-class {
    color: var(--app-text-sub);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 2px;
}

/* Gamification Badges Row */
.me-badges-row {
    display: flex;
    gap: 10px;
    padding: 14px 18px;
    background: #ffffff;
}

.me-badge-pill {
    flex: 1;
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #475569;
}

.me-badge-pill i {
    color: #6366f1;
    font-size: 1.05rem;
}

/* Refer Banner */
.me-refer-banner {
    margin: 14px 18px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--app-radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.me-refer-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e3a8a;
}

.me-refer-sub {
    font-size: 0.8rem;
    color: #3b82f6;
    margin-top: 2px;
}

.me-refer-gift {
    font-size: 2rem;
    color: #f59e0b;
}

/* Stat Cards (App Coins & Coupons) */
.me-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 18px 14px 18px;
}

.me-stat-card {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--app-shadow);
}

.me-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.me-stat-icon.coins {
    background: #fef3c7;
    color: #d97706;
}

.me-stat-icon.coupons {
    background: #ffedd5;
    color: #ea580c;
}

.me-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--app-text-sub);
}

.me-stat-val {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--app-text);
}

/* Nav Menu List */
.me-menu-list {
    background: #ffffff;
    border-top: 1px solid var(--app-border);
    border-bottom: 1px solid var(--app-border);
    margin-bottom: 20px;
}

.me-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--app-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.me-menu-item:last-child {
    border-bottom: none;
}

.me-menu-item:active {
    background: #f8fafc;
}

.me-menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.me-menu-left i {
    font-size: 1.15rem;
    color: #475569;
    width: 22px;
}

.me-menu-right {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
}

/* ==========================================
   SCREEN 2: PROFILE DETAIL SCREEN
   ========================================== */
.profile-detail-header {
    background: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--app-border);
    position: sticky;
    top: 0;
    z-index: 30;
}

.back-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--app-text);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.profile-detail-title {
    font-family: var(--app-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.profile-field-group {
    background: #ffffff;
    margin-top: 10px;
    border-top: 1px solid var(--app-border);
    border-bottom: 1px solid var(--app-border);
}

.profile-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92rem;
}

.profile-field-row:last-child {
    border-bottom: none;
}

.profile-field-label {
    font-weight: 600;
    color: var(--app-text);
}

.profile-field-val {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--app-text-sub);
    font-weight: 500;
}

.profile-field-val.active-dot {
    color: var(--app-text);
    font-weight: 600;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--app-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.logout-btn-container {
    padding: 24px 18px;
}

.app-btn-secondary {
    width: 100%;
    padding: 14px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--app-radius-md);
    color: #475569;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.app-btn-secondary:active {
    background: #e2e8f0;
}

/* ==========================================
   SCREEN 3: CLASS SELECTION BOTTOM SHEET MODAL
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.bottom-sheet-card {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 16px 20px 28px 20px;
    box-sizing: border-box;
    z-index: 101;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

.bottom-sheet-card.active {
    transform: translateX(-50%) translateY(0);
}

.sheet-handle-bar {
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
    margin: 0 auto 14px auto;
}

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

.sheet-title {
    font-family: var(--app-font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--app-text);
}

.sheet-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #64748b;
    cursor: pointer;
}

.classes-3col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

.class-item-pill {
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    padding: 12px 6px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--app-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.class-item-pill:active {
    transform: scale(0.96);
}

.class-item-pill.selected {
    background: var(--app-primary);
    color: #ffffff;
    border-color: var(--app-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ==========================================
   SCREEN 4: HOME / COURSE SCREEN
   ========================================== */
.hero-banner-card {
    margin: 16px 18px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: var(--app-radius-md);
    padding: 20px 18px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--app-shadow-lg);
}

.hero-banner-content {
    max-width: 65%;
    position: relative;
    z-index: 2;
}

.hero-banner-title {
    font-family: var(--app-font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.25;
}

.hero-banner-sub {
    font-size: 0.78rem;
    opacity: 0.9;
    margin-top: 6px;
    font-weight: 500;
}

.hero-banner-img {
    position: absolute;
    right: 10px;
    bottom: 0;
    height: 110px;
    z-index: 1;
}

/* Section Header */
.app-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    margin-top: 20px;
    margin-bottom: 12px;
}

.app-section-title {
    font-family: var(--app-font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--app-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-section-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--app-primary);
    text-decoration: none;
}

/* Free Open Session Card */
.open-session-card {
    background: #ffffff;
    margin: 0 18px 16px 18px;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--app-shadow);
}

.teacher-avatar-square {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #eff6ff;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--app-primary);
}

.open-session-details {
    flex: 1;
}

.open-session-topic {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--app-text);
}

.open-session-meta {
    font-size: 0.78rem;
    color: var(--app-text-sub);
    margin-top: 3px;
}

.open-session-time {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--app-primary);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.book-now-btn {
    padding: 6px 14px;
    background: #ffffff;
    border: 1.5px solid var(--app-primary);
    color: var(--app-primary);
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.book-now-btn:active {
    background: var(--app-primary);
    color: #ffffff;
}

/* Featured Short Course Card */
.course-card-featured {
    background: #ffffff;
    margin: 0 18px 16px 18px;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    padding: 16px;
    box-shadow: var(--app-shadow);
}

.course-tags-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.course-tag-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.course-price-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.course-price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-current {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--app-text);
}

.price-original {
    font-size: 0.82rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.price-tag-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ef4444;
}

.app-btn-enroll {
    padding: 8px 18px;
    background: var(--app-primary);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.app-btn-enroll:active {
    transform: scale(0.96);
    background: var(--app-primary-hover);
}

/* Long Term Course Card */
.course-card-longterm {
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    margin: 0 18px 24px 18px;
    border: 1.5px solid #bfdbfe;
    border-radius: var(--app-radius-md);
    padding: 16px;
    box-shadow: var(--app-shadow);
}

.longterm-bullets {
    margin: 10px 0 14px 0;
    list-style: none;
    padding: 0;
}

.longterm-bullets li {
    font-size: 0.82rem;
    color: var(--app-text-sub);
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.longterm-bullets li i {
    color: #10b981;
    font-size: 0.9rem;
}

/* ==========================================
   SCREEN 5: LOGIN SCREEN
   ========================================== */
.login-screen-wrapper {
    padding: 40px 24px;
    text-align: center;
    background: #ffffff;
    min-height: 100vh;
    box-sizing: border-box;
}

.login-brand-icon {
    width: 64px;
    height: 64px;
    background: var(--app-primary-light);
    color: var(--app-primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 14px auto;
}

.login-brand-title {
    font-family: var(--app-font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--app-text);
}

.login-portal-sub {
    font-size: 0.88rem;
    color: var(--app-text-sub);
    margin-top: 6px;
    margin-bottom: 28px;
}

.google-signin-btn {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--app-text);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.login-divider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
}

.login-divider-row::before,
.login-divider-row::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--app-border);
}

.app-input-field {
    width: 100%;
    padding: 13px 16px;
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    font-size: 0.92rem;
    font-family: var(--app-font);
    box-sizing: border-box;
    margin-bottom: 14px;
    outline: none;
    transition: border 0.2s ease;
}

.app-input-field:focus {
    border-color: var(--app-primary);
    background: #ffffff;
}

.password-input-wrap {
    position: relative;
    margin-bottom: 10px;
}

.password-toggle-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
}

.forgot-password-link {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--app-primary);
    text-decoration: none;
    margin-bottom: 20px;
}

.app-btn-gradient {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: var(--app-radius-md);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.create-account-wrap {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--app-text-sub);
}

.create-account-wrap a {
    color: var(--app-primary);
    font-weight: 700;
    text-decoration: none;
}

.login-terms-footer {
    margin-top: 30px;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* ==========================================
   PERSISTENT BOTTOM NAVIGATION BAR
   ========================================== */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-top: 1px solid var(--app-border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 0;
    z-index: 30000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 3px;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
    font-size: 1.35rem;
}

.bottom-nav-item.active {
    color: var(--app-primary);
    font-weight: 700;
}

/* ==========================================
   SCREEN 6: MY STUDY SCREEN
   ========================================== */
.study-screen-header {
    background: #ffffff;
    padding: 16px 18px;
    border-bottom: 1px solid var(--app-border);
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.study-screen-title {
    font-family: var(--app-font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--app-text);
}

.study-screen-sub {
    font-size: 0.8rem;
    color: var(--app-text-sub);
    margin-top: 2px;
}

.study-card-item {
    background: #ffffff;
    margin: 16px 18px;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    overflow: hidden;
    box-shadow: var(--app-shadow);
}

.study-card-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.study-card-body {
    padding: 16px;
}

.study-progress-wrap {
    margin: 12px 0 16px 0;
}

.study-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--app-text-sub);
    margin-bottom: 6px;
}

.study-progress-bar {
    height: 7px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.study-progress-fill {
    height: 100%;
    background: #10b981;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.study-btn-row {
    display: flex;
    gap: 8px;
}

.study-btn-resume {
    flex: 1;
    padding: 10px 14px;
    background: var(--app-primary);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.study-btn-schedule {
    flex: 1;
    padding: 10px 14px;
    background: #ffffff;
    border: 1.5px solid var(--app-primary);
    color: var(--app-primary);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.study-empty-card {
    background: #ffffff;
    margin: 30px 18px;
    padding: 36px 20px;
    border-radius: var(--app-radius-lg);
    border: 1px solid var(--app-border);
    text-align: center;
    box-shadow: var(--app-shadow);
}

/* ==========================================
   SCREEN 7: AI TUTOR SCREEN
   ========================================== */
.ai-screen-header {
    background: #ffffff;
    padding: 14px 18px;
    border-bottom: 1px solid var(--app-border);
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.ai-robot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.ai-status-pill {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ai-chat-feed {
    padding: 16px 18px 90px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: calc(100vh - 200px);
}

.ai-prompt-chips-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.ai-prompt-chips-row::-webkit-scrollbar {
    display: none;
}

.ai-chip {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--app-text);
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--app-shadow);
    transition: all 0.15s ease;
}

.ai-chip:active {
    background: #eff6ff;
    border-color: var(--app-primary);
}

.chat-bubble-ai {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 88%;
}

.ai-msg-content {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    border-top-left-radius: 4px;
    padding: 12px 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--app-text);
    box-shadow: var(--app-shadow);
}

.chat-bubble-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border-radius: 16px;
    border-top-right-radius: 4px;
    padding: 10px 14px;
    font-size: 0.88rem;
    line-height: 1.4;
    max-width: 82%;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.ai-input-fixed-bar {
    position: fixed;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    padding: 10px 14px;
    background: #ffffff;
    border-top: 1px solid var(--app-border);
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    z-index: 45;
}

.ai-input-box {
    flex: 1;
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-family: var(--app-font);
    outline: none;
}

.ai-input-box:focus {
    border-color: var(--app-primary);
    background: #ffffff;
}

.ai-send-btn {
    width: 40px;
    height: 40px;
    background: var(--app-primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ==========================================
   SCREEN 8: NATIVE MOBILE CLASSROOM & SCHEDULE
   (Exact Match to Blueprint Screenshot 3)
   ========================================== */
.classroom-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--app-border);
}

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

.classroom-header-actions i {
    font-size: 1.25rem;
    color: var(--app-text);
    cursor: pointer;
}

.classroom-hero {
    background: #ffffff;
    padding: 16px 18px 14px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.classroom-title {
    font-family: var(--app-font-heading);
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--app-text);
    line-height: 1.3;
    margin-bottom: 4px;
}

.classroom-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 8px;
}

.classroom-dates-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 14px;
}

.classroom-mentor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.classroom-teacher-avatars {
    display: flex;
    align-items: center;
}

.classroom-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -8px;
    object-fit: cover;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #64748b;
}

.classroom-avatar-mini:first-child {
    margin-left: 0;
}

.classroom-mentor-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.classroom-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.classroom-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--app-text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.classroom-quick-item:active {
    background: #eff6ff;
    border-color: #93c5fd;
}

.classroom-quick-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.classroom-quick-item span {
    font-size: 0.78rem;
    font-weight: 700;
}

.classroom-subtabs {
    display: flex;
    background: #ffffff;
    border-bottom: 1.5px solid var(--app-border);
    position: sticky;
    top: 55px;
    z-index: 35;
}

.classroom-subtab {
    flex: 1;
    text-align: center;
    padding: 12px 2px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.classroom-subtab.active {
    color: var(--app-text);
    font-weight: 800;
}

.classroom-subtab.active::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: #0f172a;
    border-radius: 3px;
}

.classroom-sessions-feed {
    padding: 14px 18px 80px 18px;
}

.classroom-date-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    margin: 16px 0 8px 0;
}

.classroom-date-label:first-child {
    margin-top: 4px;
}

.classroom-session-card {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--app-shadow);
}

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

.session-title-text {
    font-family: var(--app-font-heading);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--app-text);
    line-height: 1.35;
}

.session-subject-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 6px;
}

.session-teacher-thumb {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    background: #e2e8f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #94a3b8;
}

.session-time-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    margin: 10px 0 12px 0;
    color: #d97706;
    font-weight: 600;
}

.session-status-text {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

.session-status-text.live {
    color: #ef4444;
    font-weight: 700;
}

.session-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.btn-session-zoom {
    flex: 1;
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
}

.btn-session-zoom:active {
    background: #059669;
}

.btn-session-homework {
    flex: 1;
    background: #ffffff;
    color: var(--app-primary);
    border: 1.5px solid var(--app-primary);
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}

.btn-session-homework:active {
    background: #eff6ff;
}

.btn-session-recording {
    flex: 1;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(109, 40, 217, 0.25);
}

.btn-session-recording:active {
    opacity: 0.9;
}

.session-completed-tag {
    flex: 1;
    background: #f8fafc;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Exam & Special Session Buttons */
.btn-session-exam {
    flex: 1;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    border: none;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.btn-session-exam:active {
    transform: scale(0.98);
    background: #1d4ed8;
}

.btn-session-exam.completed {
    background: #ecfdf5;
    color: #059669 !important;
    border: 1.5px solid #10b981;
    box-shadow: none;
}

.btn-session-exam.disabled {
    background: #f1f5f9;
    color: #94a3b8 !important;
    border: 1.5px solid #e2e8f0;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.85;
}

.session-exam-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 800;
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 2px 8px;
    border-radius: 6px;
}

.session-recorded-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 800;
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    padding: 2px 8px;
    border-radius: 6px;
}

.session-exam-thumb {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #d97706;
}

.session-recorded-thumb {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #7c3aed;
}

/* Video Player Mobile Modal */
.video-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.video-modal-overlay.active {
    display: flex;
}

.video-modal-card {
    background: #0f172a;
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
}

#video-modal-body {
    padding: 14px;
}

/* ==========================================
   NATIVE MOBILE HOMEWORK WORKSPACE MODAL
   ========================================== */
.homework-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.homework-modal-overlay.active {
    display: flex;
}

.homework-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    height: 90vh;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.homework-modal-header {
    background: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--app-border);
    flex-shrink: 0;
}

.homework-modal-title {
    font-family: var(--app-font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--app-text);
}

.homework-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    background: #f8fafc;
}

.hw-question-card {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--app-shadow);
}

.hw-q-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.hw-options-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hw-opt-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    user-select: none;
}

.hw-opt-btn:active {
    background: #eff6ff;
}

.hw-opt-btn.selected {
    border-color: var(--app-primary);
    background: #eff6ff;
    color: var(--app-primary);
    font-weight: 700;
}

.hw-opt-btn.correct {
    border-color: #10b981 !important;
    background: #ecfdf5 !important;
    color: #059669 !important;
    font-weight: 700;
}

.hw-opt-btn.incorrect {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.hw-opt-tag {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hw-opt-btn.selected .hw-opt-tag {
    background: var(--app-primary);
    color: #ffffff;
}

.hw-opt-btn.correct .hw-opt-tag {
    background: #10b981;
    color: #ffffff;
}

.hw-opt-btn.incorrect .hw-opt-tag {
    background: #ef4444;
    color: #ffffff;
}

.homework-modal-footer {
    padding: 12px 18px;
    background: #ffffff;
    border-top: 1px solid var(--app-border);
    flex-shrink: 0;
}

/* ==========================================
   NATIVE IN-APP LIVE CLASSROOM MODAL
   (100% In-App Window, Zero Separate Tabs)
   ========================================== */
.live-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(6px);
    z-index: 1050;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.live-modal-overlay.active {
    display: flex;
}

.live-modal-card {
    background: #0f172a;
    color: #ffffff;
    width: 100%;
    max-width: 480px;
    height: 92vh;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.live-modal-header {
    background: #1e293b;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.live-modal-title {
    font-family: var(--app-font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot-pulse {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.live-modal-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.live-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.live-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #0f172a;
    padding: 16px;
    gap: 14px;
}

.live-info-banner {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
}

.live-session-name {
    font-weight: 800;
    font-size: 1.02rem;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 8px;
}

.live-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.live-attendance-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 10px;
}

.live-frame-wrap {
    flex: 1;
    min-height: 300px;
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.live-frame-wrap iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    border: none;
}

.live-action-buttons {
    display: flex;
    gap: 10px;
}

.btn-open-zoom-app {
    flex: 1;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    text-decoration: none;
}

.btn-open-zoom-app:active {
    transform: scale(0.98);
    background: #1d4ed8;
}

.btn-open-zoom-web {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.btn-open-zoom-web:active {
    background: rgba(255, 255, 255, 0.18);
}

/* ==========================================
   MENTOR CONNECT & DOUBT RESOLUTION STYLES
   ========================================== */
.mentor-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 60px;
}

.mentor-modal-overlay.active {
    display: flex;
}

.mentor-modal-card {
    width: 100%;
    max-width: 480px;
    height: calc(88vh - 60px);
    max-height: 750px;
    background: #f8fafc;
    border-radius: 28px 28px 16px 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
    animation: mentorSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mentorSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mentor-modal-header {
    background: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
}

.mentor-header-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mentor-header-sub {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

.mentor-modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mentor-modal-close-btn:active {
    background: #e2e8f0;
}

.mentor-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px 30px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Mentor Profile & Direct Contact Card */
.mentor-profile-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 18px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.mentor-profile-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.mentor-avatar-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    position: relative;
}

.mentor-verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #10b981;
    color: #ffffff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.mentor-info-col {
    flex: 1;
    min-width: 0;
}

.mentor-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mentor-batch-text {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mentor-batch-badge {
    background: rgba(37, 99, 235, 0.25);
    color: #93c5fd;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Call & WhatsApp Quick Buttons */
.mentor-quick-actions {
    display: flex;
    gap: 10px;
}

.btn-mentor-call {
    flex: 1;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 11px 14px;
    font-weight: 700;
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: transform 0.15s ease;
}

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

.btn-mentor-wa {
    flex: 1;
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 11px 14px;
    font-weight: 700;
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
    transition: transform 0.15s ease;
}

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

/* Subtabs Switcher */
.mentor-subtabs-nav {
    display: flex;
    background: #e2e8f0;
    border-radius: 14px;
    padding: 4px;
    gap: 4px;
}

.mentor-tab-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #64748b;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mentor-tab-btn.active {
    background: #ffffff;
    color: var(--app-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Doubt Submission Form */
.doubt-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--app-shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.doubt-input-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.doubt-subject-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
}

.doubt-subject-select:focus {
    border-color: var(--app-primary);
    background: #ffffff;
}

.doubt-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.88rem;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    resize: vertical;
    font-family: inherit;
    line-height: 1.4;
}

.doubt-textarea:focus {
    border-color: var(--app-primary);
    background: #ffffff;
}

.doubt-attach-box {
    border: 1.5px dashed #cbd5e1;
    border-radius: 14px;
    padding: 12px;
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.doubt-attach-box:hover {
    border-color: var(--app-primary);
    background: #eff6ff;
}

.doubt-attach-text {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.doubt-preview-wrap {
    margin-top: 8px;
    display: none;
    position: relative;
    max-width: 120px;
}

.doubt-preview-img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.doubt-remove-preview {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doubt-reward-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef3c7;
    color: #92400e;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.btn-submit-doubt {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 13px;
    font-weight: 800;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.btn-submit-doubt:active {
    transform: scale(0.98);
}

.btn-submit-doubt:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Doubt History Items */
.doubt-history-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--app-shadow);
    margin-bottom: 12px;
}

.doubt-hist-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.doubt-hist-subj {
    font-size: 0.76rem;
    font-weight: 800;
    background: #f1f5f9;
    color: #334155;
    padding: 3px 8px;
    border-radius: 6px;
}

.doubt-hist-status {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.doubt-hist-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.doubt-hist-status.resolved {
    background: #dcfce7;
    color: #15803d;
}

.doubt-hist-desc {
    font-size: 0.88rem;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.doubt-hist-meta {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.doubt-mentor-reply-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
}

.doubt-reply-author {
    font-size: 0.78rem;
    font-weight: 800;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.doubt-reply-body {
    font-size: 0.84rem;
    color: #1e293b;
    line-height: 1.4;
}

.doubt-empty-box {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}



