/**
 * classroom.css
 * SMARTAPP LMS - SMARTAPP LMS Edition
 * Sistem Desain Modern, Responsif, Elegan dengan Card Gradients & Micro-interactions
 */

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

:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Warna Dasar */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --border-subtle: #e2e8f0;
    --border-focus: #6366f1;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-on-dark: #ffffff;

    /* Theme Primary */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-border: #c7d2fe;

    /* Status Colors */
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --info: #0284c7;
    --info-light: #f0f9ff;

    /* Card & Banner Modern 4-Stop Gradients */
    --grad-indigo: linear-gradient(135deg, #312e81 0%, #4338ca 30%, #6366f1 70%, #818cf8 100%);
    --grad-emerald: linear-gradient(135deg, #064e3b 0%, #047857 32%, #10b981 72%, #34d399 100%);
    --grad-cyan: linear-gradient(135deg, #0c4a6e 0%, #0284c7 35%, #0ea5e9 70%, #38bdf8 100%);
    --grad-amber: linear-gradient(135deg, #78350f 0%, #b45309 30%, #d97706 68%, #f59e0b 100%);
    --grad-rose: linear-gradient(135deg, #881337 0%, #be123c 32%, #f43f5e 70%, #fb7185 100%);
    --grad-violet: linear-gradient(135deg, #4c1d95 0%, #6d28d9 32%, #8b5cf6 70%, #a78bfa 100%);
    --grad-purple: linear-gradient(135deg, #3b0764 0%, #5b21b6 32%, #7c3aed 70%, #a855f7 100%);
    --grad-teal: linear-gradient(135deg, #134e4a 0%, #0f766e 32%, #14b8a6 70%, #2dd4bf 100%);
    --grad-blue: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 32%, #3b82f6 70%, #60a5fa 100%);
    --grad-pink: linear-gradient(135deg, #701a75 0%, #9d174d 32%, #db2777 70%, #f472b6 100%);

    /* Shadows & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 8px 24px -4px rgba(79, 70, 229, 0.25);

    --transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* TOP NAVBAR (Clean, Crisp & Ultra-Fast Solid Header - CBT Grade Performance) */
.classroom-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

#btnBackToDashboard,
.nav-pill-btn#btnBackToDashboard {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    cursor: default !important;
    user-select: none !important;
    pointer-events: none !important;
}

.brand-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 7px;
    filter: drop-shadow(0 2px 6px rgba(79, 70, 229, 0.25));
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-link:hover .brand-logo-img {
    transform: none !important;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--grad-indigo);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.brand-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    margin-left: 4px;
}

.nav-middle-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    font-size: 0.80rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
}

.nav-pill-btn:hover {
    background: var(--bg-page);
    color: var(--text-primary);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.nav-pill-btn.btn-cbt {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.nav-pill-btn.btn-cbt:hover {
    background: #dcfce7;
}

/* ==========================================================================
   HEADER USER PROFILE CAPSULE (CLEAN, PRECISE & AESTHETIC)
   ========================================================================== */
.header-user-capsule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 3px 14px 3px 5px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    flex-shrink: 0;
}

.header-user-capsule:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.07);
}

.header-avatar-ring {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    flex-shrink: 0;
    overflow: hidden;
}

.header-avatar-ring .user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-avatar-ring .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.header-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
}

.header-user-fullname-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 145px;
    line-height: 1.2;
}

.header-user-fullname {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.01em;
    max-width: 125px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Plus Jakarta Sans', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

.header-verified-badge {
    color: #0ea5e9; /* Telegram Sky Blue */
    font-size: 0.76rem;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.header-role-text,
.header-role-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: 'Plus Jakarta Sans', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Bell Notification Button (Soft Warm Peach with Orange Bell) */
.header-bell-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.90rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    flex-shrink: 0;
}

.header-bell-btn:hover {
    background: #ffedd5;
    border-color: #fdba74;
    color: #ea580c;
    transform: scale(1.05);
}

.header-bell-btn:active {
    transform: scale(0.96);
}

/* Logout Pill Button (Soft Red with Icon & Text) */
.header-logout-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 13px;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #991b1b;
    border-radius: 9999px;
    font-size: 0.80rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.header-logout-pill i {
    font-size: 0.84rem;
    color: #991b1b;
    transition: transform 0.2s ease;
}

.header-logout-pill:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #7f1d1d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.header-logout-pill:hover i {
    transform: translateX(2px);
    color: #7f1d1d;
}

.header-logout-pill:active {
    transform: translateY(0);
}

/* SUB-HEADER / CLASS TABS NAVIGATION (when inside a class) */
.class-tabs-bar {
    position: sticky;
    top: 56px;
    z-index: 95;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 6px 24px;
    gap: 12px;
    box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.06);
}

body.in-course .class-tabs-bar {
    display: flex;
}

.class-tabs-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.class-tabs-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.btn-tab-action {
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #444746;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.btn-tab-action:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1f1f1f;
}

.btn-tab-action.btn-tab-meet {
    color: #0b57d0;
}

.btn-tab-action.btn-tab-meet:hover {
    background: rgba(11, 87, 208, 0.1);
    color: #0842a0;
}

.tab-btn {
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.tab-lbl-short {
    display: none;
}

.tab-btn i {
    font-size: 0.92rem;
    transition: transform 0.2s ease;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.06);
}

.tab-btn:hover i {
    transform: scale(1.1);
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    font-weight: 700;
    box-shadow: inset 0 0 0 1.5px rgba(79, 70, 229, 0.22);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--primary);
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.tab-btn .badge {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    background: var(--bg-page);
}

/* MAIN CONTAINER */
.classroom-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 24px 80px 24px;
}

/* DASHBOARD / GRID KELAS */
.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-subtle);
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.hero-text h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.filter-pills-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pill-filter {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.pill-filter:hover {
    border-color: #cbd5e1;
    color: var(--text-primary);
}

.pill-filter.active {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}

/* CLASS GRID */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* COMPACT GRID MODE FOR SETELAN PREFERENSI */
.classes-grid.compact-mode {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    gap: 16px !important;
}

.classes-grid.compact-mode .card-header-banner {
    min-height: 85px !important;
    padding: 14px 14px 10px 14px !important;
}

.classes-grid.compact-mode .card-class-title {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
}

.classes-grid.compact-mode .card-class-section {
    font-size: 0.78rem !important;
}

.classes-grid.compact-mode .card-body {
    padding: 12px 14px !important;
    min-height: 60px !important;
}

.classes-grid.compact-mode .card-footer {
    padding: 10px 14px !important;
}

.class-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.class-card.menu-open,
.class-card:has(.card-dropdown-menu.show),
.class-card:has(.card-dropdown-menu[style*="display: block"]) {
    overflow: visible !important;
    z-index: 100 !important;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.card-header-banner {
    padding: 20px 20px 16px 20px;
    color: #ffffff;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
}

.banner-indigo { background: var(--grad-indigo) !important; background-color: #4338ca !important; }
.banner-emerald { background: var(--grad-emerald) !important; background-color: #047857 !important; }
.banner-cyan { background: var(--grad-cyan) !important; background-color: #0369a1 !important; }
.banner-amber { background: var(--grad-amber) !important; background-color: #b45309 !important; }
.banner-rose { background: var(--grad-rose) !important; background-color: #be123c !important; }
.banner-violet { background: var(--grad-violet) !important; background-color: #6d28d9 !important; }
.banner-purple { background: var(--grad-purple) !important; background-color: #5b21b6 !important; }
.banner-teal { background: var(--grad-teal) !important; background-color: #0f766e !important; }
.banner-blue { background: var(--grad-blue) !important; background-color: #1d4ed8 !important; }
.banner-pink { background: var(--grad-pink) !important; background-color: #9d174d !important; }

.card-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.card-class-badge {
    background: rgba(0, 0, 0, 0.22);
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.card-section {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 2px;
}

.card-teacher-avatar-float {
    position: absolute;
    bottom: -22px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 3px solid #ffffff;
    z-index: 5;
}

.card-body {
    padding: 24px 20px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-teacher-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.card-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.card-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-footer-actions {
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-open-class {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ========================================================= */
/* INSIDE A CLASS: FORUM / STREAM VIEW */
/* ========================================================= */
.class-hero-banner {
    position: relative;
    border-radius: 22px;
    padding: 32px 30px;
    background: #4338ca;
    background: var(--grad-indigo, linear-gradient(135deg, #312e81 0%, #4338ca 30%, #6366f1 70%, #818cf8 100%));
    color: #ffffff !important;
    margin-bottom: 24px;
    box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Ambient Radial Lighting Overlays */
.class-hero-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.class-hero-banner::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.class-hero-banner.banner-amber {
    box-shadow: 0 16px 36px -10px rgba(180, 83, 9, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.class-hero-banner.banner-indigo {
    box-shadow: 0 16px 36px -10px rgba(67, 56, 202, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.class-hero-banner.banner-emerald {
    box-shadow: 0 16px 36px -10px rgba(4, 120, 87, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.class-hero-banner.banner-cyan {
    box-shadow: 0 16px 36px -10px rgba(3, 105, 161, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.class-hero-banner.banner-rose {
    box-shadow: 0 16px 36px -10px rgba(190, 18, 60, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.class-hero-banner.banner-violet {
    box-shadow: 0 16px 36px -10px rgba(109, 40, 217, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.class-hero-banner.banner-purple {
    box-shadow: 0 16px 36px -10px rgba(91, 33, 182, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.class-hero-banner.banner-teal {
    box-shadow: 0 16px 36px -10px rgba(15, 118, 110, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.class-hero-banner.banner-blue {
    box-shadow: 0 16px 36px -10px rgba(29, 78, 216, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.class-hero-banner.banner-pink {
    box-shadow: 0 16px 36px -10px rgba(157, 23, 77, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.hero-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-info-col {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.22;
    margin: 0 0 10px 0;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.hero-sub-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    color: #ffffff;
}

.hero-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.hero-meta-pill i {
    font-size: 0.78rem;
    opacity: 0.9;
}

.hero-code-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 6px 14px 6px 14px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.hero-code-lbl {
    font-size: 0.78rem;
    opacity: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.9);
}

.hero-code-val {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    font-family: 'SF Mono', Consolas, 'Courier New', monospace;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap !important;
}

.hero-code-btns {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-hero-code-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 9999px;
    padding: 4px 11px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-hero-code-action:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-hero-code-action:active {
    transform: translateY(0);
}

.hero-meet-row {
    display: none !important; /* Sembunyikan tombol gabung meet di hero banner pada mode desktop */
}

.btn-hero-meet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 87, 208, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 9999px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-hero-meet:hover {
    background: #0b57d0;
    border-color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11, 87, 208, 0.45);
}

.btn-hero-meet:active {
    transform: translateY(0);
}

.hero-teacher-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    padding: 12px 18px;
    flex-shrink: 0;
    align-self: flex-start;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: all 0.25s ease;
}

.hero-teacher-badge:hover {
    background: rgba(15, 23, 42, 0.52);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-teacher-icon-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.hero-teacher-icon {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.12) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.hero-teacher-icon img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.teacher-live-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-teacher-info {
    display: flex;
    flex-direction: column;
}

.hero-teacher-lbl-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.hero-teacher-lbl {
    font-size: 0.68rem;
    opacity: 0.9;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.hero-teacher-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.hero-teacher-class {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    opacity: 0.88;
    margin-top: 3px;
    color: #ffffff;
    font-weight: 500;
}

.stream-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.stream-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--bg-surface);
    border: 1px solid #dadce0;
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.05);
}

.sidebar-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.sidebar-card.meet-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.15), 0 1px 3px 1px rgba(60,64,67,0.08);
}

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

.meet-card-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meet-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.meet-card-logo-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.meet-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f1f1f;
    margin: 0;
}

.btn-card-menu {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background-color 0.15s ease;
}

.btn-card-menu:hover {
    background: #f1f3f4;
    color: #202124;
}

.meet-card-body {
    margin-bottom: 12px;
}

.btn-meet-join {
    width: 100%;
    padding: 9px 16px;
    background: #ffffff;
    border: 1px solid #747775;
    border-radius: 100px;
    color: #0b57d0;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-meet-join:hover {
    background: #f0f4f9;
    border-color: #0b57d0;
}

.meet-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #444746;
}

.sidebar-card.class-code-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.15), 0 1px 3px 1px rgba(60,64,67,0.08);
}

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

.class-code-card-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f1f1f;
    margin: 0;
}

.class-code-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.class-code-large {
    font-size: 1.45rem;
    font-weight: 600;
    color: #0b57d0;
    letter-spacing: 0.5px;
}

.btn-expand-code {
    background: none;
    border: none;
    color: #0b57d0;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: background 0.15s ease;
}

.btn-expand-code:hover {
    background: rgba(11, 87, 208, 0.08);
}

.sidebar-card.upcoming-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.15), 0 1px 3px 1px rgba(60,64,67,0.08);
}

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

.sidebar-card.upcoming-card .upcoming-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f1f1f;
    margin: 0;
}

.badge-upcoming-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0b57d0;
    background: #e8f0fe;
    padding: 2px 8px;
    border-radius: 12px;
}

.upcoming-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.upcoming-item-row {
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.upcoming-item-row:hover {
    background: #f0f7ff;
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(11, 87, 208, 0.08);
}

.upcoming-item-due {
    font-size: 0.73rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.upcoming-item-due.is-overdue {
    color: #dc2626;
    font-weight: 700;
}

.upcoming-item-due.is-today {
    color: #ea580c;
    font-weight: 700;
}

.upcoming-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.upcoming-item-title i {
    flex-shrink: 0;
    font-size: 0.82rem;
}

.upcoming-item-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.upcoming-empty {
    font-size: 0.84rem;
    color: #5f6368;
    line-height: 1.45;
}

.upcoming-link {
    font-size: 0.84rem;
    font-weight: 600;
    color: #0b57d0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    transition: color 0.15s ease;
}

.upcoming-link:hover {
    color: #0842a0;
    text-decoration: underline;
}

/* SMARTAPP LMS Signature Announcement Composer */
.stream-composer-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    width: 100%;
}

.stream-composer-box:hover {
    border-color: #b3dcfa;
    box-shadow: 0 4px 14px rgba(11, 87, 208, 0.12);
    background: #fdfdfd;
}

.composer-avatar-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #0b57d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    overflow: hidden;
}

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

.composer-avatar-fallback {
    font-size: 0.95rem;
    color: #0b57d0;
}

.composer-input-placeholder {
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
    color: #5f6368;
    font-weight: 400;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.composer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-composer-reuse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #f1f3f4;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-composer-reuse:hover {
    background: #e8eaed;
    color: #1f1f1f;
    border-color: #c4c7c5;
}

/* Stream Empty State Box */
.stream-empty-state-box {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 14px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.empty-icon-bubble {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #0b57d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 14px;
}

.empty-state-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f1f1f;
    margin: 0 0 6px 0;
}

.empty-state-desc {
    font-size: 0.88rem;
    color: #5f6368;
    margin: 0 0 16px 0;
    line-height: 1.45;
    max-width: 440px;
}

.btn-empty-announce {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0b57d0;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(11, 87, 208, 0.25);
    transition: all 0.2s ease;
}

.btn-empty-announce:hover {
    background: #0842a0;
    box-shadow: 0 4px 12px rgba(11, 87, 208, 0.35);
    transform: translateY(-1px);
}

/* Post Announcment Box */
.stream-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement-box-trigger {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.announcement-box-trigger:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
    background: #f8fafc;
}

.announcement-prompt {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
}

/* Stream Post Cards (SMARTAPP LMS Style - Slim & Clean) */
.stream-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 0 !important;
    box-shadow: none;
    margin-bottom: 16px;
    overflow: visible;
}

.stream-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}

.stream-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.stream-author-info {
    line-height: 1.2;
}

.stream-author-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.stream-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stream-card-content {
    font-size: 0.88rem;
    color: #1f1f1f;
    line-height: 1.5;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.stream-attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.attachment-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.attachment-chip:hover {
    border-color: var(--primary);
    background: #f1f5f9;
}

/* Comments Section */
.stream-comments-section {
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
    margin-top: 14px;
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-body {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 8px 12px;
    flex: 1;
    font-size: 0.84rem;
}

.comment-author {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.comment-more-wrap {
    position: relative;
    display: inline-block;
}

.btn-comment-more {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #5f6368;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}

.comment-item:hover .btn-comment-more,
.comment-item-cw:hover .btn-comment-more {
    opacity: 1;
}

.btn-comment-more:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.06);
    color: #1f1f1f;
}

.comment-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 4px 0;
    z-index: 1050;
    min-width: 120px;
    display: none;
}

.comment-dropdown-menu.show {
    display: block;
}

.comment-dropdown-menu .dropdown-item {
    padding: 7px 14px;
    font-size: 0.82rem;
    color: #3c4043;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.15s;
    user-select: none;
}

.comment-dropdown-menu .dropdown-item:hover {
    background-color: #f1f3f4;
}

.comment-dropdown-menu .dropdown-item.text-danger {
    color: #d93025;
}

.comment-dropdown-menu .dropdown-item.text-danger:hover {
    background-color: #fce8e6;
}

.comment-deleted-text {
    font-style: italic !important;
    color: #70757a !important;
}

.comment-edit-box {
    animation: fadeInCmntEdit 0.2s ease;
}

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

.comment-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.comment-input {
    flex: 1;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.comment-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ========================================================= */
/* TAB TUGAS KELAS (CLASSWORK) */
/* ========================================================= */
.classwork-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.dropdown-create-menu {
    position: relative;
    display: inline-block;
}

.dropdown-menu-list {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 220px;
    z-index: 50;
    overflow: hidden;
    display: none;
}

.dropdown-menu-list.show {
    display: block;
    animation: fadeIn 0.15s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-page);
    color: var(--primary);
}

/* Topic Accordion Groups */
.topic-group {
    margin-bottom: 36px;
}

.topic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--text-primary);
    margin-bottom: 16px;
}

.topic-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

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

.classwork-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.classwork-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.classwork-card-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
}

.classwork-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.classwork-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.icon-tugas {
    background: #eef2ff;
    color: #4f46e5;
}

.icon-materi {
    background: #ecfdf5;
    color: #059669;
}

.icon-kuis_cbt {
    background: #fffbeb;
    color: #d97706;
}

.icon-pertanyaan {
    background: #fdf2f8;
    color: #db2777;
}

.classwork-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.classwork-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.classwork-card-details {
    padding: 20px;
    border-top: 1px solid var(--border-subtle);
    background: #f8fafc;
    display: none;
}

.classwork-card.expanded .classwork-card-details {
    display: block;
}

.classwork-instructions {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    white-space: pre-wrap;
}

/* Status Badges */
.badge-status {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-diserahkan {
    background: #ecfdf5;
    color: #059669;
}

.badge-terlambat {
    background: #fef2f2;
    color: #dc2626;
}

.badge-dinilai {
    background: #eff6ff;
    color: #2563eb;
}

.badge-belum {
    background: #f1f5f9;
    color: #64748b;
}

/* ========================================================= */
/* TAB ANGGOTA (PEOPLE) */
/* ========================================================= */
/* ========================================================= */
/* TAB ANGGOTA (PEOPLE) - MODERNIZED DIRECTORY */
/* ========================================================= */
.people-page-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Quick Stats Bar */
.people-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.people-stat-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.people-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
}

.people-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.people-stat-icon.icon-blue { background: #eff6ff; color: #2563eb; }
.people-stat-icon.icon-purple { background: #f5f3ff; color: #7c3aed; }
.people-stat-icon.icon-emerald { background: #ecfdf5; color: #059669; }

.people-stat-info {
    display: flex;
    flex-direction: column;
}

.people-stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.people-stat-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Section Containers */
.people-section {
    margin-bottom: 32px;
}

.people-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.people-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.people-section-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-light, #eef2ff);
    color: var(--primary, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.people-section-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.people-count-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
}

/* Modern Teacher Profile Card */
.people-teacher-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
    margin-bottom: 12px;
}

.people-teacher-card:hover {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    border-color: rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

.people-card-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.people-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.people-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.people-card-meta {
    display: flex;
    flex-direction: column;
}

.people-card-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.people-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.verified-icon-check {
    color: #2563eb;
    font-size: 0.95rem;
}

.people-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.badge-role-teacher {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-subject-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Interactive Search Bar for Students */
.people-search-bar-wrap {
    margin-bottom: 16px;
    position: relative;
}

.people-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.people-search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
}

.people-search-bar i {
    color: #94a3b8;
    font-size: 0.95rem;
}

.people-search-bar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
    font-family: inherit;
}

.people-search-bar input::placeholder {
    color: #94a3b8;
}

.people-search-clear {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: none;
    font-size: 0.85rem;
}

.people-search-clear:hover {
    color: #475569;
}

/* Modern Students List & Rows */
.people-students-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modern-people-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-people-row:hover {
    background: #fafafa;
    border-color: #cbd5e1;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.modern-people-row.hidden-by-search {
    display: none !important;
}

.modern-people-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.modern-people-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.modern-people-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.modern-people-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.modern-people-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.modern-people-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 2px;
    flex-wrap: wrap;
}

.modern-people-pill {
    background: #f1f5f9;
    color: #475569;
    padding: 1px 7px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.72rem;
}

.modern-people-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.badge-student-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 9999px;
    padding: 3px 10px;
    font-size: 0.74rem;
    font-weight: 600;
}

.pulse-dot-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.btn-people-chat {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-people-chat:hover {
    background: var(--primary-light, #eef2ff);
    color: var(--primary, #4f46e5);
    border-color: rgba(79, 70, 229, 0.3);
    transform: scale(1.05);
}

.people-empty-search {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: var(--text-muted);
}

.people-empty-search i {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
}

@media (max-width: 640px) {
    .people-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .class-hero-banner {
        padding: 22px 18px;
    }
    .modern-people-row {
        padding: 10px 14px;
    }
    .badge-student-active {
        display: none;
    }
}

/* ========================================================= */
/* TAB NILAI (GRADES MATRIX) */
/* ========================================================= */
.grades-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: #ffffff;
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.badge-gradebook-sync {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.badge-gradebook-sync i {
    color: #10b981;
    font-size: 0.85rem;
}

.btn-gradebook-sync {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--primary, #2563eb);
    color: #ffffff;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-gradebook-sync:hover {
    background: var(--primary-hover, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-gradebook-sync:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-gradebook-open {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-gradebook-open:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
}

.grades-table-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.grades-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.grades-table th, .grades-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.grades-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

.grades-table td.cell-score {
    text-align: center;
    font-weight: 700;
}

/* ========================================================= */
/* TAB NILAI SISWA (MODERN EDTECH STUDENT GRADE PORTAL 2026) */
/* ========================================================= */
.sg-portal-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 16px;
    font-family: var(--font-main, 'Plus Jakarta Sans', sans-serif);
    color: var(--text-primary, #0f172a);
    animation: fadeInGrades 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 5 KPI STATS GRID */
.sg-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1200px) {
    .sg-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sg-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .sg-kpi-card.span-mobile-full {
        grid-column: span 2;
    }
}

.sg-kpi-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sg-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.sg-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sg-kpi-icon.blue { background: #eff6ff; color: #2563eb; }
.sg-kpi-icon.green { background: #ecfdf5; color: #059669; }
.sg-kpi-icon.amber { background: #fffbeb; color: #d97706; }
.sg-kpi-icon.rose { background: #fff1f2; color: #e11d48; }
.sg-kpi-icon.purple { background: #f5f3ff; color: #7c3aed; }

.sg-kpi-num {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.sg-kpi-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-top: 4px;
}

.sg-kpi-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

.sg-kpi-minitrack {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    margin: 6px 0 4px 0;
}

.sg-kpi-minibar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1 0%, #10b981 100%);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* MODERN INTERACTIVE TOOLBAR */
.sg-toolbar {
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.sg-pills-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sg-pill-btn {
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sg-pill-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.sg-pill-btn.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
    font-weight: 700;
}

.sg-pill-count {
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.08);
}

.sg-pill-btn.active .sg-pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.sg-tools-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
    min-width: 260px;
}

.sg-search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 280px;
}

.sg-search-box input {
    width: 100%;
    padding: 8px 32px 8px 34px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.82rem;
    font-family: inherit;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.2s;
}

.sg-search-box input:focus {
    background: #ffffff;
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.sg-search-icon {
    position: absolute;
    left: 11px;
    color: #94a3b8;
    font-size: 0.8rem;
    pointer-events: none;
}

.sg-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.sg-search-clear:hover {
    color: #1e293b;
}

.sg-sort-select {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.82rem;
    background: #f8fafc;
    color: #334155;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

/* ASSIGNMENT PORTFOLIO LIST */
.sg-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sg-task-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.sg-task-card.is-hidden {
    display: none !important;
}

.sg-task-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

/* Left Accent Stripe based on status */
.sg-task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
}
.sg-task-card[data-status="dinilai"]::before { background: #10b981; }
.sg-task-card[data-status="diserahkan"]::before { background: #3b82f6; }
.sg-task-card[data-status="ditugaskan"]::before { background: #94a3b8; }
.sg-task-card[data-status="terlambat"]::before { background: #ef4444; }

.sg-task-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 270px;
}

.sg-task-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.sg-task-type-icon.tugas { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb; }
.sg-task-type-icon.kuis { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #d97706; }
.sg-task-type-icon.materi { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #059669; }
.sg-task-type-icon.pertanyaan { background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: #7c3aed; }

.sg-task-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    cursor: pointer;
    transition: color 0.15s ease;
}
.sg-task-title:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.sg-task-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.sg-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
}
.sg-badge-status.dinilai { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.sg-badge-status.diserahkan { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.sg-badge-status.ditugaskan { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.sg-badge-status.terlambat { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.sg-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}
.sg-meta-chip.danger {
    color: #dc2626;
    font-weight: 600;
}

/* FEEDBACK SPEECH CARD */
.sg-feedback-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #4f46e5;
    border-radius: 0 10px 10px 0;
    padding: 9px 14px;
    margin-top: 10px;
    font-size: 0.82rem;
    color: #334155;
}

.sg-feedback-header {
    color: #4338ca;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.sg-feedback-content {
    color: #1e293b;
    font-style: italic;
}

/* TASK RIGHT: SCORE & ACTION */
.sg-task-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.sg-score-display {
    text-align: right;
    min-width: 100px;
}

.sg-score-large {
    font-size: 1.65rem;
    font-weight: 900;
    color: #059669;
    line-height: 1;
}

.sg-score-denom {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 2px;
}

.sg-score-pending-txt {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2563eb;
}

.sg-score-none-txt {
    font-size: 1.25rem;
    font-weight: 700;
    color: #94a3b8;
}

.sg-btn-open {
    padding: 9px 18px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.sg-btn-open:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}

@media (max-width: 768px) {
    .sg-task-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    .sg-task-left {
        min-width: unset;
        width: 100%;
    }
    .sg-task-right {
        width: 100%;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid #f1f5f9;
    }
    .sg-score-display {
        text-align: left;
    }
    .sg-tools-right {
        width: 100%;
        min-width: unset;
    }
    .sg-search-box {
        max-width: 100%;
    }
}


/* ========================================================= */
/* MODALS */
/* ========================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.68);
    z-index: 10000;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.modal-overlay.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.modal-open,
body:has(.modal-overlay.active) {
    overflow: hidden !important;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

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

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 24px;
    flex: 1 1 auto;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
    background: #f8fafc;
    flex-shrink: 0;
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 868px) {
    .stream-layout {
        grid-template-columns: 1fr;
    }
    .stream-sidebar {
        order: 2;
    }
    .stream-feed {
        order: 1;
    }
    .class-hero-banner {
        padding: 28px 20px;
    }
    .class-hero-banner h1 {
        font-size: 1.6rem;
    }
    .cw-body-grid {
        grid-template-columns: 1fr;
    }
    .cw-right-col {
        border-left: none;
        padding-left: 0;
        align-items: flex-start;
        margin-top: 16px;
        border-top: 1px solid #e0e2ec;
        padding-top: 16px;
    }
}

/* ========================================================= */
/* SMARTAPP LMS AUTHENTIC COMPONENTS                     */
/* ========================================================= */
.stream-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-pill-blue {
    background: #c2e7ff;
    color: #001d35;
    border: none;
    border-radius: 9999px;
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.btn-pill-blue:hover {
    background: #b3dcfa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.btn-pill-outlined {
    background: #ffffff;
    color: #1f1f1f;
    border: 1px solid #dadce0;
    border-radius: 9999px;
    padding: 9px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
}

.btn-pill-outlined:hover {
    background: #f8f9fa;
    border-color: #c4c7c5;
}

.stream-card-body-box {
    padding: 16px 16px 12px 16px;
}

.stream-author-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.stream-author-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.92rem;
    overflow: hidden;
    flex-shrink: 0;
}

.stream-author-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-more-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #5f6368;
    position: relative;
    transition: background 0.2s;
    user-select: none;
    margin-left: auto;
    flex-shrink: 0;
}

.card-more-btn:hover {
    background: #f1f3f4;
    color: #1f1f1f;
}

.card-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16), 0 1px 4px rgba(0, 0, 0, 0.08);
    min-width: 240px;
    width: max-content;
    max-width: 320px;
    z-index: 999;
    display: none;
    padding: 6px 0;
}

.card-dropdown-menu.show,
.dropdown-menu-list.show {
    display: block !important;
}

.card-dropdown-item,
.dropdown-menu-list .dropdown-item {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #3c4043;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: 'Google Sans', Roboto, -apple-system, sans-serif;
    white-space: nowrap;
    user-select: none;
}

.card-dropdown-item:hover,
.dropdown-menu-list .dropdown-item:hover {
    background: #f1f3f4;
    color: #1f1f1f;
}

.card-dropdown-item.text-danger,
.dropdown-menu-list .dropdown-item.text-danger {
    color: #d93025 !important;
}

.card-dropdown-item.text-danger:hover,
.dropdown-menu-list .dropdown-item.text-danger:hover {
    background: #fce8e6 !important;
    color: #c5221f !important;
}

/* Attachment Card (SMARTAPP LMS PDF/Drive Style) */
.attachment-preview-card {
    border: 1px solid #dadce0;
    border-radius: 8px;
    display: flex;
    align-items: stretch;
    max-width: 380px;
    background: #ffffff;
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
    margin-bottom: 16px;
}

.attachment-preview-card:hover {
    border-color: #1a73e8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.attachment-info-side {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.attachment-file-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f1f1f;
    text-decoration: underline;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-file-type {
    font-size: 0.75rem;
    color: #5f6368;
    font-weight: 500;
}

.attachment-thumb-side {
    width: 80px;
    background: #f8f9fa;
    border-left: 1px solid #e0e2ec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ea4335;
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* Card Bottom Comments */
.stream-card-footer-comments {
    border-top: 1px solid #dadce0;
    padding: 10px 16px;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
}

.comment-trigger-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0b57d0;
    font-size: 0.84rem;
    cursor: pointer;
    padding: 2px 0;
    font-weight: 500;
    user-select: none;
}

.comment-trigger-row:hover {
    color: #0842a0;
}

.comment-input-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #c2e7ff;
    color: #001d35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.comment-input-field {
    flex: 1;
    border: 1px solid #dadce0;
    border-radius: 9999px;
    padding: 8px 16px;
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
}

.comment-input-field:focus {
    border-color: #0b57d0;
    box-shadow: 0 0 0 2px rgba(11, 87, 208, 0.15);
}

.btn-send-comment {
    background: none;
    border: none;
    color: #0b57d0;
    cursor: pointer;
    font-size: 1rem;
    padding: 6px 10px;
    border-radius: 50%;
}

.btn-send-comment:hover {
    background: #f1f3f4;
}

/* Stream Assignment Card (SMARTAPP LMS Notice Card) */
.stream-assignment-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    position: relative;
    margin-bottom: 12px;
}

.stream-assignment-card:hover {
    background: #f8fafd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.assignment-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #cbf0cc;
    color: #137333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.assignment-info-col {
    flex: 1;
    line-height: 1.35;
}

.assignment-text-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1f1f1f;
}

.assignment-date {
    font-size: 0.78rem;
    color: #5f6368;
    margin-top: 3px;
}

/* Classwork Top Actions Bar */
.classwork-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.btn-create-classwork {
    background: #0b57d0;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 11px 26px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    transition: background 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.btn-create-classwork:hover {
    background: #0842a0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.btn-toggle-all {
    background: none;
    border: none;
    color: #0b57d0;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: inherit;
}

.btn-toggle-all:hover {
    background: #f1f3f4;
}

/* Topic Sections */
.topic-section {
    margin-bottom: 36px;
}

.topic-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.topic-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.topic-heading {
    font-size: 1.35rem;
    font-weight: 400;
    color: #1f1f1f;
    margin: 0;
}

.topic-collapse-chevron {
    color: #5f6368;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.topic-collapse-chevron.collapsed {
    transform: rotate(180deg);
}

.topic-divider-line {
    height: 1px;
    background: #dadce0;
    margin-top: 8px;
    margin-bottom: 8px;
}

.topic-items-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Classwork Item Row */
.cw-item-row {
    border-radius: 8px;
    transition: background 0.15s, border-color 0.15s;
    overflow: visible;
    position: relative;
}

.cw-item-row.expanded {
    border: 1px solid #dadce0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin: 6px 0;
}

.cw-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.cw-item-row:not(.expanded) .cw-summary-bar:hover {
    background: #f1f3f4;
}

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

.cw-icon-green {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #cbf0cc;
    color: #137333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.cw-title-text {
    font-size: 0.94rem;
    font-weight: 500;
    color: #1f1f1f;
}

.cw-summary-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cw-date-label {
    font-size: 0.82rem;
    color: #5f6368;
}

/* Expanded Details Box (Matching TES BAHASA C) */
.cw-expanded-body {
    display: none;
    padding: 16px 20px 20px 20px;
    border-top: 1px solid #e0e2ec;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
}

.cw-item-row.expanded .cw-expanded-body {
    display: block;
}

.cw-body-grid {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 24px;
}

.cw-left-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cw-deadline-text {
    font-size: 0.82rem;
    color: #5f6368;
    margin-bottom: 12px;
}

.cw-instruction-text {
    font-size: 0.90rem;
    color: #1e293b;
    line-height: 1.6;
    margin: 8px 0 14px 0;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Feed Assignment Card Attachment Chips (PDF, PPT, Excel, Word, Images, etc.) */
.cw-card-attachments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px 0;
}

.cw-attachment-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    max-width: 100%;
}

.cw-attachment-chip:hover {
    background: #f0fdf4;
    border-color: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.12);
}

.cw-attachment-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cw-attachment-info {
    min-width: 0;
    flex: 1;
}

.cw-attachment-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.cw-attachment-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 1px;
}

.cw-preview-link {
    color: #0b57d0;
    font-weight: 600;
}

/* Student Footer Row: Sejajar Ditugaskan & Tombol Buka Tugas */
.cw-student-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.cw-student-status-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cw-student-status-label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

.btn-open-task-student {
    margin-top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

.link-view-instructions {
    color: #0b57d0;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.link-view-instructions:hover {
    text-decoration: underline;
}

.cw-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    border-left: 1px solid #e0e2ec;
    padding-left: 24px;
}

.cw-stats-box {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.cw-stat-clickable {
    cursor: pointer;
    border-radius: 8px;
    padding: 6px 12px;
    transition: background 0.15s, transform 0.15s;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cw-stat-clickable:hover {
    background: #e8f0fe;
    transform: translateY(-1px);
}

.cw-stat-num {
    font-size: 1.8rem;
    font-weight: 500;
    color: #1f1f1f;
    line-height: 1;
}

.cw-stat-num.text-primary {
    color: #0b57d0;
}

.cw-stat-lbl {
    font-size: 0.76rem;
    color: #5f6368;
    margin-top: 4px;
}

.cw-stat-lbl.text-primary {
    color: #0b57d0;
    font-weight: 500;
}

.cw-stat-vsep {
    width: 1px;
    height: 36px;
    background: #dadce0;
}

.btn-review-task {
    background: #c2e7ff;
    color: #001d35;
    border: none;
    border-radius: 9999px;
    padding: 9px 24px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 16px;
    font-family: inherit;
}

.btn-review-task:hover {
    background: #b3dcfa;
}

/* ========================================================= */
/* SMARTAPP LMS BREADCRUMBS IN NAVBAR (IMAGE 1, 2, 3)    */
/* ========================================================= */
.nav-breadcrumb-gc {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gc-logo-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f1f1f;
}

.gc-logo-badge-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.breadcrumb-sep {
    font-size: 0.75rem;
    color: #5f6368;
}

.gc-logo-badge {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.gc-logo-badge:hover {
    opacity: 0.8;
}

.breadcrumb-text-col {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.breadcrumb-text-col:hover .breadcrumb-course-name {
    color: #0b57d0;
    text-decoration: underline;
}

.breadcrumb-course-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f1f1f;
    line-height: 1.2;
    transition: color 0.15s ease;
}

.breadcrumb-academic-year {
    font-size: 0.7rem;
    font-weight: 700;
    color: #5f6368;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ========================================================= */
/* SUB-NAV TABS TUGAS KELAS (PETUNJUK | TUGAS SISWA)         */
/* ========================================================= */
.cw-detail-tabs-bar {
    background: #ffffff;
    border-bottom: 1px solid #dadce0;
    display: flex;
    padding: 0 32px;
    gap: 8px;
    position: sticky;
    top: 56px;
    z-index: 20;
}

.cw-detail-tab-btn {
    padding: 16px 20px 14px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.92rem;
    font-weight: 500;
    color: #5f6368;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s, border-color 0.15s;
}

.cw-detail-tab-btn:hover {
    color: #1f1f1f;
}

.cw-detail-tab-btn.active {
    color: #0b57d0;
    border-bottom-color: #0b57d0;
    font-weight: 600;
}

.tab-blue-dot {
    width: 6px;
    height: 6px;
    background: #0b57d0;
    border-radius: 50%;
    display: inline-block;
}

.cw-detail-pane {
    background: #ffffff;
    min-height: calc(100vh - 120px);
}

/* ========================================================= */
/* TAB 1: PETUNJUK TUGAS VIEW (MODERN SMARTAPP LMS)      */
/* ========================================================= */
.petunjuk-view-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.petunjuk-card-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    margin-bottom: 24px;
}

.petunjuk-top-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.petunjuk-clipboard-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e6f4ea;
    color: #137333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(19, 115, 51, 0.12);
}

.petunjuk-header-text {
    flex: 1;
    min-width: 0;
}

.petunjuk-header-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.petunjuk-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
}

.petunjuk-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    margin: 8px 0 14px;
    flex-wrap: wrap;
}

.petunjuk-author {
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.petunjuk-meta-sep {
    color: #cbd5e1;
}

.petunjuk-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
}

.petunjuk-pills-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.petunjuk-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}

.pill-points {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.pill-due {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.pill-due-closed {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.pill-nodue {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.pill-lock-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 2px 8px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.petunjuk-instructions-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 20px;
}

.petunjuk-box-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.petunjuk-instructions-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #1e293b;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Comments section */
.petunjuk-comments-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.petunjuk-comments-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
}

.petunjuk-comments-title i {
    font-size: 1.1rem;
    color: #0b57d0;
}

.petunjuk-comment-trigger-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.petunjuk-comment-trigger-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0b57d0;
}

.petunjuk-inline-comment-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #0b57d0;
    border-radius: 9999px;
    padding: 6px 10px 6px 18px;
    box-shadow: 0 2px 10px rgba(11, 87, 208, 0.12);
}

.petunjuk-inline-comment-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: #0f172a;
    background: transparent;
    font-family: inherit;
}

/* ========================================================= */
/* SMARTAPP LMS 2-COLUMN ASSIGNMENT VIEW (IMAGE 1 & 2)   */
/* ========================================================= */
.gc-assignment-view-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    grid-template-areas:
        "main side"
        "comments side";
    gap: 28px 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 60px;
    align-items: start;
}

.petunjuk-card-container {
    grid-area: main;
    min-width: 0;
    margin-bottom: 0;
}

.gc-assignment-side-col {
    grid-area: side;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    position: sticky;
    top: 90px;
}

.gc-assignment-comments-col {
    grid-area: comments;
    min-width: 0;
}

@media (max-width: 960px) {
    .gc-assignment-view-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "side"
            "comments";
        gap: 20px;
        padding: 16px 14px 40px;
    }
    .gc-assignment-side-col {
        position: static;
    }
}

.gc-assignment-main-col {
    min-width: 0;
}

.gc-your-work-card,
.gc-private-comments-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 2px 8px rgba(60,64,67,0.08);
}

/* TEACHER OVERVIEW SIDE CARD */
.gc-teacher-overview-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s ease;
}

.overview-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.overview-card-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.overview-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.overview-total-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 3px 9px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
}

.overview-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 9999px;
}

.overview-status-pill.status-active {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.overview-status-pill.status-closed {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-dot.pulse {
    animation: livePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 3-METRIC GRID */
.overview-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.overview-metric-tile {
    border-radius: 12px;
    padding: 14px 6px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    user-select: none;
}

.overview-metric-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.overview-metric-tile.tile-submitted {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.overview-metric-tile.tile-assigned {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.overview-metric-tile.tile-graded {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fef08a;
    color: #b45309;
}

.metric-number {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-transform: capitalize;
}

/* DETAILS BOX */
.overview-details-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.overview-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.detail-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.detail-text-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.detail-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 1px;
}

.detail-subtext {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-subtext.text-open {
    color: #15803d;
}

.detail-subtext.text-closed {
    color: #b91c1c;
}

/* ACTION BUTTON */
.btn-review-students {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    background: #0b57d0;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(11, 87, 208, 0.28);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-review-students:hover {
    background: #0842a0;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11, 87, 208, 0.38);
}

.btn-review-students:active {
    transform: translateY(0);
}

.btn-review-students .btn-arrow {
    font-size: 0.82rem;
    transition: transform 0.15s ease;
}

.btn-review-students:hover .btn-arrow {
    transform: translateX(4px);
}

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

.gc-work-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1f1f1f;
}

.gc-work-status-text {
    font-size: 0.88rem;
    font-weight: 500;
}

.gc-work-status-assigned { color: #5f6368; }
.gc-work-status-turned-in { color: #137333; font-weight: 600; }
.gc-work-status-late { color: #b06000; font-weight: 600; }
.gc-work-status-graded { color: #137333; font-weight: 600; }
.gc-work-status-closed { color: #c5221f; font-weight: 600; }

.gc-work-files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.gc-work-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 8px 12px;
    background: #ffffff;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.gc-work-file-item:hover {
    background: #f8fafd;
    border-color: #0b57d0;
}

.gc-work-file-left {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    padding-right: 10px;
}

.gc-work-file-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: #1f1f1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.15s, color 0.15s;
}

.gc-work-file-left:hover .gc-work-file-title {
    color: #0b57d0;
    text-decoration-color: #0b57d0;
}

.gc-work-file-subtitle {
    font-size: 0.75rem;
    color: #5f6368;
    margin-top: 2px;
}

.gc-work-file-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.gc-work-file-thumb {
    width: 52px;
    height: 38px;
    border-radius: 4px;
    overflow: hidden;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.gc-work-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gc-work-file-remove {
    background: none;
    border: none;
    color: #5f6368;
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.gc-work-file-remove:hover {
    background: #f1f3f4;
    color: #1f1f1f;
}

.gc-btn-add-create {
    width: 100%;
    border: 1px solid #dadce0;
    border-radius: 24px;
    padding: 9px 20px;
    background: #ffffff;
    color: #0b57d0;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
    margin-bottom: 10px;
}

.gc-btn-add-create:hover {
    background: #f4f8fe;
    border-color: #c2e7ff;
}

.gc-add-create-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 50;
    overflow: hidden;
}

.gc-add-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: #1f1f1f;
    cursor: pointer;
    transition: background 0.15s;
}

.gc-add-menu-item:hover {
    background: #f1f3f4;
}

.gc-add-menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.gc-add-menu-info {
    flex: 1;
    min-width: 0;
}

.gc-add-menu-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #1f1f1f;
    line-height: 1.3;
}

.gc-add-menu-desc {
    font-size: 0.74rem;
    color: #5f6368;
    margin-top: 2px;
}

@keyframes highlightPulseAnim {
    0% {
        box-shadow: 0 0 0 0 rgba(11, 87, 208, 0.6);
        border-color: #0b57d0;
    }
    50% {
        box-shadow: 0 0 0 10px rgba(11, 87, 208, 0);
        border-color: #0b57d0;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(11, 87, 208, 0);
    }
}

.highlight-pulse {
    animation: highlightPulseAnim 1.6s ease-in-out 2 !important;
}

.gc-btn-turn-in {
    width: 100%;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s, box-shadow 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.gc-btn-primary {
    background: #0b57d0;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(11,87,208,0.25);
}

.gc-btn-primary:hover {
    background: #0842a0;
}

.gc-btn-unsubmit {
    background: #ffffff;
    color: #0b57d0;
    border: 1px solid #dadce0;
}

.gc-btn-unsubmit:hover {
    background: #f4f8fe;
    border-color: #c2e7ff;
}

.gc-btn-disabled {
    background: #f1f3f4;
    color: #80868b;
    cursor: not-allowed;
    border: 1px solid #dadce0;
}

.gc-work-closed-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.82rem;
    color: #991b1b;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.gc-work-grade-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.gc-priv-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f1f1f;
    margin-bottom: 14px;
}

.gc-priv-comments-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
    max-height: 280px;
    overflow-y: auto;
}

.gc-priv-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.gc-priv-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    flex-shrink: 0;
}

.gc-priv-comment-content {
    flex: 1;
    min-width: 0;
}

.gc-priv-comment-meta {
    font-size: 0.8rem;
    color: #1f1f1f;
}

.gc-priv-comment-text {
    font-size: 0.84rem;
    color: #3c4043;
    margin-top: 2px;
    word-break: break-word;
}

.gc-priv-comment-trigger-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    color: #0b57d0;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 0;
    text-align: left;
    font-family: inherit;
}

.gc-priv-comment-trigger-btn:hover {
    text-decoration: underline;
}

.gc-priv-comment-textarea {
    width: 100%;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.gc-priv-comment-textarea:focus {
    border-color: #0b57d0;
    box-shadow: 0 0 0 1px #0b57d0;
}

.assigned-student-clickable {
    cursor: pointer !important;
    transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.assigned-student-clickable:hover {
    border-color: #0b57d0 !important;
    box-shadow: 0 2px 8px rgba(11,87,208,0.15) !important;
    background: #f8fafc !important;
}

.badge-draft-chip {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #fde68a;
}

.roster-draft-badge {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.roster-assigned-clickable {
    cursor: pointer !important;
}

.roster-assigned-clickable:hover {
    background: #f0f4f9 !important;
}

.assigned-card-thumb-preview {
    width: 44px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    margin-left: 8px;
    flex-shrink: 0;
}

.assigned-thumb-mini {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.assigned-icon-mini {
    font-size: 1.1rem;
}

.petunjuk-due-tag {
    font-size: 0.85rem;
    color: #5f6368;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.petunjuk-due-closed {
    color: #b91c1c;
    font-weight: 600;
}

.petunjuk-lock-badge {
    font-size: 0.72rem;
    background: #fee2e2;
    color: #991b1b;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
/* ========================================================= */
/* MODERN TAB 2: TUGAS SISWA (ACTION RIBBON & WORK AREA)     */
/* ========================================================= */

/* Top Action Ribbon - Floating Glassmorphic Toolbar */
.student-work-action-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 103px;
    z-index: 15;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ribbon-left-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ribbon-right-sync {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modern Split Return Button */
.split-return-wrapper {
    position: relative;
    display: inline-flex;
}

.split-return-group {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.btn-ribbon-return-main {
    padding: 8px 16px;
    font-size: 0.84rem;
    font-weight: 600;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-ribbon-return-caret {
    padding: 8px 11px;
    font-size: 0.76rem;
    border: none;
    border-left: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-ribbon-return-main.active,
.btn-ribbon-return-caret.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-left-color: rgba(255, 255, 255, 0.25);
}

.btn-ribbon-return-main.active:hover,
.btn-ribbon-return-caret.active:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-ribbon-return-caret:hover:not(.active),
.btn-ribbon-return-main:hover:not(.active) {
    background: #e2e8f0;
    color: #334155;
}

/* Modern Return Dropdown Menu */
.return-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    z-index: 200;
    padding: 6px;
    animation: dropdownFadeIn 0.15s ease-out;
}

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

.return-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #334155;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.return-menu-item i {
    width: 18px;
    color: #64748b;
    font-size: 0.88rem;
    text-align: center;
}

.return-menu-item:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.return-menu-item:hover i {
    color: #2563eb;
}

.return-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

/* Modern Ribbon Buttons */
.btn-ribbon-icon-modern {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-ribbon-icon-modern:hover {
    background: #f8fafc;
    color: #2563eb;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.points-dropdown-btn-modern {
    padding: 8px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.points-dropdown-btn-modern:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Live Auto-Sync Indicator Badge */
.live-auto-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 600;
    user-select: none;
}

.live-pulse-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Master-Detail Split Layout */
.student-work-master-split {
    display: flex;
    min-height: calc(100vh - 180px);
    height: auto;
    overflow: visible;
    align-items: stretch;
    background: #f8fafc;
}

/* ========================================================= */
/* LEFT COLUMN: ROSTER SIDEBAR                               */
/* ========================================================= */
.roster-sidebar {
    width: 340px;
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
    background: #ffffff;
    overflow: visible;
    height: auto;
    display: flex;
    flex-direction: column;
}

.roster-header-bar {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
    position: sticky;
    top: 161px;
    background: #ffffff;
    z-index: 12;
}

.roster-select-all {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #1e293b;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.82rem;
}

.roster-select-all input[type="checkbox"] {
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.roster-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.roster-sort-label:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Quick Search in Roster */
.roster-search-input-wrap {
    padding: 8px 16px 10px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    background: #ffffff;
}

.roster-search-input-wrap i {
    position: absolute;
    left: 28px;
    top: 19px;
    color: #94a3b8;
    font-size: 0.8rem;
    pointer-events: none;
}

.roster-search-input-wrap input {
    width: 100%;
    padding: 7px 12px 7px 32px;
    font-size: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.roster-search-input-wrap input:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.roster-scroll-container {
    flex: 1;
}

/* Group Headers with Modern Badges */
.roster-group-title {
    padding: 10px 18px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.roster-group-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.roster-group-pill.pill-emerald {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.roster-group-pill.pill-slate {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.roster-group-count {
    font-size: 0.74rem;
    font-weight: 700;
    color: #94a3b8;
    background: #f8fafc;
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

/* Roster Student Row */
.roster-student-row {
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f8fafc;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    user-select: none;
}

.roster-student-row:hover {
    background: #f8fafc;
    border-left-color: #2563eb;
}

.roster-student-row.is-graded {
    background: #fafcfe;
}

.roster-student-row.roster-student-assigned {
    cursor: default;
}

.roster-student-row.roster-student-assigned.roster-assigned-clickable {
    cursor: pointer;
}

.roster-student-row.roster-student-assigned.roster-assigned-clickable:hover {
    border-left-color: #f59e0b;
}

.roster-student-row input[type="checkbox"] {
    accent-color: #2563eb;
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.roster-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.roster-circle-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.roster-avatar-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.roster-avatar-dot.dot-green { background: #10b981; }
.roster-avatar-dot.dot-blue  { background: #2563eb; }
.roster-avatar-dot.dot-gray  { background: #94a3b8; }

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

.roster-student-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roster-snippet-text {
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
    margin-top: 1px;
}

.roster-draft-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    background: #fef3c7;
    color: #b45309;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 600;
}

/* Roster Inline Grade Input Pill - Anti-Clipping */
.roster-grade-box {
    flex-shrink: 0;
    margin-left: 6px;
}

.roster-grade-pill {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px 8px;
    min-width: 86px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.roster-grade-pill.has-grade {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.roster-inline-grade-input::-webkit-outer-spin-button,
.roster-inline-grade-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.roster-inline-grade-input {
    -moz-appearance: textfield;
    appearance: textfield;
    width: 40px;
    min-width: 36px;
    border: none;
    background: transparent;
    text-align: right;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
    outline: none;
    padding: 0 2px 0 0;
    font-family: inherit;
    box-sizing: border-box;
}

.roster-grade-pill.has-grade .roster-inline-grade-input {
    color: #047857;
}

.roster-inline-grade-max {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.78rem;
    margin-left: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.roster-grade-pill.has-grade .roster-inline-grade-max {
    color: #059669;
}

.roster-grade-pill:focus-within {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* ========================================================= */
/* RIGHT COLUMN: SUBMISSIONS GRID AREA                       */
/* ========================================================= */
.submissions-grid-area {
    flex: 1;
    background: #f8fafc;
    overflow: visible;
    height: auto;
    padding: 24px 32px 48px;
}

/* Hero Header Banner */
.sub-hero-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.sub-hero-main {
    flex: 1;
    min-width: 280px;
}

.sub-hero-title-row {
    margin-bottom: 14px;
}

.sub-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.sub-hero-assignment-title {
    font-size: 1.32rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
}

/* 3 Modern Metric Tiles (Matching Tab 1) */
.sub-hero-metrics-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sub-metric-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sub-metric-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.08);
}

.sub-metric-tile .metric-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sub-metric-tile.metric-submitted .metric-icon-wrap {
    background: #eff6ff;
    color: #2563eb;
}

.sub-metric-tile.metric-assigned .metric-icon-wrap {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.sub-metric-tile.metric-graded .metric-icon-wrap {
    background: #ecfdf5;
    color: #059669;
}

.sub-metric-tile .metric-info {
    display: flex;
    flex-direction: column;
}

.sub-metric-tile .metric-num {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.sub-metric-tile .metric-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
}

/* Active Tile Glow States */
.sub-metric-tile.metric-submitted.active {
    border-color: #2563eb;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(37, 99, 235, 0.1);
}

.sub-metric-tile.metric-submitted.active .metric-num,
.sub-metric-tile.metric-submitted.active .metric-label {
    color: #1d4ed8;
}

.sub-metric-tile.metric-assigned.active {
    border-color: #0f172a;
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.sub-metric-tile.metric-assigned.active .metric-num,
.sub-metric-tile.metric-assigned.active .metric-label {
    color: #0f172a;
}

.sub-metric-tile.metric-graded.active {
    border-color: #059669;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15), 0 4px 12px rgba(5, 150, 105, 0.1);
}

.sub-metric-tile.metric-graded.active .metric-num,
.sub-metric-tile.metric-graded.active .metric-label {
    color: #047857;
}

/* Toggle Switch Action */
.sub-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
}

.toggle-submission-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    user-select: none;
}

.switch-toggle-modern {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

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

.switch-slider-modern {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .25s ease;
    border-radius: 22px;
}

.switch-slider-modern:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .25s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch-toggle-modern input:checked + .switch-slider-modern {
    background-color: #2563eb;
}

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

.toggle-label-wrap {
    display: flex;
    flex-direction: column;
}

.toggle-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
}

.toggle-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 1px;
}

.toggle-status-badge.badge-open {
    color: #059669;
}

.toggle-status-badge.badge-closed {
    color: #94a3b8;
}

.pulse-dot-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.pulse-dot-gray {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    display: inline-block;
}

/* Toolbar: Filter & Live Search Row */
.sub-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.sub-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 280px;
}

.sub-filter-dropdown-container {
    position: relative;
}

.sub-filter-dropdown-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.sub-filter-dropdown-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.sub-filter-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 6px;
    animation: dropdownFadeIn 0.15s ease-out;
}

.sub-filter-menu-item {
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
}

.sub-filter-menu-item:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.sub-filter-menu-item.selected {
    color: #2563eb;
    font-weight: 700;
    background: #eff6ff;
}

/* Quick Search for Grid */
.sub-quick-search-box {
    position: relative;
    max-width: 280px;
    flex: 1;
}

.sub-quick-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.82rem;
    pointer-events: none;
}

.sub-quick-search-box input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    font-size: 0.82rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    font-family: inherit;
}

.sub-quick-search-box input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn-toolbar-folder {
    padding: 8px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.btn-toolbar-folder:hover {
    background: #f8fafc;
    color: #2563eb;
    border-color: #cbd5e1;
}

/* ========================================================= */
/* SUBMISSIONS CARDS GRID (STATE-OF-THE-ART CARDS)          */
/* ========================================================= */
.sub-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 20px;
}

.sub-card-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    content-visibility: auto;
    contain-intrinsic-size: 215px 230px;
}

.sub-card-item:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.14), 0 6px 12px -4px rgba(0, 0, 0, 0.04);
}

.sub-card-item.is-graded {
    border-color: #bfdbfe;
    background: #fcfeff;
}

.sub-card-item.sub-card-assigned {
    cursor: default;
    background: #fafbfc;
}

.sub-card-item.sub-card-assigned.is-clickable {
    cursor: pointer;
}

.sub-card-item.sub-card-assigned.is-clickable:hover {
    border-color: #fcd34d;
    box-shadow: 0 12px 24px -4px rgba(245, 158, 11, 0.14);
}

/* Card Header */
.sub-card-header {
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #f8fafc;
    background: #ffffff;
}

.sub-card-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.74rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.sub-card-name-col {
    flex: 1;
    min-width: 0;
}

.sub-card-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Status Badges */
.badge-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
}

.badge-card-pill.pill-submitted {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-card-pill.pill-graded {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-card-pill.pill-draft {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-card-pill.pill-assigned {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Thumbnail Box & Overlays */
.sub-card-thumbnail-box {
    height: 125px;
    background: #0f172a;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sub-card-item:hover .sub-card-thumb-img {
    transform: scale(1.05);
}

.sub-card-multi-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 2;
}

/* Thumbnail Placeholder Boxes */
.sub-thumb-doc-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    padding: 12px;
    text-align: center;
}

.sub-doc-title {
    font-size: 0.74rem;
    font-weight: 600;
    color: #334155;
    margin-top: 6px;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sub-thumb-text-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f8fafc;
    padding: 12px 16px;
    text-align: center;
}

.sub-text-snippet {
    font-size: 0.73rem;
    color: #475569;
    line-height: 1.35;
    max-height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sub-thumb-empty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f8fafc;
}

.sub-empty-lbl {
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
}

/* Card Hover Overlay */
.sub-card-overlay-action {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 3;
}

.sub-card-item:hover .sub-card-overlay-action {
    opacity: 1;
}

.btn-overlay-inspect {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s ease;
}

.sub-card-item:hover .btn-overlay-inspect {
    transform: scale(1.04);
}

/* Card Footer */
.sub-card-footer {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.sub-card-caption {
    font-size: 0.74rem;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sub-card-caption i {
    font-size: 0.8rem;
    color: #64748b;
    flex-shrink: 0;
}

.sub-card-status-green {
    font-size: 0.72rem;
    font-weight: 700;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sub-card-status-blue {
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sub-card-status-amber {
    font-size: 0.72rem;
    font-weight: 700;
    color: #d97706;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sub-card-status-gray {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Empty States for Submissions Grid */
.sub-grid-empty-state {
    grid-column: 1 / -1;
    padding: 56px 24px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}

.empty-state-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
}

.empty-state-icon.is-amber {
    background: #fef3c7;
    color: #d97706;
}

.empty-state-icon.is-blue {
    background: #eff6ff;
    color: #2563eb;
}

.empty-state-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.empty-state-desc {
    font-size: 0.84rem;
    color: #64748b;
    max-width: 400px;
    margin: 0 auto;
}


/* ========================================================= */
/* FULLSCREEN SUBMISSION PREVIEW & GRADING (IMAGE 4)         */
/* ========================================================= */
.submission-grading-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.grading-mobile-tabs-bar {
    display: none;
}

.btn-mobile-floating-grade {
    display: none;
}

.grading-top-bar {
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-shrink: 0;
}

.grading-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.grading-assignment-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1f1f1f;
}

.grading-bar-center {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.student-switcher-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 6px;
    border: 1px solid #dadce0;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.15s;
}

.student-switcher-box:hover {
    background: #f8fafd;
}

.student-avatar-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #c5221f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
}

.student-name-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1f1f1f;
}

.status-pill-badge {
    font-size: 0.75rem;
    color: #137333;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.student-nav-arrows {
    display: flex;
    align-items: center;
    gap: 4px;
}

.grading-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary-blue {
    background: #0b57d0;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
}

.btn-primary-blue:hover {
    background: #0842a0;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4f46e5;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Split View in Grading (Image 4) */
.grading-main-split {
    flex: 1;
    display: flex;
    height: calc(100vh - 56px);
    overflow: hidden;
}

.grading-canvas-area {
    flex: 1;
    background: #202124;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.canvas-top-tools {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(32, 33, 36, 0.8);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #e8eaed;
}

.canvas-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    color: #e8eaed;
}

.badge-external {
    font-size: 0.7rem;
    background: #f29900;
    color: #202124;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.canvas-action-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-tool-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: none;
    color: #e8eaed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-tool-icon:hover {
    background: rgba(255,255,255,0.15);
}

.canvas-viewport {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    background: #18191a;
}

.canvas-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #2b2b2b;
    display: block;
    min-height: calc(100vh - 104px);
}

.canvas-preview-img {
    max-height: 86vh;
    max-width: 90%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    transition: transform 0.2s ease;
}

.canvas-preview-media {
    max-width: 90%;
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.canvas-doc-sheet {
    max-width: 840px;
    width: 92%;
    min-height: 520px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    padding: 36px 44px;
    color: #1f1f1f;
    margin: 32px auto;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.canvas-doc-sheet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    color: #0b57d0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.canvas-doc-sheet-body {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.75;
}

.canvas-bottom-zoom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(32, 33, 36, 0.9);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    gap: 4px;
    z-index: 10;
}

.zoom-level-badge {
    color: #e8eaed;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 6px;
    min-width: 44px;
    text-align: center;
    user-select: none;
}

.canvas-bottom-zoom button {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    color: #e8eaed;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.canvas-bottom-zoom button:hover {
    background: rgba(255,255,255,0.15);
}

.canvas-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #e8eaed;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 25;
    background: rgba(24, 25, 26, 0.88);
    backdrop-filter: blur(8px);
    padding: 18px 28px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Right Sidebar: Grading & Private Comments (Image 4) */
.grading-sidebar-panel {
    width: 340px;
    flex-shrink: 0;
    background: #ffffff;
    border-left: 1px solid #dadce0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
}

.grading-panel-section {
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f4;
    margin-bottom: 20px;
}

.section-heading {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f1f1f;
    margin-bottom: 6px;
}

.sub-meta-date {
    font-size: 0.76rem;
    color: #5f6368;
    margin-bottom: 4px;
}

.link-history {
    font-size: 0.76rem;
    color: #0b57d0;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}

.link-history:hover {
    text-decoration: underline;
}

.file-chips-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.file-chip-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.file-chip-card:hover {
    background: #f8fafd;
    border-color: #0b57d0;
}

.file-chip-card.active {
    background: #e8f0fe;
    border-color: #0b57d0;
    box-shadow: 0 1px 4px rgba(11, 87, 208, 0.25);
}

.file-chip-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.file-chip-info {
    flex: 1;
    min-width: 0;
}

.file-chip-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: #1f1f1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-chip-meta {
    font-size: 0.72rem;
    color: #5f6368;
    margin-top: 2px;
}

.btn-chip-ext {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.btn-chip-ext:hover {
    color: #0b57d0;
    background: rgba(11, 87, 208, 0.08);
}

.grade-save-status {
    font-size: 0.75rem;
    color: #137333;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

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

.grade-input-box-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.grade-input-field {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    text-align: center;
}

.grade-input-field:focus {
    border-color: #0b57d0;
    outline: none;
}

.grade-max-label {
    font-size: 0.9rem;
    color: #5f6368;
}

.private-comments-history {
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.private-comment-bubble {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.8rem;
}

.comment-private-input-box {
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 10px 12px;
    background: #ffffff;
    transition: border-color 0.15s;
}

.comment-private-input-box:focus-within {
    border-color: #0b57d0;
}

.comment-private-textarea {
    width: 100%;
    border: none;
    outline: none;
    background: none;
    resize: none;
    font-size: 0.85rem;
    font-family: inherit;
}

.btn-post-comment-disabled {
    background: #e8eaed;
    color: #80868b;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: not-allowed;
    font-family: inherit;
}

.btn-post-comment-active {
    background: #0b57d0;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.student-dropdown-list {
    position: absolute;
    top: 42px;
    left: 0;
    width: 240px;
    max-height: 320px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 100;
}

.student-dropdown-item {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s;
}

.student-dropdown-item:hover {
    background: #f8fafd;
}

/* ========================================================================== */
/* HAMBURGER & SIDE DRAWER NAVIGATION (Image 1 SMARTAPP LMS)              */
/* ========================================================================== */
.hamburger-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #5f6368;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.hamburger-nav-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #202124;
}

.side-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.side-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Bottom Navigation (Hidden on desktop) */
.classroom-mobile-bottom-nav {
    display: none;
}

.classroom-side-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    width: min(300px, 84vw);
    background: #ffffff !important;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.2);
    z-index: 1050;
    transform: translate3d(-100%, 0, 0);
    -webkit-transform: translate3d(-100%, 0, 0);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.classroom-side-drawer.open {
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.drawer-header {
    height: 64px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f3f4;
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #3c4043;
}

.drawer-menu {
    flex: 1;
    padding: 12px 0 calc(48px + env(safe-area-inset-bottom, 24px)) 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.drawer-menu::-webkit-scrollbar {
    width: 5px;
}

.drawer-menu::-webkit-scrollbar-track {
    background: transparent;
}

.drawer-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

.drawer-menu::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.drawer-menu::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 22px;
    color: #3c4043;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0 24px 24px 0;
    margin: 4px 12px 4px 0;
    transition: all 0.15s ease;
}

.drawer-item i {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    color: #5f6368;
}

.drawer-item:hover {
    background: #f1f3f4;
    color: #202124;
}

.drawer-item.active {
    background: #e8f0fe !important;
    color: #1967d2 !important;
    font-weight: 600 !important;
}

.drawer-item.active i {
    color: #1967d2 !important;
}

.drawer-divider {
    height: 1px;
    background: #e8eaed;
    margin: 8px 0;
}

.drawer-section-title {
    padding: 10px 24px 4px 24px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #5f6368;
    text-transform: uppercase;
}

/* ========================================================================== */
/* TOP NAVBAR PLUS (+) ACTION BUTTON & DROPDOWN (Image 2)                     */
/* ========================================================================== */
.nav-plus-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.nav-circle-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f3f4;
    border: none;
    color: #3c4043;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-circle-action-btn:hover {
    background: #e8eaed;
    color: #202124;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.2);
}

.plus-dropdown-menu {
    position: absolute;
    top: 48px;
    right: 0;
    min-width: 190px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 6px 0;
    z-index: 150;
    animation: fadeInScale 0.15s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.plus-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: transparent;
    border: none;
    color: #3c4043;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.plus-dropdown-item i {
    font-size: 0.95rem;
    color: #5f6368;
    width: 18px;
    text-align: center;
}

.plus-dropdown-item:hover {
    background: #f8f9fa;
    color: #202124;
}

.plus-dropdown-item:hover i {
    color: #1a73e8;
}

/* ========================================================================== */
/* MODAL: GABUNG KE KELAS (Image 2 SMARTAPP LMS Style)                    */
/* ========================================================================== */
.modal-join-class-card {
    max-width: 540px !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.modal-join-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px !important;
    border-bottom: 1px solid #dadce0;
}

.btn-primary-blue-pill {
    background: #0b57d0;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 8px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary-blue-pill:hover:not(:disabled) {
    background: #0842a0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.btn-primary-blue-pill:disabled {
    background: #e0e2e5;
    color: #80868b;
    cursor: not-allowed;
}

.join-account-card {
    background: #f8fafd;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.join-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.join-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1a73e8;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.join-user-meta {
    flex: 1;
    min-width: 0;
}

.join-user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.join-user-sub {
    font-size: 0.8rem;
    color: #5f6368;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.join-switch-account-btn {
    padding: 6px 14px;
    border: 1px solid #dadce0;
    border-radius: 9999px;
    background: #ffffff;
    color: #0b57d0;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.join-switch-account-btn:hover {
    background: #f1f3f4;
    border-color: #0b57d0;
}

.join-code-card {
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.join-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 4px;
}

.join-card-desc {
    font-size: 0.85rem;
    color: #5f6368;
    margin-bottom: 14px;
    line-height: 1.45;
}

.join-code-input {
    width: 100%;
    max-width: 260px;
    padding: 12px 14px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 1.05rem;
    font-family: inherit;
    font-weight: 500;
    color: #202124;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.join-code-input:focus {
    outline: none;
    border-color: #0b57d0;
    box-shadow: 0 0 0 2px rgba(11, 87, 208, 0.2);
}

.join-guide-box {
    padding: 0 4px;
}

.join-guide-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #3c4043;
    margin-bottom: 6px;
}

.join-guide-list {
    margin: 0;
    padding-left: 20px;
    font-size: 0.82rem;
    color: #5f6368;
    line-height: 1.6;
}

.join-guide-help {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #80868b;
    line-height: 1.4;
}

/* ========================================================================== */
/* EMPTY STATE TAMPILAN KETIKA TIDAK PUNYA KELAS (Image 3 SMARTAPP LMS)   */
/* ========================================================================== */
.courses-empty-container {
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 440px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #dadce0;
    margin: 20px 0;
}

.empty-state-svg-wrap {
    width: 260px;
    max-width: 100%;
    margin-bottom: 24px;
}

.empty-state-svg-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}

.empty-state-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 8px;
}

.empty-state-sub {
    font-size: 0.92rem;
    color: #5f6368;
    max-width: 460px;
    margin-bottom: 28px;
    line-height: 1.5;
}

.empty-state-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-outline-pill {
    background: transparent;
    color: #0b57d0;
    border: 1px solid #dadce0;
    border-radius: 9999px;
    padding: 9px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-outline-pill:hover {
    background: #f8fafd;
    border-color: #0b57d0;
}

/* ========================================================================== */
/* MULTI-CLASS ANNOUNCEMENT SELECTOR & CHECKLIST POPOVER (Image 4)             */
/* ========================================================================== */
.announcement-target-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f4;
}

.announcement-classes-picker-wrap {
    position: relative;
}

.btn-picker-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid #dadce0;
    border-radius: 9999px;
    background: #ffffff;
    color: #3c4043;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.btn-picker-pill:hover:not(:disabled) {
    background: #f1f3f4;
    border-color: #b8bdc4;
}

.announcement-classes-dropdown {
    position: absolute;
    top: 40px;
    left: 0;
    width: 320px;
    max-height: 360px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 200;
    overflow: hidden;
    animation: fadeInScale 0.15s ease-out;
}

.classes-dropdown-scroll {
    max-height: 350px;
    overflow-y: auto;
    padding: 8px 0;
}

.announcement-class-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
}

.announcement-class-item:hover {
    background: #f8fafd;
}

.announcement-class-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0b57d0;
    cursor: pointer;
}

.class-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.class-item-text {
    flex: 1;
    min-width: 0;
}

.class-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.class-item-sub {
    font-size: 0.74rem;
    color: #5f6368;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================================================== */
/* KELAS YANG DIARSIPKAN VIEW & CARD 3-DOTS ACTIONS (Image 1)                 */
/* ========================================================================== */
.archived-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 24px 0;
    border-bottom: 1px solid #e8eaed;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.archived-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #202124;
}

.archived-breadcrumb a {
    color: #5f6368;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.archived-breadcrumb a:hover {
    color: #0b57d0;
}

.card-dots-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-dots-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Khusus dropdown menu kartu kelas: posisikan ke kiri tombol titik tiga agar tidak menutupi avatar foto guru di pojok kanan bawah banner */
.card-dots-wrap .card-dropdown-menu {
    top: 38px;
    right: 46px;
    min-width: 195px;
    max-width: 235px;
}

.card-dots-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.card-dots-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.card-dropdown-menu {
    position: absolute;
    top: 38px;
    right: 0;
    min-width: 240px;
    width: max-content;
    max-width: 320px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 6px 0;
    z-index: 999;
    display: none;
    animation: fadeInScale 0.15s ease-out;
}

.card-dropdown-menu.show {
    display: block !important;
}

.card-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #3c4043;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.card-dropdown-item i {
    width: 18px;
    font-size: 0.95rem;
    text-align: center;
}

.card-dropdown-item:hover {
    background: #f1f3f4;
    color: #202124;
}

.card-dropdown-item.text-danger {
    color: #d93025;
}

.card-dropdown-item.text-danger:hover {
    background: #fce8e6;
    color: #c5221f;
}

/* Tombol Regenerate / Copy Kode Kelas di Banner */
.class-code-pill-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 4px 12px;
    border-radius: 9999px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.btn-code-action {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.15s;
}

.btn-code-action:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ========================================================= */
/* EMPTY STATE SMARTAPP LMS STYLE (IMAGE 3)              */
/* ========================================================= */
.courses-empty-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    margin: 20px 0 40px 0;
    width: 100%;
    min-height: 420px;
    background: transparent;
}

.empty-state-svg-wrap {
    width: 260px;
    max-width: 90%;
    height: 195px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-svg-wrap svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.empty-state-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f1f1f;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    font-family: 'Google Sans', 'Inter', Roboto, sans-serif;
}

.empty-state-sub {
    font-size: 0.95rem;
    color: #444746;
    max-width: 480px;
    line-height: 1.55;
    margin-bottom: 28px;
}

.empty-state-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-outline-pill {
    background: #ffffff;
    border: 1px solid #747775;
    color: #0b57d0;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.btn-outline-pill:hover {
    background: #f0f4f9;
    border-color: #0b57d0;
}

.btn-primary-blue-pill {
    background: #0b57d0;
    border: 1px solid transparent;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    font-family: inherit;
}

.btn-primary-blue-pill:hover {
    background: #0842a0;
    box-shadow: 0 2px 6px rgba(11, 87, 208, 0.3);
}

/* ========================================================= */
/* DRAWER DYNAMIC COURSE LIST (IMAGE 2)                      */
/* ========================================================= */
.drawer-courses-list {
    display: flex;
    flex-direction: column;
    padding: 4px 0 8px 0;
    gap: 4px;
}

.drawer-course-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px 9px 20px;
    color: #334155;
    text-decoration: none;
    border-radius: 0 24px 24px 0;
    margin-right: 12px;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.drawer-course-item:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: translateX(3px);
}

.drawer-course-item.active {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}

.drawer-course-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: #4f46e5;
    border-radius: 0 4px 4px 0;
}

.drawer-course-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease;
}

.drawer-course-item:hover .drawer-course-icon-badge {
    transform: scale(1.08);
}

/* Vibrant Themes for Course Badges & Icons */
.theme-indigo {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3) !important;
}

.theme-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3) !important;
}

.theme-pink {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3) !important;
}

.theme-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

.theme-emerald {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.theme-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%) !important;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3) !important;
}

.theme-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

.theme-rose {
    background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%) !important;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3) !important;
}

.theme-violet {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3) !important;
}

.theme-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%) !important;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3) !important;
}

.theme-indigo {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3) !important;
}

.theme-pink {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3) !important;
}

.drawer-course-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.drawer-course-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.drawer-course-sub {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================================= */
/* VIEW: KALENDER PEMBELAJARAN & UJIAN                       */
/* ========================================================= */
.calendar-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.calendar-nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.calendar-title-wrap h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-subtitle {
    font-size: 0.86rem;
    color: #64748b;
    margin-top: 2px;
    display: block;
}

.calendar-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-icon-plain,
.btn-calendar-nav-icon {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569 !important;
    font-size: 0.92rem !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
}

.btn-icon-plain:hover,
.btn-calendar-nav-icon:hover {
    background: #f1f5f9 !important;
    color: #0b57d0 !important;
}

.btn-icon-plain:active,
.btn-calendar-nav-icon:active {
    background: #e2e8f0 !important;
    transform: scale(0.92) !important;
}

.calendar-month-picker {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.calendar-month-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    min-width: 120px;
    text-align: center;
}

.btn-calendar-today {
    background: #e0e7ff;
    color: #4338ca;
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-calendar-today:hover {
    background: #c7d2fe;
}

.calendar-class-filter-select, .todo-class-filter-select {
    padding: 8px 14px;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.calendar-layout-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .calendar-layout-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.calendar-grid-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.calendar-weekdays-bar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: #64748b;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
    box-sizing: border-box;
}

.calendar-weekdays-bar div {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    padding-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

.calendar-day-cell {
    min-height: 100px;
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    transition: all 0.15s;
    cursor: pointer;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.calendar-day-cell:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.calendar-day-cell.other-month {
    opacity: 0.35;
    background: #ffffff;
}

.calendar-day-cell.is-today {
    background: #eef2ff;
    border-color: #818cf8;
}

.calendar-day-cell.is-today .calendar-day-num {
    background: #4f46e5;
    color: #ffffff;
    border-radius: 50%;
}

.calendar-day-cell.selected-day {
    background: #eff6ff !important;
    border: 2px solid #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

.calendar-day-cell.selected-day .calendar-day-num {
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
}

.calendar-day-num {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.calendar-cell-events {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.calendar-badge-event {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.1s;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.calendar-badge-event span {
    display: block;
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-badge-event i {
    flex-shrink: 0;
    font-size: 0.72rem;
}

.calendar-badge-event:hover {
    transform: scale(1.02);
}

.calendar-more-events {
    font-size: 0.68rem;
    font-weight: 700;
    color: #0b57d0;
    background: #eff6ff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-event-tugas {
    background: #e0f2fe;
    color: #0369a1;
    border-left: 3px solid #0284c7;
}

.badge-event-cbt {
    background: #fef3c7;
    color: #b45309;
    border-left: 3px solid #f59e0b;
}

.badge-event-materi {
    background: #dcfce7;
    color: #15803d;
    border-left: 3px solid #22c55e;
}

.calendar-agenda-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.agenda-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
}

.agenda-sidebar-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-pill-count {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
}

.agenda-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
}

.agenda-card-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.agenda-card-item:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.agenda-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agenda-card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.agenda-card-date {
    font-size: 0.74rem;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.agenda-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.agenda-card-course {
    font-size: 0.76rem;
    color: #475569;
    font-weight: 500;
}

/* ========================================================= */
/* VIEW: DAFTAR TUGAS & PENUGASAN (COMPACT SMARTAPP LMS) */
/* ========================================================= */
.gc-todo-wrapper {
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px 20px 60px 20px;
}

.gc-todo-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.gc-todo-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.gc-todo-back-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.gc-todo-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    overflow-x: auto;
}

.gc-todo-tab-btn {
    background: transparent;
    border: none;
    padding: 8px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 9px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.gc-todo-tab-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.7);
}

.gc-todo-tab-btn.active {
    background: #ffffff;
    color: #2563eb;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.gc-todo-tab-count {
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    line-height: 1.3;
}

.gc-todo-tab-btn.active .gc-todo-tab-count {
    background: #eff6ff;
    color: #2563eb;
}

.gc-todo-tab-count.gc-count-danger {
    background: #fee2e2;
    color: #dc2626;
}

.gc-todo-filter-row {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.gc-todo-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 260px;
    max-width: 340px;
    width: 100%;
}

.gc-todo-select-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.92rem;
    pointer-events: none;
    z-index: 1;
}

.gc-todo-select {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 38px 10px 38px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #ffffff;
    appearance: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.gc-todo-select:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.gc-todo-select:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.gc-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
    font-size: 0.82rem;
    z-index: 1;
}

/* ACCORDION GROUPS */
.gc-accordion-group {
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gc-accordion-group:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.gc-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    cursor: pointer;
    user-select: none;
    background: #fafbfc;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.15s ease;
}

.gc-accordion-header:hover {
    background: #f1f5f9;
}

.gc-accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gc-accordion-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.gc-accordion-count {
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 3px 11px;
    border-radius: 9999px;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gc-accordion-chevron-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.2s ease;
}

.gc-accordion-header:hover .gc-accordion-chevron-wrap {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.gc-accordion-chevron {
    font-size: 0.88rem;
    transition: transform 0.25s ease;
}

.gc-accordion-group.collapsed .gc-accordion-chevron {
    transform: rotate(180deg);
}

.gc-accordion-group.collapsed .gc-accordion-header {
    border-bottom: none;
}

.gc-accordion-group.collapsed .gc-accordion-body {
    display: none;
}

.gc-accordion-body {
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

/* ROW ITEM SMARTAPP LMS DENGAN 3 KOLOM SEJAJAR */
.gc-todo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.gc-todo-row:last-child {
    border-bottom: none;
}

.gc-todo-row:hover {
    background: #f8fafd;
}

.gc-todo-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.2s;
}

.gc-todo-row:hover::before {
    background: #2563eb;
}

.gc-todo-row-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}

.gc-todo-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gc-todo-icon-circle i,
.gc-todo-icon-circle svg {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    display: inline-block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.gc-todo-row:hover .gc-todo-icon-circle {
    transform: scale(1.06);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.gc-todo-icon-circle.theme-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

.gc-todo-icon-circle.theme-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

.gc-todo-icon-circle.theme-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

.gc-todo-icon-circle.theme-amber,
.gc-todo-icon-circle.theme-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

.gc-todo-icon-circle.theme-gray {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

.gc-todo-info {
    flex: 1;
    min-width: 0;
}

.gc-todo-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    transition: color 0.15s ease;
}

.gc-todo-row:hover .gc-todo-title {
    color: #2563eb;
}

.gc-todo-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-todo-course-chip {
    background: #f1f5f9;
    color: #334155;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.76rem;
    border: 1px solid #e2e8f0;
    display: inline-block;
}

.gc-todo-date-text {
    color: #64748b;
    font-size: 0.78rem;
}

/* 3 KOLOM SEJAJAR (Diserahkan, Ditugaskan, Dinilai) */
.gc-todo-stats-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.gc-todo-stat-col {
    min-width: 88px;
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gc-stat-number {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.gc-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Diserahkan (Turned In) */
.gc-todo-stat-col.gc-stat-turn-in {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
}

.gc-todo-stat-col.gc-stat-turn-in .gc-stat-number {
    color: #15803d;
}

.gc-todo-stat-col.gc-stat-turn-in .gc-stat-label {
    color: #166534;
}

.gc-todo-row:hover .gc-todo-stat-col.gc-stat-turn-in {
    background: #dcfce7;
    border-color: #86efac;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(22, 101, 52, 0.08);
}

/* Ditugaskan (Assigned) */
.gc-todo-stat-col.gc-stat-assigned {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
}

.gc-todo-stat-col.gc-stat-assigned .gc-stat-number {
    color: #1d4ed8;
}

.gc-todo-stat-col.gc-stat-assigned .gc-stat-label {
    color: #1e40af;
}

.gc-todo-row:hover .gc-todo-stat-col.gc-stat-assigned {
    background: #dbeafe;
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.08);
}

/* Dinilai (Graded) */
.gc-todo-stat-col.gc-stat-graded {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
}

.gc-todo-stat-col.gc-stat-graded .gc-stat-number {
    color: #475569;
}

.gc-todo-stat-col.gc-stat-graded .gc-stat-label {
    color: #64748b;
}

.gc-todo-row:hover .gc-todo-stat-col.gc-stat-graded {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(71, 85, 105, 0.08);
}

.gc-todo-more-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.92rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 6px;
}

.gc-todo-more-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.gc-todo-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 4px;
}

.gc-todo-action-btn:hover {
    background: #f0fdf4;
    border-color: #10b981;
    color: #059669;
    transform: scale(1.06);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.btn-todo-switch-assigned {
    margin-top: 16px;
    padding: 8px 20px;
    border-radius: 9999px;
    background: #0b57d0;
    color: #ffffff;
    border: none;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(11, 87, 208, 0.25);
}

.btn-todo-switch-assigned:hover {
    background: #0842a0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 87, 208, 0.35);
}

.gc-todo-student-status {
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gc-todo-student-status.gc-status-assigned {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.gc-todo-student-status.gc-status-submitted {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.gc-todo-student-status.gc-status-graded {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.gc-todo-student-status.gc-status-missing {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.gc-todo-empty-state {
    padding: 56px 24px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.gc-todo-empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.15);
}

.gc-todo-empty-title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.gc-todo-empty-desc {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .gc-todo-wrapper {
        padding: 14px 12px 60px 12px;
    }
    .gc-todo-topbar {
        padding: 10px 14px;
        gap: 10px;
        border-radius: 14px;
    }
    .gc-todo-back-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .gc-todo-tab-btn {
        padding: 7px 12px;
        font-size: 0.85rem;
    }
    .gc-todo-select-wrap {
        max-width: 100%;
    }
    .gc-accordion-header {
        padding: 14px 16px;
    }
    .gc-todo-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 14px 16px;
    }
    .gc-todo-row-left {
        width: 100%;
        padding-right: 0;
    }
    .gc-todo-stats-group {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr) auto;
        gap: 6px;
        align-items: center;
    }
    .gc-todo-stat-col {
        min-width: 0;
        width: 100%;
        padding: 6px 4px;
        border-radius: 10px;
    }
    .gc-stat-number {
        font-size: 1.1rem;
    }
    .gc-stat-label {
        font-size: 0.62rem;
    }
}

.todo-card-row,
.todo-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.todo-card-row:hover,
.todo-item-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px -4px rgba(11, 87, 208, 0.12);
}

.todo-card-main,
.todo-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.todo-item-icon,
.todo-type-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e8f0fe;
    color: #0b57d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.todo-card-row:hover .todo-item-icon {
    background: #0b57d0;
    color: #ffffff;
    transform: scale(1.04);
}

.todo-item-meta,
.todo-item-info {
    flex: 1;
    min-width: 0;
}

.todo-item-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.35;
    word-break: break-word;
}

.todo-item-course {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.course-name-tag {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 2px 10px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
}

.todo-bullet {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.todo-due-text {
    color: #64748b;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.todo-card-side,
.todo-item-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-open-todo {
    background: #ffffff;
    color: #0b57d0;
    font-size: 0.86rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    padding: 7px 16px;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-open-todo:hover {
    background: #0b57d0;
    color: #ffffff;
    border-color: #0b57d0;
    box-shadow: 0 4px 12px rgba(11, 87, 208, 0.25);
    transform: translateX(2px);
}

.btn-open-todo i {
    transition: transform 0.2s ease;
}

.btn-open-todo:hover i {
    transform: translateX(3px);
}

.status-badge-green {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge-blue {
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge-red {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge-gray {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 680px) {
    .todo-card-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
    }
    .todo-card-side {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid #f1f5f9;
        padding-top: 10px;
        margin-top: 4px;
    }
    .btn-open-todo {
        flex: 1;
        justify-content: center;
    }
}

/* ========================================================= */
/* MODAL SETELAN PREFERENSI (SMARTAPP LMS STYLE)         */
/* ========================================================= */
.modal-settings-card {
    max-width: 580px;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.modal-settings-card .modal-body {
    flex: 1 1 auto;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.settings-user-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.settings-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-user-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
}

.settings-user-role {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4f46e5;
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 9999px;
    display: inline-block;
    margin-top: 3px;
    letter-spacing: 0.04em;
}

.settings-user-meta {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 3px;
}

.settings-group-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 10px;
}

.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 16px;
}

.settings-toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

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

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

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

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

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch-toggle input:checked + .slider-toggle {
    background-color: #0b57d0;
}

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

/* ==========================================================================
   SMARTAPP LMS MATERIAL 3 DIALOGS (CONFIRM / ALERT / PROMPT / BATCH)
   ========================================================================== */
.modal-google-overlay,
.modal-dialog-overlay,
.modal-topmost-dialog,
#modalScheduleAssign {
    background: rgba(0, 0, 0, 0.55) !important;
    z-index: 1000100 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.modal-google-overlay.active,
.modal-dialog-overlay.active,
.modal-topmost-dialog.active,
#modalScheduleAssign.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal-google-card,
.modal-dialog-card {
    background: #ffffff !important;
    border-radius: 8px !important;
    max-width: 440px !important;
    width: calc(100% - 32px) !important;
    padding: 24px 24px 18px 24px !important;
    border: none !important;
    box-shadow: 0 11px 15px -7px rgba(0, 0, 0, 0.2), 
                0 24px 38px 3px rgba(0, 0, 0, 0.14), 
                0 9px 46px 8px rgba(0, 0, 0, 0.12) !important;
    text-align: left !important;
    overflow: hidden !important;
    transform: scale(0.95);
    transition: transform 0.18s cubic-bezier(0, 0, 0.2, 1), opacity 0.18s ease;
}

.modal-overlay.active .modal-google-card,
.modal-overlay.active .modal-dialog-card {
    transform: scale(1) !important;
}

/* Hide tacky icon circles completely */
.dialog-icon-circle {
    display: none !important;
}

.google-dialog-content,
.dialog-text-content,
.dialog-body-box {
    text-align: left !important;
    padding: 0 !important;
    display: block !important;
}

.google-dialog-title,
.dialog-title {
    font-family: 'Google Sans', Roboto, -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 1.25rem !important; /* 20px standard Google dialog title */
    font-weight: 500 !important;
    color: #1f1f1f !important;
    line-height: 1.4 !important;
    margin: 0 0 16px 0 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}

.google-dialog-message,
.dialog-message {
    font-family: Roboto, -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 0.875rem !important; /* 14px standard Google dialog body */
    color: #444746 !important;
    line-height: 1.55 !important;
    margin: 0 0 24px 0 !important;
    text-align: left !important;
    word-break: break-word;
}

.google-dialog-input-wrap,
.dialog-input-wrap,
.prompt-input-group {
    margin: 12px 0 18px 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.google-dialog-input,
.prompt-dialog-input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    font-size: 0.92rem !important;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: #1f1f1f !important;
    background: #ffffff !important;
    border: 1px solid #747775 !important;
    border-radius: 4px !important;
    outline: none !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}

.google-dialog-input:focus,
.prompt-dialog-input:focus {
    border-color: #0b57d0 !important;
    box-shadow: 0 0 0 1px #0b57d0 !important;
}

.google-dialog-actions,
.dialog-actions,
.dialog-footer {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 16px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Google Action Buttons */
.btn-google-dialog-text,
.btn-dialog-cancel,
.btn-text {
    flex: none !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #0b57d0 !important;
    font-family: 'Google Sans', Roboto, -apple-system, sans-serif !important;
    font-size: 0.875rem !important; /* 14px */
    font-weight: 500 !important;
    height: 36px !important;
    min-width: 64px !important;
    padding: 0 14px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.15s, color 0.15s !important;
    user-select: none !important;
    box-shadow: none !important;
}

.btn-google-dialog-text:hover,
.btn-dialog-cancel:hover,
.btn-text:hover {
    background: #f0f4f9 !important;
    color: #0842a0 !important;
    border: none !important;
}

.btn-google-dialog-text:active,
.btn-dialog-cancel:active,
.btn-text:active {
    background: #d3e3fd !important;
}

.btn-google-dialog-action,
.btn-dialog-ok,
.btn-primary {
    flex: none !important;
    background: #0b57d0 !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    font-family: 'Google Sans', Roboto, -apple-system, sans-serif !important;
    font-size: 0.875rem !important; /* 14px */
    font-weight: 500 !important;
    height: 36px !important;
    min-width: 72px !important;
    padding: 0 18px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transition: background 0.15s, box-shadow 0.15s !important;
    user-select: none !important;
}

.btn-google-dialog-action:hover,
.btn-dialog-ok:hover,
.btn-primary:hover {
    background: #0842a0 !important;
    box-shadow: 0 1px 2px rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15) !important;
}

.btn-google-dialog-action:active,
.btn-dialog-ok:active,
.btn-primary:active {
    background: #063175 !important;
}

/* Danger variant (for Deletion / Permanent removals) */
.btn-google-dialog-action.btn-google-danger,
.btn-google-dialog-action.btn-dialog-danger,
.btn-dialog-ok.btn-danger,
.btn-dialog-ok.btn-dialog-danger,
.btn-dialog-danger {
    background: #d93025 !important;
    color: #ffffff !important;
}

.btn-google-dialog-action.btn-google-danger:hover,
.btn-google-dialog-action.btn-dialog-danger:hover,
.btn-dialog-ok.btn-danger:hover,
.btn-dialog-ok.btn-dialog-danger:hover,
.btn-dialog-danger:hover {
    background: #b3261e !important;
    box-shadow: 0 1px 2px rgba(217,48,37,0.3) !important;
}



/* ========================================================= */
/* HIGH-COMPRESS FILE UPLOAD & DRIVE MODAL (IMAGE 4)         */
/* ========================================================= */
.submit-type-selector {
    display: flex;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.submit-type-btn {
    flex: 1;
    min-width: 140px;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s;
    font-family: inherit;
}

.submit-type-btn.active {
    background: #ffffff;
    color: #0b57d0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.compression-info-badge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.8rem;
    color: #92400e;
    line-height: 1.45;
    margin-bottom: 14px;
}

.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-dropzone:hover {
    border-color: #0b57d0;
    background: #f0f7ff;
}

.dropzone-icon {
    font-size: 2.2rem;
    color: #0b57d0;
    margin-bottom: 8px;
}

.dropzone-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.dropzone-sub {
    font-size: 0.78rem;
    color: #64748b;
    margin: 4px 0 12px 0;
}

.btn-dropzone-pick {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 6px 16px;
    border-radius: 9999px;
    color: #0b57d0;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.video-redirect-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #be123c;
    margin-top: 12px;
}

.submission-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.submission-file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.file-thumb-wrap {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.file-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-thumb-wrap i {
    font-size: 1.4rem;
    color: #ef4444;
}

.file-info-details {
    flex: 1;
    min-width: 0;
}

.file-name-row {
    font-size: 0.86rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-stat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.file-stat-pill {
    font-size: 0.72rem;
    font-weight: 700;
    background: #ecfdf5;
    color: #047857;
    padding: 1px 6px;
    border-radius: 4px;
}

.file-orig-size {
    font-size: 0.72rem;
    color: #64748b;
}

.btn-remove-attachment {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.15s;
}

.btn-remove-attachment:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* DRIVE VIDEO REQUIREMENT BOX */
.drive-video-requirement-box {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 16px;
}

.drive-video-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.drive-steps-guide {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.82rem;
    color: #1e3a8a;
}

.drive-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ========================================================= */
/* IN-APP OFFLINE SCREEN OVERLAY (IMAGE 2 REFERENCE)         */
/* ========================================================= */
.offline-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f8fafc;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
    animation: fadeInOffline 0.25s ease-out;
}

@keyframes fadeInOffline {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.offline-screen-card {
    width: 100%;
    max-width: 420px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
}

.offline-satellite-wrap {
    width: 220px;
    height: 175px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.08));
}

.offline-satellite-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    animation: floatOfflineSat 4s ease-in-out infinite;
}

@keyframes floatOfflineSat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(-1.5deg); }
}

.offline-screen-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.35;
}

.offline-screen-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 360px;
}

.btn-offline-retry-pill {
    background-color: #0b57d0;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 38px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(11, 87, 208, 0.28);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    user-select: none;
}

.btn-offline-retry-pill:hover {
    background-color: #0842a0;
    box-shadow: 0 6px 20px rgba(11, 87, 208, 0.38);
    transform: translateY(-1px);
}

.btn-offline-retry-pill:active {
    transform: translateY(1px);
}

.btn-offline-retry-pill:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.offline-screen-tips {
    margin-top: 26px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 18px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.offline-tips-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offline-screen-tips ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.offline-screen-tips li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
}

.offline-screen-tips li i {
    color: #0b57d0;
    font-size: 0.88rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ========================================================= */
/* ========================================================= */
/* REKONSTRUKSI MOBILE LAYOUT & RESPONSIVE DESIGN (<= 768px)  */
/* ========================================================= */
@media (max-width: 768px) {
    /* 1. TOP NAVBAR: Clean, unstacked, no overflow */
    .classroom-navbar {
        height: 56px !important;
        padding: 0 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
        z-index: 100 !important;
    }

    .nav-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .brand-link {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 0.98rem !important;
        font-weight: 800 !important;
        letter-spacing: -0.2px !important;
        white-space: nowrap !important;
        color: #0f172a !important;
    }

    .brand-link span {
        display: inline-block !important;
        font-weight: 800 !important;
        color: #1e3a8a !important;
        letter-spacing: -0.3px !important;
    }

    .brand-logo-img {
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0 !important;
    }

    .brand-badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1px 6px !important;
        background: #e0e7ff !important;
        color: #4338ca !important;
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
        letter-spacing: 0.5px !important;
    }

    /* HEADER STATE CONTROL ON MOBILE: Mutually Exclusive (Mencegah Dobel Logo / Back Button) */
    /* 1. Kondisi Default / Dashboard: Tampilkan #navBrandLogo (SMARTAPP LMS), Sembunyikan Header Kelas & Breadcrumb */
    #navBrandLogo {
        display: flex !important;
    }
    #navMobileCourseHeader,
    .nav-mobile-course-header,
    #navDetailBreadcrumb,
    .nav-breadcrumb-gc {
        display: none !important;
    }

    /* 2. Kondisi Di Dalam Kelas (Tab Forum, Tugas, Anggota, Nilai): Tampilkan [<-] Nama Kelas, Sembunyikan Logo Brand & Breadcrumb */
    body.in-course #navBrandLogo {
        display: none !important;
    }
    body.in-course #navMobileCourseHeader,
    body.in-course .nav-mobile-course-header {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }
    body.in-course #navDetailBreadcrumb,
    body.in-course .nav-breadcrumb-gc {
        display: none !important;
    }

    /* 3. Kondisi Di Dalam Detail Tugas: Tampilkan Breadcrumb Bersih, Sembunyikan Logo & Header Kelas */
    body.in-assignment-detail #navBrandLogo,
    body.in-assignment-detail #navMobileCourseHeader,
    body.in-assignment-detail .nav-mobile-course-header {
        display: none !important;
    }
    body.in-assignment-detail #navDetailBreadcrumb,
    body.in-assignment-detail .nav-breadcrumb-gc {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }

    .btn-mobile-course-back {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        border-radius: 50% !important;
        background: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        color: #1e293b !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.95rem !important;
        cursor: pointer !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .btn-mobile-course-back:active {
        background: #e2e8f0 !important;
        transform: scale(0.95);
    }

    .nav-mobile-course-meta {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        cursor: pointer !important;
        overflow: hidden !important;
    }

    .nav-mobile-course-title {
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 140px !important;
        display: block !important;
        line-height: 1.2 !important;
    }

    .nav-breadcrumb-gc .btn-icon-plain {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        border-radius: 50% !important;
        background: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        color: #1e293b !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.95rem !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .nav-breadcrumb-gc .btn-icon-plain:active {
        background: #e2e8f0 !important;
        transform: scale(0.95);
    }

    .nav-breadcrumb-gc .gc-logo-badge {
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
    }

    .nav-breadcrumb-gc .gc-logo-badge-img {
        width: 26px !important;
        height: 26px !important;
        flex-shrink: 0 !important;
    }

    /* HILANGKAN SELURUH TEKS BREADCRUMB DI HEADER MOBILE */
    .nav-breadcrumb-gc .gc-logo-badge span,
    .nav-breadcrumb-gc .breadcrumb-sep,
    .nav-breadcrumb-gc .breadcrumb-academic-year,
    .nav-breadcrumb-gc .breadcrumb-text-col {
        display: none !important;
    }

    /* Sembunyikan elemen sekunder di navbar mobile agar tidak berdesakan */
    .nav-pill-btn:not(#btnLogout):not(#btnPortalUtama),
    #btnBackToDashboard,
    .hamburger-nav-btn {
        display: none !important;
    }

    /* Header Navbar Action Buttons on Mobile: Clean Icon Pills (No Cramping) */
    #btnPortalUtama {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #btnPortalUtama span {
        display: none !important;
    }

    .header-logout-pill {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #fef2f2 !important;
        border: 1.5px solid #fecaca !important;
        color: #991b1b !important;
        flex-shrink: 0 !important;
        cursor: pointer !important;
        box-shadow: 0 1px 3px rgba(239, 68, 68, 0.12) !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    .header-logout-pill span {
        display: none !important;
    }
    .header-logout-pill i {
        font-size: 0.88rem !important;
        color: #991b1b !important;
    }
    .header-logout-pill:hover,
    .header-logout-pill:active {
        background: #fee2e2 !important;
        border-color: #fca5a5 !important;
        color: #7f1d1d !important;
        transform: scale(0.96) !important;
    }

    .header-user-capsule {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .header-user-meta {
        display: none !important;
    }
    .user-avatar {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    /* Jika di dalam kelas, sembunyikan juga tombol tambah (+) agar tidak memenuhi header */
    body.in-course .nav-plus-dropdown-wrap {
        display: none !important;
    }

    .nav-right {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    /* Tombol-tombol touch circle di navbar kanan (Portal, Notif, Avatar) */
    #btnPortalUtama {
        display: inline-flex !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        color: #0b57d0 !important;
    }

    #btnPortalUtama span {
        display: none !important;
    }

    .header-bell-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.90rem !important;
    }

    .header-user-capsule {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .header-user-meta {
        display: none !important;
    }

    .header-avatar-ring {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        border-radius: 50% !important;
    }

    .nav-circle-action-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        font-size: 0.88rem !important;
    }

    /* Side Drawer Mobile dimatikan karena digantikan oleh Bottom Navigation */
    .classroom-side-drawer,
    .side-drawer-overlay {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Hilangkan efek filter blur berat di ponsel low-end */
    *, *::before, *::after {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* 2. SUB-NAV TABS KELAS: DOK DI BAWAH (NATIVE MOBILE APP) */
    .class-tabs-bar {
        display: none !important;
    }

    /* Saat berada di dalam kelas (in-course): Tabs berpindah ke Bottom Bar */
    body.in-course .class-tabs-bar {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100% !important;
        height: calc(58px + env(safe-area-inset-bottom, 8px)) !important;
        padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 8px)) 6px !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        border-bottom: none !important;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08) !important;
        z-index: 9995 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        user-select: none !important;
    }

    .class-tabs-actions {
        display: none !important; /* Aksi dipindahkan ke Quick Action Banner */
    }

    .class-tabs-left {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 100% !important;
    }

    .tab-lbl-full {
        display: none !important;
    }

    .tab-lbl-short {
        display: inline !important;
        font-size: 0.68rem !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        letter-spacing: -0.01em !important;
        white-space: nowrap !important;
        color: #64748b !important;
        transition: color 0.18s ease !important;
    }

    .tab-btn {
        flex: 1 1 0 !important;
        width: 25% !important;
        min-width: 0 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        padding: 2px 0 !important;
        border: none !important;
        border-bottom: none !important;
        background: transparent !important;
        color: #64748b !important;
        text-decoration: none !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
        -webkit-tap-highlight-color: transparent !important;
        box-sizing: border-box !important;
    }

    .tab-btn i {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 26px !important;
        border-radius: 14px !important;
        font-size: 1.05rem !important;
        color: #64748b !important;
        transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .tab-btn.active {
        color: #0b57d0 !important;
        border-bottom: none !important;
        background: transparent !important;
    }

    .tab-btn.active i {
        background: rgba(11, 87, 208, 0.12) !important;
        color: #0b57d0 !important;
    }

    .tab-btn.active .tab-lbl-short {
        color: #0b57d0 !important;
        font-weight: 700 !important;
    }

    .tab-btn:active {
        transform: scale(0.92) !important;
    }

    /* 3. HERO BANNER KELAS: Kompak, Elegan & Quick Action Pills */
    .class-hero-banner {
        padding: 14px 14px 12px 14px !important;
        border-radius: 14px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 4px 14px rgba(67, 56, 202, 0.12) !important;
    }

    .hero-banner-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .hero-title {
        font-size: 1.20rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        margin: 0 0 4px 0 !important;
        line-height: 1.25 !important;
    }

    .hero-sub-meta {
        font-size: 0.78rem !important;
        margin-bottom: 4px !important;
        color: rgba(255, 255, 255, 0.90) !important;
    }

    /* Sembunyikan Hero Banner raksasa di tab Tugas, Anggota & Nilai di mobile agar langsung fokus ke konten */
    body[data-course-tab="classwork"] #classHeroBanner,
    body[data-course-tab="people"] #classHeroBanner,
    body[data-course-tab="grades"] #classHeroBanner {
        display: none !important;
    }

    /* Kode kelas chip di mobile yang rapi dan responsif */
    .hero-code-chip {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        background: rgba(0, 0, 0, 0.35) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        border-radius: 12px !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 8px !important;
    }

    .hero-code-chip .hero-code-lbl {
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        color: rgba(255, 255, 255, 0.85) !important;
    }

    .hero-code-chip .hero-code-val {
        font-size: 0.88rem !important;
        background: rgba(255, 255, 255, 0.2) !important;
        padding: 3px 8px !important;
        border-radius: 6px !important;
    }

    .hero-code-btns {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
        margin-left: auto !important;
    }

    .hero-code-chip .btn-hero-code-action {
        padding: 4px 10px !important;
        font-size: 0.74rem !important;
        white-space: nowrap !important;
        border-radius: 9999px !important;
    }

    .hero-teacher-badge {
        margin-top: 10px !important;
        padding: 10px 14px !important;
        border-radius: 14px !important;
        background: rgba(0, 0, 0, 0.28) !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        gap: 12px !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-teacher-icon-wrap {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        flex-shrink: 0 !important;
        position: relative !important;
    }

    .hero-teacher-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
    }

    .teacher-live-dot {
        width: 10px !important;
        height: 10px !important;
        bottom: -2px !important;
        right: -2px !important;
        border: 2px solid #ffffff !important;
        position: absolute !important;
    }

    .hero-teacher-lbl {
        font-size: 0.65rem !important;
        letter-spacing: 0.05em !important;
    }

    .hero-teacher-name {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
    }

    /* 4. STREAM LAYOUT: Feed 100% Bersih & Rapi */
    .stream-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .hero-meet-row {
        display: flex !important; /* Mode mobile: tampilkan tombol meet di header */
        margin-top: 10px !important;
    }

    .stream-sidebar {
        display: none !important; /* Mode mobile: hilangkan panel meet di bawah postingan */
    }

    .stream-feed {
        width: 100% !important;
        max-width: 100% !important;
    }

    .stream-composer-box {
        padding: 10px 14px !important;
        border-radius: 14px !important;
        margin-bottom: 12px !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
        gap: 10px !important;
    }

    .composer-avatar-circle {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }

    .composer-input-placeholder {
        font-size: 0.85rem !important;
        color: #64748b !important;
    }

    /* Pengumuman Terjadwal & Drafts Box on Mobile (Clean Stacked Layout) */
    .stream-scheduled-box,
    .stream-drafts-box {
        margin-bottom: 12px !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .stream-scheduled-header,
    .stream-drafts-header {
        padding: 10px 14px !important;
    }

    .stream-scheduled-item-row,
    .stream-draft-item-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 12px 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .stream-scheduled-item-left,
    .stream-draft-item-left {
        width: 100% !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
        min-width: 0 !important;
    }

    .stream-scheduled-icon,
    .stream-draft-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        border-radius: 8px !important;
        font-size: 0.95rem !important;
        flex-shrink: 0 !important;
        margin-top: 2px !important;
    }

    .stream-scheduled-info,
    .stream-draft-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    .stream-scheduled-text-title,
    .stream-draft-text-title {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: #1e1b4b !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
    }

    .badge-scheduled-pill {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        font-size: 0.72rem !important;
        font-weight: 600 !important;
        padding: 2px 8px !important;
        margin-top: 4px !important;
        white-space: normal !important;
        border-radius: 6px !important;
        line-height: 1.25 !important;
    }

    .stream-scheduled-item-right,
    .stream-draft-item-right {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        padding-top: 8px !important;
        border-top: 1px dashed #e0e7ff !important;
        box-sizing: border-box !important;
    }

    .btn-stream-publish-now {
        flex: 1 1 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 8px 14px !important;
        font-size: 0.82rem !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
        background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
        color: #ffffff !important;
        border: none !important;
        font-weight: 650 !important;
        box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25) !important;
    }

    .btn-stream-draft-edit,
    .btn-stream-draft-del {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Stream Post Card */
    .stream-card {
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
        overflow: hidden !important;
    }

    .stream-card-body-box {
        padding: 14px !important;
    }

    .stream-card-header {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        margin-bottom: 10px !important;
        gap: 8px !important;
    }

    .stream-author-info {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    .stream-author-name {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
    }

    .stream-post-date {
        font-size: 0.72rem !important;
        color: #64748b !important;
    }

    .stream-card-content {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
        color: #1e293b !important;
        word-break: break-word !important;
        margin-bottom: 10px !important;
    }

    .stream-card-footer-comments {
        padding: 10px 14px !important;
        background: #f8fafc !important;
        border-top: 1px solid #f1f5f9 !important;
    }

    /* 5. TUGAS KELAS (CLASSWORK) DI MOBILE */
    .classwork-top-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 12px !important;
        gap: 8px !important;
    }

    .btn-create-classwork {
        padding: 8px 18px !important;
        font-size: 0.85rem !important;
        border-radius: 9999px !important;
    }

    .btn-toggle-all {
        padding: 6px 10px !important;
        font-size: 0.78rem !important;
    }

    .topic-section {
        margin-bottom: 16px !important;
    }

    .topic-section-header {
        padding: 8px 0 !important;
        border-bottom: 1.5px solid #e2e8f0 !important;
        margin-bottom: 8px !important;
    }

    .topic-heading {
        font-size: 1.05rem !important;
        font-weight: 800 !important;
        color: #0f172a !important;
    }

    .classwork-item {
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 12px 14px !important;
        margin-bottom: 8px !important;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    }

    /* Responsif Expanded Classwork Card di Mobile: Tidak Mepet, Rapi & Buka Tugas Sejajar Status */
    .cw-expanded-body {
        padding: 12px 14px 14px 14px !important;
    }

    .cw-body-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .cw-left-col {
        width: 100% !important;
    }

    .cw-instruction-text {
        padding: 10px 12px !important;
        margin: 8px 0 12px 0 !important;
        font-size: 0.86rem !important;
        border-radius: 8px !important;
    }

    .cw-right-col {
        border-left: none !important;
        padding-left: 0 !important;
        padding-top: 10px !important;
        border-top: 1px solid #f1f5f9 !important;
        width: 100% !important;
        align-items: stretch !important;
    }

    .cw-student-footer-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .btn-open-task-student {
        margin-top: 0 !important;
        padding: 8px 18px !important;
        font-size: 0.84rem !important;
    }

    /* 6. ANGGOTA KELAS (PEOPLE TAB) DI MOBILE: Sembunyikan Panel Ringkasan, Langsung Tampilkan Pengajar */
    .people-stats-grid {
        display: none !important;
    }

    .people-page-wrap {
        padding-top: 4px !important;
    }

    .people-section {
        margin-bottom: 24px !important;
    }

    .people-section-header {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        border-bottom: 2px solid #0b57d0 !important;
        padding-bottom: 6px !important;
        margin-bottom: 8px !important;
    }

    .people-row {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 10px 4px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        min-height: 48px !important;
    }

    .people-avatar {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }

    .people-name {
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
    }

    /* 7. BUKU NILAI (GRADES TAB) DI MOBILE: Horizontal Scrollable & Clean */
    .grades-tab-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 14px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    }

    .grades-tab-header > div:last-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .btn-gradebook-sync,
    .btn-gradebook-open {
        flex: 1 1 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 9px 8px !important;
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        text-align: center !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    .grades-table-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
        margin-top: 12px !important;
    }

    .grades-table {
        min-width: 440px !important;
        font-size: 0.82rem !important;
    }

    .grades-table th,
    .grades-table td {
        padding: 8px 10px !important;
    }

    /* Sticky student name column */
    .grades-table th:first-child,
    .grades-table td:first-child {
        position: sticky !important;
        left: 0 !important;
        background: #ffffff !important;
        z-index: 2 !important;
        min-width: 130px !important;
        max-width: 140px !important;
        box-shadow: 2px 0 4px rgba(15, 23, 42, 0.05) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Dashboard Hero Banner & Single-Column Classes Grid on Mobile */
    .dashboard-hero {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 16px 14px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .hero-text {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-text h1 {
        font-size: 1.25rem !important;
        font-weight: 800 !important;
        margin: 0 0 6px 0 !important;
        color: #0f172a !important;
    }

    .hero-text p {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
        color: #64748b !important;
        margin: 0 !important;
    }

    .hero-actions {
        width: 100% !important;
        margin-top: 4px !important;
    }

    .hero-actions .btn-primary,
    #btnCreateClass {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    .classes-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 24px !important;
    }

    .class-card {
        border-radius: 16px !important;
    }

    .card-header-banner {
        padding: 16px 16px 12px 16px !important;
        min-height: 110px !important;
    }

    .card-class-title {
        font-size: 1.15rem !important;
    }

    /* Calendar View on Mobile */
    .calendar-header-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .calendar-class-filter-select, .todo-class-filter-select {
        width: 100% !important;
    }

    .calendar-layout-container {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .calendar-weekdays-bar {
        font-size: 0.72rem !important;
        padding-bottom: 8px !important;
    }

    .calendar-days-grid {
        gap: 3px !important;
    }

    .calendar-day-cell {
        min-height: 56px !important;
        padding: 3px !important;
        border-radius: 6px !important;
    }

    .calendar-day-num {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.72rem !important;
    }

    .calendar-badge-event {
        font-size: 0.62rem !important;
        padding: 1px 3px !important;
    }

    /* SMARTAPP LMS TODO / TO-REVIEW LIST (MOBILE) */
    .gc-todo-wrapper {
        padding: 0 10px 70px 10px !important;
        max-width: 100% !important;
    }

    .gc-todo-topbar {
        gap: 6px !important;
        padding-bottom: 2px !important;
        margin-bottom: 14px !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .gc-todo-back-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
        flex-shrink: 0 !important;
        margin-bottom: 4px !important;
    }

    .gc-todo-tabs {
        flex: 1 1 auto !important;
        gap: 2px !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .gc-todo-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .gc-todo-tab-btn {
        padding: 10px 12px !important;
        font-size: 0.86rem !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    .gc-todo-tab-count {
        font-size: 0.7rem !important;
        padding: 1px 6px !important;
    }

    .gc-todo-filter-row {
        margin-bottom: 12px !important;
        width: 100% !important;
    }

    .gc-todo-select-wrap {
        width: 100% !important;
        display: block !important;
    }

    .gc-todo-select {
        width: 100% !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 12px !important;
        padding: 10px 36px 10px 14px !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    }

    .gc-select-arrow {
        right: 14px !important;
        font-size: 0.9rem !important;
    }

    .gc-accordion-group {
        margin-bottom: 18px !important;
    }

    .gc-accordion-header {
        padding: 10px 4px 10px 4px !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .gc-accordion-title {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
    }

    .gc-accordion-count {
        background: #e8f0fe !important;
        color: #0b57d0 !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        padding: 2px 8px !important;
        border-radius: 9999px !important;
    }

    .gc-accordion-body {
        gap: 10px !important;
        padding-top: 10px !important;
    }

    .gc-todo-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        padding: 14px 14px 12px 14px !important;
        margin-bottom: 0 !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
        position: relative !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .gc-todo-row-left {
        width: 100% !important;
        padding-right: 32px !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }

    .gc-todo-icon-circle {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
        flex-shrink: 0 !important;
        margin-top: 1px !important;
    }

    .gc-todo-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .gc-todo-title {
        font-size: 0.94rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        white-space: normal !important;
        line-height: 1.38 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .gc-todo-subtitle {
        font-size: 0.78rem !important;
        color: #64748b !important;
        margin-top: 4px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }

    .gc-todo-stats-group {
        width: 100% !important;
        margin-top: 12px !important;
        padding-top: 10px !important;
        border-top: 1px solid #f1f5f9 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .gc-todo-stat-col {
        flex: 1 1 0 !important;
        width: auto !important;
        background: #f8fafc !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 10px !important;
        padding: 7px 4px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .gc-todo-row .gc-todo-more-btn {
        position: absolute !important;
        top: 12px !important;
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
        color: #94a3b8 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Classwork Detail 2-Column to 1-Column */
    .cw-detail-layout, .cw-body-grid {
        grid-template-columns: 1fr !important;
    }

    .cw-right-col {
        border-left: none !important;
        border-top: 1px solid #e2e8f0 !important;
        padding-left: 0 !important;
        padding-top: 16px !important;
        margin-top: 16px !important;
    }

    /* 8. MODAL RESPONSIVE FIX (Mencegah tombol terpotong di sudut kanan bawah) */
    .modal-card,
    .modal-post-card,
    .modal-edit-post-card,
    .modal-dialog-card,
    .modal-settings-card {
        width: min(calc(100vw - 16px), 480px) !important;
        max-width: 100% !important;
        max-height: calc(100dvh - 32px) !important;
        border-radius: 18px !important;
        margin: auto !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
    }

    .modal-header {
        padding: 12px 16px !important;
        flex-shrink: 0 !important;
    }

    .modal-body {
        padding: 14px 16px !important;
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .modal-footer {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 8px)) 16px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 10px !important;
        background: #f8fafc !important;
        border-top: 1px solid #e2e8f0 !important;
        box-sizing: border-box !important;
    }

    .modal-footer button,
    .modal-footer .btn-secondary,
    .modal-footer .btn-primary {
        margin: 0 !important;
        padding: 9px 18px !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
        max-width: none !important;
        flex: 1 1 0 !important;
        justify-content: center !important;
    }

    /* ========================================================= */
    /* 9. BOTTOM NAVIGATION & PADDING AMAN HP                    */
    /* ========================================================= */
    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 12px)) !important;
    }

    .classroom-container,
    #viewClass,
    .class-content-wrap,
    #viewCalendar,
    #viewTodoList,
    #viewArchivedClasses {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 12px)) !important;
    }

    /* Di dalam kelas, sembunyikan bottom nav dashboard (digantikan oleh class-tabs-bar di bawah) */
    body.in-course .classroom-mobile-bottom-nav {
        display: none !important;
    }

    /* Bilah Navigasi Bawah Dashboard (Mobile Navigation Bar Google Material 3) */
    .classroom-mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100% !important;
        height: calc(58px + env(safe-area-inset-bottom, 8px)) !important;
        padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 8px)) 6px !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08) !important;
        z-index: 9990 !important;
        align-items: center !important;
        justify-content: space-around !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        user-select: none !important;
    }

    .mob-bottom-item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        padding: 2px 0 !important;
        color: #64748b !important;
        text-decoration: none !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
        -webkit-tap-highlight-color: transparent !important;
        box-sizing: border-box !important;
    }

    .mob-bottom-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 26px !important;
        border-radius: 14px !important;
        font-size: 1.05rem !important;
        color: #64748b !important;
        transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .mob-bottom-label {
        font-size: 0.68rem !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        letter-spacing: -0.01em !important;
        white-space: nowrap !important;
        color: #64748b !important;
        transition: color 0.18s ease !important;
    }

    .mob-bottom-item.active {
        color: #0b57d0 !important;
    }

    .mob-bottom-item.active .mob-bottom-icon {
        background: rgba(11, 87, 208, 0.12) !important;
        color: #0b57d0 !important;
    }

    .mob-bottom-item.active .mob-bottom-label {
        color: #0b57d0 !important;
        font-weight: 700 !important;
    }

    .mob-bottom-item:active {
        transform: scale(0.92) !important;
    }
}

/* ========================================================= */
/* EXTRA NARROW MOBILE SCREENS (<= 480px)                    */
/* ========================================================= */
@media (max-width: 480px) {
    .classroom-navbar {
        padding: 0 8px;
    }

    .brand-link span {
        font-size: 0.95rem;
    }

    .brand-badge {
        display: none;
    }

    .filter-pills-bar {
        gap: 6px;
    }

    .pill-filter {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .offline-satellite-wrap {
        width: 180px;
        height: 145px;
        margin-bottom: 16px;
    }

    .offline-screen-title {
        font-size: 1.15rem;
    }

    .offline-screen-desc {
        font-size: 0.86rem;
    }

    .btn-offline-retry-pill {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
    }

    .empty-state-svg-wrap {
        width: 190px;
        height: 145px;
    }

    .empty-state-title {
        font-size: 1.15rem;
    }
}

/* ========================================================= */
/* UNIVERSAL USER PHOTO & AVATAR SYSTEM                      */
/* ========================================================= */
.user-avatar,
.user-avatar-sm,
.stream-author-avatar-img,
.comment-avatar,
.people-avatar,
.card-teacher-avatar-float,
.roster-circle-avatar,
.assigned-card-avatar,
.sub-card-avatar,
.student-avatar-circle,
.settings-user-avatar,
.join-user-avatar {
    overflow: hidden !important;
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.avatar-photo-img,
.user-avatar img,
.user-avatar-sm img,
.stream-author-avatar-img img,
.comment-avatar img,
.people-avatar img,
.card-teacher-avatar-float img,
.roster-circle-avatar img,
.assigned-card-avatar img,
.sub-card-avatar img,
.student-avatar-circle img,
.settings-user-avatar img,
.join-user-avatar img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

.card-teacher-avatar-float {
    position: absolute;
    bottom: -22px;
    right: 20px;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #0b57d0 !important;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
    border: 3px solid #ffffff !important;
    overflow: hidden !important;
    z-index: 3;
}

.stream-author-avatar-img {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #e8f0fe;
    color: #0b57d0;
    font-weight: 700;
    font-size: 0.95rem;
    overflow: hidden !important;
}

.comment-avatar {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: #e8f0fe;
    color: #0b57d0;
    font-size: 0.76rem;
    font-weight: 700;
    overflow: hidden !important;
}

.people-avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #e8f0fe !important;
    color: #0b57d0 !important;
    font-size: 0.95rem;
    font-weight: 700;
    overflow: hidden !important;
}

.roster-circle-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.assigned-card-avatar,
.sub-card-avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.student-avatar-circle {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

/* ==========================================================================
   TOAST NOTIFICATION / SNACKBAR SYSTEM (SMARTAPP LMS STYLE)
   ========================================================================== */
.classroom-toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
    max-width: min(480px, calc(100vw - 32px));
}

.classroom-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: #202124;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(16px);
    animation: classroomToastIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes classroomToastIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.classroom-toast.hide {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
}

.classroom-toast .toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.classroom-toast.toast-success .toast-icon {
    color: #81c995;
}

.classroom-toast.toast-danger .toast-icon {
    color: #f28b82;
}

.classroom-toast.toast-warning .toast-icon {
    color: #fdd663;
}

.classroom-toast.toast-info .toast-icon {
    color: #8ab4f8;
}

.classroom-toast .toast-msg {
    flex: 1;
    color: #f1f3f4;
    font-weight: 400;
    letter-spacing: 0.15px;
    word-break: break-word;
}

.classroom-toast .toast-close {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
    margin-left: 6px;
    flex-shrink: 0;
    transition: background-color 0.2s, color 0.2s;
}

.classroom-toast .toast-close:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.classroom-toast .toast-close:active {
    background-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 600px) {
    .classroom-toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
    .classroom-toast {
        width: 100%;
    }
}

/* (Legacy dialog styles consolidated in SMARTAPP LMS Material 3 section above) */

/* ==========================================================================
   SMARTAPP LMS ASSIGNMENT / WORKSPACE SYSTEM (SCREENSHOT 1 & 2)
   ========================================================================== */
.modal-cw-full-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(32, 33, 36, 0.6);
    z-index: 90000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-cw-full-overlay.active {
    display: flex;
}

.modal-cw-workspace-card {
    width: 100vw;
    height: 100vh;
    max-width: none !important;
    border-radius: 0 !important;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: none !important;
}

@media (min-width: 1024px) {
    .modal-cw-workspace-card {
        width: 95vw;
        height: 94vh;
        max-width: 1400px !important;
        border-radius: 12px !important;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25) !important;
    }
}

/* Top Bar */
.cw-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 24px;
    border-bottom: 1px solid #dadce0;
    background: #ffffff;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.cw-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-cw-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #5f6368;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background 0.15s, color 0.15s;
}

.btn-cw-close:hover {
    background: #f1f3f4;
    color: #202124;
}

.cw-top-type-icon {
    font-size: 1.35rem;
    color: #1a73e8;
    display: flex;
    align-items: center;
}

.cw-top-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #3c4043;
    margin: 0;
}

.cw-top-center {
    display: flex;
    align-items: center;
}

.cw-autosave-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    color: #5f6368;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #f8f9fa;
    transition: all 0.25s ease;
}

.cw-autosave-status.saving {
    color: #1a73e8;
    background: #e8f0fe;
}

.cw-autosave-status i {
    font-size: 0.95rem;
}

.cw-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Split Button (Screenshot 1 & 2) */
.cw-split-btn-group {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    border-radius: 4px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.btn-cw-action-main {
    background: #1a73e8;
    color: #ffffff;
    border: none;
    padding: 0 24px;
    height: 38px;
    font-weight: 500;
    font-size: 0.9rem;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.15s, opacity 0.15s;
    outline: none;
}

.btn-cw-action-main:hover:not(:disabled) {
    background: #1765cc;
}

.btn-cw-action-main:disabled {
    background: #dadce0 !important;
    color: #80868b !important;
    cursor: not-allowed;
    border-right-color: #c4c7c5;
}

.btn-cw-action-caret {
    background: #1a73e8;
    color: #ffffff;
    border: none;
    width: 36px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
    outline: none;
}

.btn-cw-action-caret:hover:not(:disabled) {
    background: #1765cc;
}

.btn-cw-action-caret:disabled {
    background: #dadce0 !important;
    color: #80868b !important;
    cursor: not-allowed;
}

/* Dropdown Menu (Screenshot 2) */
.cw-assign-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8eaed;
    z-index: 1000;
    overflow: hidden;
    padding: 6px 0;
}

.cw-dropdown-opt {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #3c4043;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
}

.cw-dropdown-opt:hover {
    background: #f1f3f4;
}

.cw-dropdown-opt.text-danger {
    color: #d93025;
    font-weight: 500;
}

.cw-dropdown-opt.text-danger:hover {
    background: #fce8e6;
}

/* Workspace Body */
.cw-workspace-body {
    display: flex;
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
}

.cw-main-col {
    flex: 1;
    padding: 24px 32px 64px 32px;
    overflow-y: auto;
    max-width: 960px;
}

.cw-field-box {
    background: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 14px 18px 10px 18px;
    margin-bottom: 20px;
    transition: border-color 0.2s, background 0.2s;
}

.cw-field-box:focus-within {
    background: #ffffff;
    border-color: #1a73e8;
    box-shadow: 0 1px 4px rgba(26, 115, 232, 0.2);
}

.cw-field-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #5f6368;
    margin-bottom: 2px;
}

.cw-title-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.15rem;
    color: #202124;
    font-weight: 500;
    outline: none;
    padding: 4px 0;
    font-family: inherit;
}

.cw-field-validation-msg {
    color: #d93025;
    font-size: 0.78rem;
    margin-top: 4px;
    display: none;
}

.cw-instruction-input-wrap {
    margin-top: 4px;
}

.cw-instruction-textarea {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: #202124;
    outline: none;
    resize: vertical;
    line-height: 1.5;
    font-family: inherit;
}

.cw-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    border-top: 1px solid #dadce0;
    padding-top: 8px;
    margin-top: 10px;
}

.btn-tb {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: #5f6368;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.15s, color 0.15s;
}

.btn-tb:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #202124;
}

/* Learning Objective Banner (Screenshot 1) */
.cw-tag-banner {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cw-tag-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cw-tag-banner-text {
    font-size: 0.92rem;
    font-weight: 500;
    color: #1a73e8;
}

.cw-badge-pill-new {
    background: #e6f4ea;
    color: #137333;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Attachments Section (Screenshot 1) */
.cw-attach-section {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.cw-attach-header {
    font-size: 0.92rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 14px;
}

.cw-attach-buttons-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cw-attach-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    min-width: 56px;
}

.attach-btn-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #5f6368;
    background: #ffffff;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cw-attach-btn:hover .attach-btn-circle {
    background: #f8f9fa;
    border-color: #1a73e8;
    color: #1a73e8;
}

.cw-attach-btn span {
    font-size: 0.78rem;
    color: #5f6368;
    font-weight: 500;
}

.cw-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.cw-attachment-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #f8f9fa;
}

.cw-att-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.cw-att-icon {
    font-size: 1.25rem;
    color: #1a73e8;
}

.cw-att-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 380px;
}

.cw-att-del-btn {
    border: none;
    background: transparent;
    color: #5f6368;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.cw-att-del-btn:hover {
    background: #e8eaed;
    color: #d93025;
}

/* Sidebar Options (Right Column) */
.cw-side-col {
    width: 320px;
    border-left: 1px solid #dadce0;
    background: #ffffff;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    overflow-y: auto;
}

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

.cw-side-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #5f6368;
}

.cw-side-select,
.cw-side-date-input {
    width: 100%;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 0.88rem;
    color: #3c4043;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.cw-side-select:focus,
.cw-side-date-input:focus {
    border-color: #1a73e8;
}

/* Multi-Class Assignment Dropdown (SMARTAPP LMS Style) */
.cw-course-picker-wrap {
    position: relative;
    width: 100%;
}

.cw-side-select-btn {
    width: 100%;
    min-height: 40px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #3c4043;
    background: #f1f3f4;
    outline: none;
    transition: all 0.15s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    text-align: left;
}

.cw-side-select-btn:hover {
    background: #e8eaed;
    border-color: #b8bdc4;
}

.cw-side-select-btn:focus,
.cw-side-select-btn.active {
    background: #ffffff;
    border-color: #1a73e8;
    box-shadow: 0 0 0 1px #1a73e8;
}

.cw-side-select-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    font-size: 0.84rem;
    letter-spacing: 0.2px;
}

.cw-courses-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
    z-index: 250;
    overflow: hidden;
    animation: fadeInScale 0.15s ease-out;
}

.cw-courses-dropdown .classes-dropdown-scroll {
    max-height: 280px;
    overflow-y: auto;
    padding: 6px 0;
}

.cw-course-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
}

.cw-course-item:hover {
    background: #f8fafd;
}

.cw-course-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0b57d0;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.cw-course-item .class-avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cw-course-item .class-item-text {
    flex: 1;
    min-width: 0;
}

.cw-course-item .class-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cw-course-item .class-item-sub {
    font-size: 0.72rem;
    color: #5f6368;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cw-lock-due-group {
    background: #f8fafd;
    border: 1px solid #d3e3fd;
    border-radius: 6px;
    padding: 8px 12px;
    animation: fadeInScale 0.15s ease-out;
}

.cw-lock-due-group:hover {
    background: #f0f4f9;
}

.cw-side-pill-btn {
    border: 1px solid #dadce0;
    border-radius: 9999px;
    background: #ffffff;
    color: #1a73e8;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s;
    width: 100%;
}

.cw-side-pill-btn:hover {
    background: #f8f9fa;
}

.cw-side-rubrik-btn {
    border: none;
    background: transparent;
    color: #1a73e8;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 0;
    width: fit-content;
}

.cw-side-rubrik-btn:hover {
    text-decoration: underline;
}

/* Classwork Draft Badge & Stream Menu Styles (Screenshot 3, 4, 5) */
.cw-badge-draft {
    background: #e8eaed;
    color: #5f6368;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

.cw-item-draft {
    background: #fdfdfd !important;
}

.cw-item-draft .classwork-title {
    color: #5f6368 !important;
}

.cw-item-draft .classwork-icon-circle {
    background: #f1f3f4 !important;
    color: #5f6368 !important;
}

/* ==========================================================================
   STREAM DRAFTS BOX (SMARTAPP LMS SCREENSHOT 1)
   ========================================================================== */
.stream-drafts-box {
    margin-bottom: 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    transition: box-shadow 0.2s ease;
}

.stream-drafts-box:hover {
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

.stream-drafts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
}

.stream-drafts-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f1f1f;
}

.btn-icon-stream-draft {
    background: transparent;
    border: none;
    color: #5f6368;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.btn-icon-stream-draft:hover {
    background: #f1f3f4;
}

.stream-drafts-content {
    border-top: 1px solid #e8eaed;
}

.stream-draft-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.stream-draft-item-row:hover {
    background: #f8f9fa;
}

.stream-draft-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}

.stream-draft-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stream-draft-info {
    overflow: hidden;
}

.stream-draft-text-title {
    font-size: 0.92rem;
    font-weight: 500;
    color: #1f1f1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 480px;
}

.stream-draft-sub {
    font-size: 0.78rem;
    color: #5f6368;
    margin-top: 2px;
}

.stream-draft-item-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-stream-draft-edit,
.btn-stream-draft-del {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #5f6368;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.15s, color 0.15s;
}

.btn-stream-draft-edit:hover {
    background: #e8f0fe;
    color: #1a73e8;
}

.btn-stream-draft-del:hover {
    background: #fce8e6;
    color: #d93025;
}

/* ==========================================================================
   STREAM SCHEDULED BOX & ADVANCED SMARTAPP LMS FEATURES
   ========================================================================== */
.stream-scheduled-box {
    margin-bottom: 16px;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 8px 0 rgba(79, 70, 229, 0.12), 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.stream-scheduled-box:hover {
    box-shadow: 0 6px 16px 0 rgba(79, 70, 229, 0.18);
    border-color: #818cf8;
}

.stream-scheduled-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef2ff 100%);
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #e0e7ff;
}

.stream-scheduled-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3730a3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stream-scheduled-content {
    background: #ffffff;
}

.stream-scheduled-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
    gap: 12px;
}

.stream-scheduled-item-row:last-child {
    border-bottom: none;
}

.stream-scheduled-item-row:hover {
    background: #f8faff;
}

.stream-scheduled-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    flex: 1;
}

.stream-scheduled-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.15);
}

.stream-scheduled-info {
    overflow: hidden;
    flex: 1;
}

.stream-scheduled-text-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e1b4b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
}

.badge-scheduled-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4338ca;
    background: #e0e7ff;
    padding: 3px 10px;
    border-radius: 999px;
    margin-top: 4px;
    border: 1px solid #c7d2fe;
}

.stream-scheduled-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-stream-publish-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
    transition: all 0.15s ease;
}

.btn-stream-publish-now:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(79, 70, 229, 0.4);
}

.btn-pill-schedule-stream {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-pill-schedule-stream:hover,
.btn-pill-schedule-stream.active {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.btn-publish-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    transition: all 0.15s ease;
}

.btn-publish-pill:hover {
    border-color: #93c5fd;
    background: #f8faff;
    color: #1e40af;
}

.btn-publish-pill.active {
    border-color: #0b57d0 !important;
    background: #eff6ff !important;
    color: #0b57d0 !important;
    box-shadow: 0 1px 2px rgba(11, 87, 208, 0.15);
}

.btn-smart-tpl-chip {
    background: #f5f3ff;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-smart-tpl-chip:hover {
    background: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
    transform: translateY(-1px);
}

.stream-card-schedule-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: #92400e;
}

.stream-card-pinned-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 4px 10px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #065f46;
}

.btn-link-publish-now {
    background: transparent;
    border: none;
    color: #b45309;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 0.82rem;
}
.btn-link-publish-now:hover {
    color: #78350f;
}

/* ==========================================================================
   CLASSWORK MENU & DROP DOWN BEAUTIFICATION (SMARTAPP LMS RECONSTRUCTION)
   ========================================================================== */
.btn-create-classwork {
    background: #0b57d0 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 12px 24px !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15) !important;
    transition: background 0.15s, box-shadow 0.15s !important;
    font-family: inherit !important;
}

.btn-create-classwork:hover {
    background: #0842a0 !important;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15) !important;
}

.dropdown-menu-list.create-dropdown {
    width: 250px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
}

.create-dropdown .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    color: #3c4043 !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}

.create-dropdown .dropdown-item:hover {
    background: #f1f3f4 !important;
    color: #1f1f1f !important;
}

/* User Avatar & Header Round Styling */
.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.user-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #1a73e8;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.user-avatar img,
.user-avatar-sm img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

@media (max-width: 900px) {
    .cw-workspace-body {
        flex-direction: column;
    }
    .cw-side-col {
        width: 100%;
        border-left: none;
        border-top: 1px solid #dadce0;
    }
}

@media (max-width: 768px) {
    .student-work-master-split {
        flex-direction: column !important;
    }
    .roster-sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #dadce0 !important;
    }
    .roster-header-bar {
        position: static !important;
    }
    .student-work-action-ribbon {
        position: static !important;
        flex-wrap: wrap !important;
    }
    .submissions-grid-area {
        padding: 16px !important;
    }

    /* ========================================================= */
    /* FULLSCREEN SUBMISSION PREVIEW & GRADING MOBILE REDESIGN   */
    /* ========================================================= */
    .grading-top-bar {
        height: auto !important;
        min-height: 50px !important;
        padding: 8px 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .grading-bar-left {
        gap: 8px !important;
        flex-shrink: 0 !important;
    }

    .grading-assignment-title {
        display: none !important;
    }

    .grading-bar-center {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        gap: 4px !important;
        justify-content: center !important;
    }

    .student-switcher-box {
        padding: 4px 8px 4px 4px !important;
        max-width: 175px !important;
        gap: 6px !important;
    }

    .student-name-text {
        max-width: 75px !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .status-pill-badge {
        font-size: 0.68rem !important;
    }

    .student-nav-arrows button {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }

    .grading-bar-right {
        flex-shrink: 0 !important;
        gap: 6px !important;
    }

    #gradingTeacherAvatar {
        display: none !important;
    }

    #btnReturnSingle {
        padding: 6px 12px !important;
        font-size: 0.76rem !important;
        border-radius: 999px !important;
    }

    /* Mobile Segmented Tab Switcher Bar */
    .grading-mobile-tabs-bar {
        display: flex !important;
        width: 100% !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 6px 12px !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        z-index: 50 !important;
        flex-shrink: 0 !important;
    }

    .grading-mobile-tab-btn {
        flex: 1 !important;
        height: 38px !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        font-size: 0.82rem !important;
        font-weight: 650 !important;
        border: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
        color: #64748b !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .grading-mobile-tab-btn.active {
        background: #e0e7ff !important;
        color: #4338ca !important;
        border-color: #c7d2fe !important;
        font-weight: 750 !important;
    }

    /* Mobile Split View to Fullscreen Tabbed View */
    .grading-main-split {
        display: flex !important;
        flex-direction: column !important;
        width: 100vw !important;
        max-width: 100% !important;
        height: calc(100vh - 100px) !important;
        position: relative !important;
        overflow: hidden !important;
    }

    /* Default View on Mobile: Fullscreen Canvas Preview */
    .grading-canvas-area {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
        flex: 1 !important;
    }

    .grading-sidebar-panel {
        display: none !important;
    }

    .canvas-preview-img {
        max-height: 75vh !important;
        max-width: 96% !important;
    }

    /* When data-mobile-view="grading": Show Grading Panel in Fullscreen */
    #modalSubmissionPreview[data-mobile-view="grading"] .grading-canvas-area {
        display: none !important;
    }

    #modalSubmissionPreview[data-mobile-view="grading"] .grading-sidebar-panel {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
        flex: 1 !important;
        border-left: none !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }

    /* Floating Grade Button on Canvas */
    .btn-mobile-floating-grade {
        display: inline-flex !important;
        position: absolute !important;
        bottom: 24px !important;
        right: 18px !important;
        z-index: 60 !important;
        background: linear-gradient(135deg, #0b57d0 0%, #4338ca 100%) !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 9999px !important;
        padding: 10px 18px !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 18px rgba(11, 87, 208, 0.45) !important;
        cursor: pointer !important;
        gap: 8px !important;
        align-items: center !important;
        transition: all 0.2s ease !important;
    }

    .btn-mobile-floating-grade:active {
        transform: scale(0.96) !important;
    }
}

/* ========================================================= */
/* FAST SKELETON SHIMMER LOADERS FOR ZERO-LAG MOBILE FEEL    */
/* ========================================================= */
@keyframes shimmerWave {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-composer-shimmer {
    background: #ffffff;
    border: 1px solid #e0e2ec;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.skeleton-card-shimmer {
    background: #ffffff;
    border: 1px solid #e0e2ec;
    border-radius: 14px;
    padding: 24px 20px;
    margin-bottom: 16px;
}

.skeleton-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f1f3f4 25%, #e8eaed 50%, #f1f3f4 75%);
    background-size: 200% 100%;
    animation: shimmerWave 1.4s infinite ease-in-out;
    flex-shrink: 0;
}

.skeleton-bar {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f1f3f4 25%, #e8eaed 50%, #f1f3f4 75%);
    background-size: 200% 100%;
    animation: shimmerWave 1.4s infinite ease-in-out;
}

/* ==========================================================================
   CLASSROOM YOUTUBE PREVIEW, RESPONSIVE ZERO-CROP PLAYER & FLOATING PIP
   ========================================================================== */

/* 1. FLOATING YOUTUBE PICTURE-IN-PICTURE (PIP) CONTAINER */
.classroom-youtube-pip-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 390px;
    max-width: calc(100vw - 32px);
    background: #0f172a;
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999999;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
    user-select: none;
}

.classroom-youtube-pip-container.pip-large {
    width: 560px;
}

.classroom-youtube-pip-container:hover {
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 25px rgba(6, 182, 212, 0.25);
}

.classroom-pip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: grab;
    touch-action: none;
}

.classroom-pip-header:active {
    cursor: grabbing;
}

.classroom-pip-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    margin-right: 8px;
}

.classroom-pip-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f8fafc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.classroom-pip-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.btn-pip-action {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none !important;
}

.btn-pip-action:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.12);
}

.btn-pip-action.btn-pip-close:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.18);
}

.classroom-pip-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.classroom-pip-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 2. RESPONSIVE ZERO-CROP 16:9 PLAYER CONTAINER */
.cw-youtube-player-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cw-youtube-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* 3. YOUTUBE RICH PREVIEW CARD (INSTRUCTIONS VIEW) */
.cw-youtube-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    max-width: 760px;
}

.cw-youtube-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cw-youtube-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.cw-youtube-card-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 7px;
}

.cw-youtube-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-pip-quick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0284c7;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.btn-pip-quick:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.btn-yt-ext {
    color: #64748b;
    font-size: 0.82rem;
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-yt-ext:hover {
    color: #ef4444;
    background: #fee2e2;
}

.cw-youtube-preview-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    cursor: pointer;
    overflow: hidden;
}

.cw-youtube-preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.cw-youtube-preview-wrap:hover .cw-youtube-preview-thumb {
    transform: scale(1.04);
}

.cw-youtube-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.3);
    transition: background 0.25s ease;
}

.cw-youtube-preview-wrap:hover .cw-youtube-play-overlay {
    background: rgba(15, 23, 42, 0.15);
}

.cw-youtube-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.95);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    padding-left: 4px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.3);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}

.cw-youtube-preview-wrap:hover .cw-youtube-play-btn {
    transform: scale(1.12);
    background: #dc2626;
}

.cw-youtube-duration-pill {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

.cw-youtube-card-body {
    padding: 14px 16px 16px;
}

.cw-youtube-card-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.35;
}

.cw-youtube-card-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.cw-youtube-inline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #1e293b;
    color: #f8fafc;
}

.cw-youtube-inline-title {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 65%;
}

.cw-youtube-inline-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-inline-close {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s;
}

.btn-inline-close:hover {
    background: rgba(239, 68, 68, 0.85);
}

/* 4. YOUTUBE ITEM IN TASK CREATION MODAL */
.cw-youtube-attachment-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1.5px solid #fed7aa !important;
    background: #fff7ed !important;
    border-radius: 10px;
    margin-bottom: 8px;
}

.cw-youtube-attachment-preview:hover {
    border-color: #f97316 !important;
}

.cw-yt-thumb-wrap {
    position: relative;
    width: 68px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.cw-yt-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cw-yt-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.cw-yt-thumb-wrap:hover .cw-yt-play-icon {
    background: rgba(239, 68, 68, 0.7);
}

.cw-yt-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 10px;
}

.cw-yt-meta {
    font-size: 0.75rem;
    color: #9a3412;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.cw-yt-test-pip {
    background: none;
    border: none;
    color: #0284c7;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.cw-yt-test-pip:hover {
    text-decoration: underline;
    color: #0369a1;
}

/* 5. YOUTUBE CARD IN STREAM ANNOUNCEMENT FEED */
.cw-stream-yt-card {
    display: flex;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 8px;
    max-width: 640px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cw-stream-yt-thumb-wrap {
    position: relative;
    width: 160px;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    cursor: pointer;
    background: #0f172a;
    overflow: hidden;
}

.cw-stream-yt-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.cw-stream-yt-thumb-wrap:hover .cw-stream-yt-thumb {
    transform: scale(1.05);
}

.cw-stream-yt-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1.1rem;
}

.cw-stream-yt-pip-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(15, 23, 42, 0.85);
    color: #38bdf8;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.cw-stream-yt-content {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    flex: 1;
}

.cw-stream-yt-site {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 3px;
}

.cw-stream-yt-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
    margin-bottom: 6px;
}

.cw-stream-yt-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 640px) {
    .classroom-youtube-pip-container {
        bottom: 12px;
        right: 12px;
        left: 12px;
        width: auto !important;
        max-width: none;
    }

    .cw-stream-yt-card {
        flex-direction: column;
    }

    .cw-stream-yt-thumb-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

/* ========================================================= */
/* HEADER PORTAL SWITCHER & PORTAL EXIT CHOOSER MODAL        */
/* ========================================================= */
.nav-back-portal-btn {
    display: none !important; /* Dihilangkan sepenuhnya */
}

.btn-portal-utama {
    background: #ffffff;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-portal-utama:hover {
    background: #f0f7ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.btn-portal-utama:active {
    transform: scale(0.97);
}

.portal-exit-card {
    max-width: 420px !important;
    border-radius: 20px !important;
    padding: 22px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16) !important;
}

.portal-exit-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.portal-exit-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e8f0fe;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.portal-exit-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.portal-exit-subtitle {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 2px 0 0 0;
}

.portal-exit-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.portal-option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
}

.portal-option-btn:hover {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.portal-option-btn:active {
    transform: scale(0.98);
}

.portal-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portal-option-icon.cbt-icon-bg {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #ffffff;
    font-size: 1.25rem;
}

.portal-option-icon.meet-icon-bg {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 1.25rem;
}

.portal-option-meta {
    flex: 1;
}

.portal-option-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.portal-option-desc {
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.3;
}

.portal-option-arrow {
    font-size: 0.85rem;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.portal-option-btn:hover .portal-option-arrow {
    transform: translateX(3px);
    color: #2563eb;
}

.portal-exit-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-portal-cancel {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-portal-cancel:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* ========================================================================== */
/* KELAS YANG DIARSIPKAN (SEMI-DISABLED / MUTED STYLES)                       */
/* ========================================================================== */
.class-card.class-card-archived {
    opacity: 0.82;
    filter: grayscale(65%) contrast(0.95);
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: opacity 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.class-card.class-card-archived:hover {
    opacity: 0.96;
    filter: grayscale(20%) contrast(1);
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

/* Banner desaturated & striped overlay */
.class-card.class-card-archived {
    overflow: visible;
}

.class-card.class-card-archived.menu-open,
.class-card.class-card-archived:has(.card-dropdown-menu.show),
.class-card.class-card-archived:has(.card-dropdown-menu[style*="display: block"]) {
    overflow: visible !important;
    z-index: 100 !important;
}

.class-card.class-card-archived .card-header-banner {
    position: relative;
    overflow: visible !important; /* Mencegah dropdown menu 3-titik terpotong */
}

.class-card.class-card-archived .card-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.08) 8px,
        rgba(15, 23, 42, 0.42) 8px,
        rgba(15, 23, 42, 0.42) 16px
    );
    pointer-events: none;
    border-radius: calc(var(--radius-lg, 16px) - 1px) calc(var(--radius-lg, 16px) - 1px) 0 0;
    z-index: 1;
}

.class-card.class-card-archived .card-header-top,
.class-card.class-card-archived .card-title,
.class-card.class-card-archived .card-section {
    position: relative;
    z-index: 2;
}

.class-card.class-card-archived .card-dots-wrap {
    position: relative;
    z-index: 10;
}

.class-card.class-card-archived .card-dropdown-menu {
    z-index: 1050 !important;
    right: 46px !important;
    min-width: 195px !important;
    max-width: 235px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

/* Teacher avatar muted */
.class-card.class-card-archived .card-teacher-avatar-float {
    filter: grayscale(60%) opacity(0.85);
    border-color: #cbd5e1;
    background: #e2e8f0;
}

/* Card body muted */
.class-card.class-card-archived .card-body {
    background: #f8fafc;
}

.class-card.class-card-archived .card-teacher-name {
    color: #64748b !important;
}

/* Status note pill */
.archived-status-pill {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 8px;
    background: #f1f5f9;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
}

/* Card footer muted */
.class-card.class-card-archived .card-footer-actions {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

/* Tombol Pulihkan Kelas */
.btn-restore-archived-pill {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
}

.btn-restore-archived-pill:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.btn-restore-archived-pill:active {
    transform: scale(0.97);
}

.archived-room-tag {
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   CLASSROOM FORUM STREAM ATTACHMENTS & EDIT MODAL ENHANCEMENTS
   ========================================================================== */

/* 1. Lightbox Image Viewer Modal */
.modal-lightbox-overlay {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10050;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-container {
    background: #1e293b;
    border-radius: 14px;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: lightboxZoomIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.lightbox-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65vw;
}

.lightbox-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-lightbox-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-lightbox-action:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-lightbox-close {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
}

.lightbox-body {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background: #020617;
    max-height: calc(90vh - 60px);
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    user-select: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* ========================================================= */
/* 1b. LIGHTBOX DOCUMENT VIEWER (PDF, WORD, EXCEL, PPT)      */
/* ========================================================= */
.modal-doc-preview-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 10080 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

.modal-doc-preview-overlay.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.doc-preview-container {
    width: 95vw !important;
    height: 94vh !important;
    max-width: 1440px !important;
    max-height: 94vh !important;
    background: #0f172a !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: lightboxZoomIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.doc-preview-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 18px !important;
    background: #1e293b !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
    gap: 16px !important;
    flex-shrink: 0 !important;
    min-height: 62px !important;
    box-sizing: border-box !important;
}

.doc-preview-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
}

.doc-viewer-icon-badge {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 1.15rem !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.doc-viewer-title-box {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    overflow: hidden !important;
    gap: 2px !important;
}

.doc-title-text {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #f8fafc !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
}

.doc-meta-text {
    font-size: 0.74rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.doc-preview-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.doc-preview-body {
    flex: 1 !important;
    width: 100% !important;
    height: calc(100% - 62px) !important;
    position: relative !important;
    background: #020617 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    max-height: none !important;
}

.doc-preview-iframe {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    flex: 1;
    border: none;
    background: transparent;
    display: block;
    box-sizing: border-box;
}

.doc-preview-iframe.hidden,
.doc-preview-iframe[style*="display: none"],
.doc-preview-iframe[hidden] {
    display: none !important;
}

.doc-preview-loading {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.doc-preview-loading.hidden,
.doc-preview-loading[style*="display: none"],
.doc-preview-loading[hidden] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.doc-preview-text-sheet {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 24px;
    box-sizing: border-box;
    background: #0f172a;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    display: none;
}

.doc-preview-text-sheet.active {
    display: block !important;
}

.doc-preview-text-sheet.hidden,
.doc-preview-text-sheet[style*="display: none"],
.doc-preview-text-sheet[hidden] {
    display: none !important;
}

.doc-preview-excel-sheet {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    background: #0f172a;
    color: #e2e8f0;
    overflow: hidden;
    box-sizing: border-box;
}

.doc-preview-excel-sheet.active {
    display: flex !important;
}

.doc-preview-excel-sheet.hidden,
.doc-preview-excel-sheet[style*="display: none"],
.doc-preview-excel-sheet[hidden] {
    display: none !important;
}

.excel-preview-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 14px !important;
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
    flex-shrink: 0 !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.excel-sheet-tabs {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    max-width: 75% !important;
}

.excel-sheet-tab-btn {
    padding: 6px 14px !important;
    border-radius: 6px !important;
    border: 1px solid #334155 !important;
    background: #0f172a !important;
    color: #94a3b8 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.excel-sheet-tab-btn:hover {
    color: #ffffff !important;
    background: #1e293b !important;
    border-color: #107c41 !important;
}

.excel-sheet-tab-btn.active {
    background: #107c41 !important;
    color: #ffffff !important;
    border-color: #107c41 !important;
    box-shadow: 0 2px 8px rgba(16, 124, 65, 0.35) !important;
}

.excel-sheet-meta {
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

.excel-table-scroll-container {
    flex: 1 !important;
    overflow: auto !important;
    background: #ffffff !important;
    padding: 0 !important;
    position: relative !important;
}

.excel-table-scroll-container table {
    border-collapse: collapse !important;
    width: max-content !important;
    min-width: 100% !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 0.84rem !important;
    color: #1e293b !important;
}

.excel-table-scroll-container th,
.excel-table-scroll-container td {
    border: 1px solid #cbd5e1 !important;
    padding: 6px 12px !important;
    white-space: nowrap !important;
    text-align: left !important;
}

.excel-table-scroll-container tr:first-child td,
.excel-table-scroll-container tr:first-child th {
    background: #f1f5f9 !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    border-bottom: 2px solid #94a3b8 !important;
}

.excel-table-scroll-container tr:nth-child(even) {
    background: #f8fafc !important;
}

.excel-table-scroll-container tr:hover td {
    background: #e2e8f0 !important;
}

.doc-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: auto;
    display: none;
}

.doc-preview-img.active {
    display: block !important;
}

.doc-preview-img.hidden,
.doc-preview-img[style*="display: none"],
.doc-preview-img[hidden] {
    display: none !important;
}

.doc-preview-fallback {
    position: absolute;
    inset: 0;
    background: #0f172a;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    z-index: 11;
}

.doc-preview-fallback.active {
    display: flex !important;
}

/* ========================================================= */
/* INTERACTIVE PDF VIEWER (PDF.JS) STYLING                    */
/* ========================================================= */
.doc-preview-pdf-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #525659;
    position: relative;
    overflow: hidden;
}

.pdf-preview-toolbar {
    height: 44px;
    background: #323639;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #f1f5f9;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.pdf-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

.pdf-page-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    color: #e2e8f0;
}

.pdf-page-count i {
    color: #ef4444;
}

.pdf-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-pdf-tool {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-pdf-tool:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-pdf-tool:active {
    transform: scale(0.94);
}

.pdf-zoom-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    min-width: 44px;
    text-align: center;
    user-select: none;
}

.pdf-pages-scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    padding: 16px 12px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
}

.pdf-page-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: fit-content !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    position: relative;
    transition: box-shadow 0.2s ease;
    margin-bottom: 24px;
}

.pdf-page-header {
    width: 100%;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    text-align: right;
    letter-spacing: 0.3px;
    user-select: none;
    box-sizing: border-box;
    border-radius: 8px 8px 0 0;
}

.pdf-canvas-wrapper {
    display: block !important;
    padding: 0;
    background: #ffffff;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    border-radius: 0 0 8px 8px;
}

.pdf-canvas-wrapper canvas {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
}

.pdf-viewer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #cbd5e1;
    gap: 12px;
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .modal-doc-preview-overlay {
        padding: 0 !important;
    }
    .doc-preview-container {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
    }
    .doc-preview-header {
        padding: 10px 12px !important;
        min-height: 52px !important;
        gap: 8px !important;
    }
    .doc-preview-header-left {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }
    .doc-viewer-title-box {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }
    .doc-title-text {
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        max-width: 150px !important;
    }
    .doc-meta-text {
        font-size: 0.72rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        max-width: 150px !important;
    }
    .doc-preview-body {
        height: calc(100% - 52px) !important;
    }
    .doc-preview-actions {
        flex-shrink: 0 !important;
        gap: 4px !important;
    }
    .doc-preview-actions .btn-lightbox-action span {
        display: none !important;
    }
    .doc-preview-actions .btn-lightbox-action {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
    .pdf-preview-toolbar {
        padding: 0 10px !important;
        height: 40px !important;
    }
    .pdf-pages-scroll-area {
        padding: 10px 6px 30px !important;
        gap: 12px !important;
    }
}

/* 2. Stream Announcement Image Attachment Card */
.stream-attachment-image-card {
    margin-top: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    overflow: hidden;
    max-width: 680px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.stream-attachment-image-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.stream-image-wrap {
    position: relative;
    width: 100%;
    max-height: 460px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.stream-card-image-preview {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    display: block;
    background: #f8fafc;
    transition: transform 0.25s ease;
}

.stream-image-wrap:hover .stream-card-image-preview {
    transform: scale(1.015);
}

.stream-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.stream-image-wrap:hover .stream-image-overlay {
    opacity: 1;
}

.stream-image-overlay-badge {
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.stream-image-footer {
    padding: 10px 14px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stream-image-info {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.stream-image-badge {
    padding: 2px 8px;
    border-radius: 4px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.stream-image-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-image-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0b57d0;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    text-decoration: none;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-image-download:hover {
    background: #0b57d0;
    color: #ffffff;
    border-color: #0b57d0;
}

/* 3. Stream Announcement Video Player Card */
.stream-attachment-video-card {
    margin-top: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    overflow: hidden;
    max-width: 680px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.stream-video-header {
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.stream-video-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-video-wrap {
    width: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-card-video-player {
    width: 100%;
    max-height: 480px;
    background: #000000;
    display: block;
    outline: none;
}

/* 4. Google Drive Card (Authentic Google Style) */
.gdrive-preview-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #dadce0;
    background: #ffffff;
    text-decoration: none;
    max-width: 640px;
    transition: all 0.18s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.gdrive-preview-card:hover {
    border-color: #0f9d58;
    box-shadow: 0 3px 10px rgba(15, 157, 88, 0.12);
    transform: translateY(-1px);
}

.gdrive-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    flex: 1;
}

.gdrive-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.gdrive-icon-badge.drive {
    background: #e6f4ea;
    color: #0f9d58;
}

.gdrive-icon-badge.docs {
    background: #e8f0fe;
    color: #1a73e8;
}

.gdrive-icon-badge.sheets {
    background: #e6f4ea;
    color: #0f9d58;
}

.gdrive-icon-badge.slides {
    background: #fef7e0;
    color: #f29900;
}

.gdrive-meta {
    overflow: hidden;
}

.gdrive-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f1f1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.gdrive-subtitle {
    font-size: 0.75rem;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gdrive-action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f9d58;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.gdrive-preview-card:hover .gdrive-action-btn {
    background: #0f9d58;
    color: #ffffff;
    border-color: #0f9d58;
}

/* 5. Document / File Attachment Card */
.stream-attachment-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #dadce0;
    background: #ffffff;
    text-decoration: none;
    max-width: 640px;
    transition: all 0.18s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.stream-attachment-file-card:hover {
    border-color: #0b57d0;
    box-shadow: 0 3px 10px rgba(11, 87, 208, 0.12);
    transform: translateY(-1px);
}

.file-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    flex: 1;
}

.file-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.file-icon-badge.pdf { background: #fce8e6; color: #d93025; }
.file-icon-badge.word { background: #e8f0fe; color: #1a73e8; }
.file-icon-badge.excel { background: #e6f4ea; color: #0f9d58; }
.file-icon-badge.ppt { background: #fef7e0; color: #ea8600; }
.file-icon-badge.zip { background: #fef3c7; color: #d97706; }
.file-icon-badge.generic { background: #f1f3f4; color: #5f6368; }

.file-meta {
    overflow: hidden;
}

.file-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f1f1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.file-size-tag {
    font-size: 0.74rem;
    color: #5f6368;
    font-weight: 500;
}

.file-action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0b57d0;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.stream-attachment-file-card:hover .file-action-btn {
    background: #0b57d0;
    color: #ffffff;
    border-color: #0b57d0;
}

/* Document preview card specific styles & interactive chips */
.stream-attachment-doc-card {
    cursor: pointer;
}

.stream-attachment-doc-card:hover {
    border-color: #0b57d0;
    box-shadow: 0 4px 14px rgba(11, 87, 208, 0.14);
    transform: translateY(-1px);
}

.file-actions-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
}

.btn-doc-preview-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #e8f0fe;
    color: #1a73e8;
    border: 1px solid #c2e7ff;
    border-radius: 18px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(26, 115, 232, 0.08);
}

.btn-doc-preview-chip:hover {
    background: #1a73e8;
    color: #ffffff;
    border-color: #1a73e8;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.25);
    transform: translateY(-1px);
}

.btn-doc-preview-chip:active {
    transform: translateY(0);
}

.btn-doc-download-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-doc-download-chip:hover {
    background: #0b57d0;
    color: #ffffff;
    border-color: #0b57d0;
    box-shadow: 0 2px 6px rgba(11, 87, 208, 0.25);
    transform: translateY(-1px);
}

.btn-doc-download-chip:active {
    transform: translateY(0);
}

.tag-preview-hint {
    color: #0b57d0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 6. External Link Card */
.stream-attachment-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #dadce0;
    background: #ffffff;
    text-decoration: none;
    max-width: 640px;
    transition: all 0.18s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.stream-attachment-link-card:hover {
    border-color: #1a73e8;
    box-shadow: 0 3px 10px rgba(26, 115, 232, 0.12);
    transform: translateY(-1px);
}

/* 7. Attachment Chips in Create & Edit Modal */
.attachment-composer-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dadce0;
    font-size: 0.84rem;
    gap: 10px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.attachment-composer-chip:hover {
    border-color: #0b57d0;
    background: #f8fafc;
}

.chip-left {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    flex: 1;
}

.chip-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    background: #f1f3f4;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.chip-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.chip-meta {
    overflow: hidden;
}

.chip-title {
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.84rem;
}

.chip-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 1px;
}

.btn-chip-remove {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 4px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.btn-chip-remove:hover {
    color: #d93025;
    background: #fee2e2;
}

/* Mobile responsive refinements */
@media (max-width: 640px) {
    .lightbox-title {
        max-width: 45vw;
    }
    .stream-card-image-preview {
        max-height: 320px;
    }
    .gdrive-preview-card,
    .stream-attachment-file-card,
    .stream-attachment-link-card {
        padding: 12px 14px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        border-radius: 12px !important;
    }
    .file-card-left {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .file-actions-group {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
        margin-top: 4px !important;
    }
    .file-actions-group button,
    .file-actions-group a {
        flex: 1 !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        font-size: 0.82rem !important;
        font-weight: 600 !important;
    }
    .tag-preview-hint {
        display: none !important;
    }
    .gdrive-icon-badge,
    .file-icon-badge {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

/* ========================================================= */
/* POLISHED FOOTER FOR CLASSROOM MODALS                      */
/* ========================================================= */
.modal-edit-post-card .modal-footer,
.modal-post-card .modal-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    padding: 16px 24px !important;
    border-top: 1px solid #e0e2ec !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.modal-edit-post-card .modal-footer button,
.modal-post-card .modal-footer button {
    margin: 0 !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

.modal-edit-post-card .modal-footer .btn-secondary,
.modal-post-card .modal-footer .btn-secondary {
    border-radius: 24px !important;
    padding: 8px 20px !important;
    height: 38px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    border: 1px solid #747775 !important;
    background: #ffffff !important;
    color: #444746 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
}

.modal-edit-post-card .modal-footer .btn-secondary:hover,
.modal-post-card .modal-footer .btn-secondary:hover {
    background: #f0f4f9 !important;
    border-color: #1f1f1f !important;
    color: #1f1f1f !important;
}

.modal-edit-post-card .modal-footer .btn-primary,
.modal-post-card .modal-footer .btn-primary {
    border-radius: 24px !important;
    padding: 8px 24px !important;
    height: 38px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    border: none !important;
    background: #0b57d0 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(11, 87, 208, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.15s, box-shadow 0.15s !important;
}

.modal-edit-post-card .modal-footer .btn-primary:hover,
.modal-post-card .modal-footer .btn-primary:hover {
    background: #0842a0 !important;
    box-shadow: 0 2px 6px rgba(11, 87, 208, 0.4) !important;
}

@media (max-width: 480px) {
    .modal-edit-post-card .modal-footer,
    .modal-post-card .modal-footer {
        padding: 12px 16px !important;
        gap: 8px !important;
    }
}

/* ========================================================================== */
/* MODERN RICH TEXT & MATH INSTRUCTION WORKSPACE (SMARTAPP LMS / NOTION)  */
/* ========================================================================== */

.cw-instruction-box-modern {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 0 !important;
    margin-bottom: 22px !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.cw-instruction-box-modern:focus-within {
    border-color: #0b57d0 !important;
    box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* Header bar */
.cw-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.cw-editor-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cw-editor-header-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.01em;
}

.cw-editor-tabs {
    display: flex;
    gap: 4px;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 8px;
}

.cw-editor-tab {
    padding: 5px 12px;
    border-radius: 6px;
    border: none;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.cw-editor-tab:hover {
    color: #1e293b;
}

.cw-editor-tab.active {
    background: #ffffff;
    color: #0b57d0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Modern Toolbar */
.cw-editor-toolbar-modern {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
    flex-wrap: wrap;
}

.cw-tb-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.cw-tb-divider {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
    margin: 0 6px;
}

.btn-cw-tb {
    height: 32px;
    min-width: 32px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    gap: 6px;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-cw-tb:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-cw-tb:active {
    background: #e2e8f0;
}

.btn-cw-tb-highlight {
    background: #eff6ff;
    color: #0b57d0;
    font-weight: 600;
    font-size: 0.8rem;
    border-color: #bfdbfe;
}

.btn-cw-tb-highlight:hover {
    background: #dbeafe;
    color: #0b57d0;
}

.btn-cw-tb-math {
    background: #faf5ff;
    color: #7c3aed;
    font-weight: 600;
    font-size: 0.8rem;
    border-color: #ddd6fe;
}

.btn-cw-tb-math:hover {
    background: #f3e8ff;
    color: #6d28d9;
}

/* Editor Body Wrap & ContentEditable Canvas */
.cw-editor-body-wrap {
    position: relative;
    min-height: 160px;
    background: #ffffff;
}

.cw-rich-editor {
    min-height: 160px;
    max-height: 400px;
    overflow-y: auto;
    padding: 14px 18px;
    outline: none;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1e293b;
    font-family: inherit;
    word-break: break-word;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.cw-rich-editor:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
    font-style: normal;
}

.cw-rich-editor.drag-over {
    background: #eff6ff !important;
    outline: 2px dashed #3b82f6 !important;
    outline-offset: -4px;
}

/* Pasted & Uploaded Images inside Instructions */
.cw-instruction-pasted-img,
.cw-rich-editor img,
.petunjuk-instructions-content img,
.cw-instruction-text img {
    max-width: 100%;
    max-height: 440px;
    object-fit: contain;
    border-radius: 8px;
    margin: 10px auto;
    display: block;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cw-instruction-pasted-img:hover,
.petunjuk-instructions-content img:hover,
.cw-instruction-text img:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Preview Pane */
.cw-preview-pane {
    min-height: 160px;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px 20px;
    background: #f8fafc;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1e293b;
    border-top: 1px solid #f1f5f9;
}

.cw-preview-pane:empty::before {
    content: "Pratinjau kosong. Tulis petunjuk atau sisipkan rumus terlebih dahulu.";
    color: #94a3b8;
    font-style: italic;
}

/* Footer Info & Quick Math Chips */
.cw-editor-footer-info {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 10px 14px;
}

.cw-quick-math-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.cw-quick-math-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cw-quick-math-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.chip-math {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 2px 10px;
    font-size: 0.82rem;
    color: #1e293b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    transition: all 0.15s ease;
}

.chip-math:hover {
    background: #ede9fe;
    border-color: #a78bfa;
    color: #6d28d9;
    transform: translateY(-1px);
}

.cw-editor-helper-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.4;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
}

.cw-editor-helper-tip code {
    background: #e2e8f0;
    padding: 1px 5px;
    border-radius: 4px;
    color: #0f172a;
    font-family: monospace;
}

/* Math Formula Modal Styles */
.math-cat-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.math-cat-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.math-cat-btn.active {
    background: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
}

.btn-math-symbol {
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 2px 4px;
}

.btn-math-symbol:hover {
    background: #f5f3ff;
    border-color: #c4b5fd;
    color: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.15);
}

/* ==========================================================================
   GOOGLE DRIVE PREVIEW HELPER BANNER & LIGHTBOX ADAPTATION
   ========================================================================== */
.doc-preview-container .doc-preview-body {
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 0% !important;
}

.doc-viewer-drive-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: linear-gradient(90deg, #064e3b 0%, #0f766e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    gap: 16px;
    flex-shrink: 0;
    box-sizing: border-box;
    animation: fadeIn 0.2s ease-in-out;
}

.doc-viewer-drive-banner .drive-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.doc-viewer-drive-banner .drive-banner-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #34d399;
    flex-shrink: 0;
}

.doc-viewer-drive-banner .drive-banner-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.doc-viewer-drive-banner .drive-banner-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #f0fdf4;
}

.doc-viewer-drive-banner .drive-banner-badge {
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #a7f3d0;
    padding: 1px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.doc-viewer-drive-banner .drive-banner-sub {
    font-size: 0.78rem;
    color: #ccfbf1;
    line-height: 1.35;
}

.doc-viewer-drive-banner .drive-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.doc-viewer-drive-banner .btn-drive-guide {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.doc-viewer-drive-banner .btn-drive-guide:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
}

.doc-viewer-drive-banner .btn-drive-open-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: #10b981;
    border: 1px solid #34d399;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease;
}

.doc-viewer-drive-banner .btn-drive-open-tab:hover {
    background: #059669;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .doc-viewer-drive-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 12px;
        gap: 8px;
    }
    .doc-viewer-drive-banner .drive-banner-actions {
        width: 100%;
        justify-content: flex-end;
    }
}



