* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
}

body {
    height: 100vh;
    overflow: hidden;
    background: var(--bg-body);
    position: relative;
    user-select: none;
    color: var(--text-primary);
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0%, transparent 40%);
    pointer-events: none;
}

/* ===== DESKTOP ===== */
.desktop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 48px;
    overflow: auto;
    padding: 20px;
}

.desktop-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    user-select: none;
}
.brand-logo {
    font-size: 120px;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.brand-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.brand-tagline {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ===== TASKBAR ===== */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--taskbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    padding: 0 8px;
    z-index: 1000;
    color: #fff;
}

html[dir="rtl"] .taskbar {
    direction: rtl;
}

.start-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.start-btn:hover { background: rgba(255,255,255,0.1); }
.start-btn i { font-size: 20px; }

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 6px 12px;
    margin-left: 4px;
    width: 280px;
    height: 32px;
    flex-shrink: 0;
}
.search-box i { color: #ccc; margin-right: 8px; font-size: 13px; }
.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    width: 100%;
}
.search-box input::placeholder { color: #aaa; }

.taskbar-apps {
    display: flex;
    margin-left: 8px;
    gap: 2px;
    flex-shrink: 0;
}
.taskbar-app {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
    transition: background 0.15s;
    text-decoration: none;
}
.taskbar-app:hover { background: rgba(255,255,255,0.1); }
.taskbar-app.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #0078d4;
    border-radius: 2px;
}
.taskbar-app i { font-size: 20px; }

.taskbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 8px;
    flex-shrink: 0;
}
.tray-icon { font-size: 14px; color: #ddd; cursor: pointer; }

.taskbar-clock {
    text-align: right;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.taskbar-clock:hover { background: rgba(255,255,255,0.1); }
.clock-time { font-weight: 600; font-size: 13px; }
.clock-date { font-size: 11px; color: #ddd; }

/* ============================================================
   START MENU — 3-column layout
   [icons] [tiles] [all apps]
   ============================================================ */

.start-menu {
    position: fixed;
    bottom: 56px;
    left: 8px;
    width: 900px;
    height: 640px;
    background: rgba(30, 30, 30, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    display: none;
    z-index: 999;
    color: #fff;
    transform-origin: bottom left;
    animation: startOpen 0.2s ease-out;
}
.start-menu.open { display: flex; }

@keyframes startOpen {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.start-menu-inner {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Left icon bar */
.start-left {
    width: 48px;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 4px;
    border-radius: 8px 0 0 8px;
    flex-shrink: 0;
}
.start-left-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    color: #ccc;
    font-size: 16px;
}
.start-left-icon:hover,
.start-left-icon.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.start-left-icon.active { border-left: 3px solid #0078d4; }

/* Middle panel — Pinned tiles */
.start-tiles-panel {
    flex: 0 0 500px;
    padding: 20px 20px 20px 24px;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.start-tiles-panel h3 {
    font-size: 13px;
    font-weight: 400;
    color: #ccc;
    margin-bottom: 12px;
}

.start-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.tile {
    background: #0078d4;
    padding: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 90px;
    color: #fff;
    text-decoration: none;
}
.tile:hover { transform: scale(1.03); filter: brightness(1.15); color: #fff; }
.tile i { font-size: 22px; margin-bottom: 8px; }
.tile span { font-size: 12px; font-weight: 500; }
.tile.blue { background: #0078d4; }
.tile.green { background: #107c10; }
.tile.orange { background: #d83b01; }
.tile.purple { background: #8764b8; }
.tile.teal { background: #038387; }
.tile.dark { background: #333; }

/* Right panel — All apps */
.start-allapps-panel {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}
.start-allapps-panel h3 {
    font-size: 13px;
    font-weight: 400;
    color: #ccc;
    margin-bottom: 12px;
}

.start-apps-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.start-app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s;
}
.start-app-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.start-app-item i {
    width: 18px;
    text-align: center;
    color: #4fc3f7;
    font-size: 14px;
}

/* RTL support for the start menu */
html[dir="rtl"] .start-menu {
    left: auto;
    right: 8px;
    transform-origin: bottom right;
    direction: rtl;
}

html[dir="rtl"] .start-left {
    border-radius: 0 8px 8px 0;
}

html[dir="rtl"] .start-tiles-panel {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.06);
}

html[dir="rtl"] .start-left-icon.active {
    border-left: none;
    border-right: 3px solid #0078d4;
}

html[dir="rtl"] .start-tiles-panel h3,
html[dir="rtl"] .start-allapps-panel h3 {
    text-align: right;
}

html[dir="rtl"] .tile {
    text-align: right;
}

html[dir="rtl"] .start-app-item {
    flex-direction: row;
}

/* ===== WINDOWS ===== */
.window {
    position: absolute;
    background: var(--bg-window);
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    /* Default — fullscreen (maximized) */
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - 48px);
    max-width: none;
    max-height: none;
}

.window-titlebar {
    height: 32px;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 12px;
    cursor: move;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.window-title {
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-title i {
    color: #0078d4;
    font-size: 14px;
}

.window-controls {
    display: flex;
    height: 100%;
}

.window-controls button {
    width: 46px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    color: #333;
    transition: background 0.15s;
    position: relative;
    font-family: 'Segoe UI Symbol', Arial, sans-serif;
}

.window-controls button:hover {
    background: #e5e5e5;
}

.window-controls .close:hover {
    background: #e81123;
    color: #fff;
}

.window-body {
    flex: 1;
    background: var(--bg-window-body);
    overflow-y: auto;
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: #0078d4;
    box-shadow: 0 0 0 0.15rem rgba(0, 120, 212, 0.25);
}


.form-control,
.form-select,
.form-check-input {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

    .form-control::placeholder {
        color: var(--text-muted);
    }
/* ===== COURSE CARDS ===== */
.course-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.course-thumb {
    height: 130px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.course-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
}

.course-badge.preview {
    background: #06b6d4;
}

.course-mode-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
}

.course-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.35;
    min-height: 40px;
}

.course-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

.course-meta i {
    color: #0078d4;
    margin-right: 4px;
}

.course-price {
    font-size: 18px;
    font-weight: 800;
    color: #0078d4;
}

.btn-brand {
    background: #0078d4;
    color: #fff;
    border: none;
    font-weight: 600;
}

.btn-brand:hover {
    background: #005a9e;
    color: #fff;
}

/* ===== HOME CARD ===== */
.home-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px 60px;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 480px;
    max-width: 90vw;
}

.home-card h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.home-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
}

.home-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    cursor: pointer;
}

.home-btn.primary {
    background: #0078d4;
    color: #fff;
}

.home-btn.primary:hover {
    background: #005a9e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 120, 212, 0.4);
}

.home-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.home-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    height: 28px;
}

.lang-btn {
    padding: 0 12px;
    display: flex;
    align-items: center;
    color: #ddd;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.lang-btn.active {
    background: #0078d4;
    color: #fff;
}

/* ===== TASKBAR USER AREA ===== */
.taskbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
}

.taskbar-user:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #0078d4, #005a9e);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.taskbar-signout-btn {
    background: rgba(232, 17, 35, 0.15);
    border: 1px solid rgba(232, 17, 35, 0.4);
    color: #ff6b6b;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.taskbar-signout-btn:hover {
    background: #e81123;
    border-color: #e81123;
    color: #fff;
}

.taskbar-login-btn {
    background: #0078d4;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.taskbar-login-btn:hover {
    background: #005a9e;
    color: #fff;
}

/* ===== MINIMIZED TASKBAR ENTRY ===== */
.taskbar-app.minimized-entry {
    background: rgba(0, 120, 212, 0.2);
    border: 1px solid rgba(0, 120, 212, 0.4);
    animation: pulseEntry 0.3s ease-in;
}

.taskbar-app.minimized-entry:hover {
    background: rgba(0, 120, 212, 0.35);
}

@keyframes pulseEntry {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== PROFILE PAGE ===== */
.profile-avatar-large {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #0078d4, #005a9e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

/* ===== SETTINGS PAGE (4 columns) ===== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

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

@media (max-width: 900px) {
    .settings-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .settings-grid { grid-template-columns: 1fr; }
}

.settings-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.15s;
    min-height: 92px;
}

.settings-card:hover {
    background: #fff;
    border-color: #0078d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 212, 0.15);
    color: #1e293b;
    text-decoration: none;
}

.settings-card i {
    font-size: 22px;
    color: #0078d4;
    flex-shrink: 0;
    margin-top: 2px;
}

.settings-card div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.settings-card strong {
    font-size: 13px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-card span {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.35;
}

/* ===== AUTH PAGES ===== */
.desktop-auth {
    bottom: 0;
}

body.auth-body {
    background: linear-gradient(135deg, #1a2235 0%, #0f1520 100%);
    overflow: hidden;
}

/* ===== FULL-PAGE LOGIN SCREEN ===== */
.login-screen {
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 50, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 120, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 90, 158, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.login-screen-lang {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    z-index: 10;
}

.login-screen-lang a {
    color: #ddd;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    transition: background 0.15s;
}

.login-screen-lang a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.login-screen-lang a.active {
    background: #0078d4;
    color: #fff;
}

.login-screen-card {
    position: relative;
    z-index: 2;
    background: rgba(50, 60, 80, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 40px 48px 32px;
    width: 460px;
    max-width: calc(100vw - 40px);
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.login-screen-avatar {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 22px;
}

.login-screen-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #fff;
}

.login-screen-error {
    background: rgba(232, 17, 35, 0.15);
    border: 1px solid rgba(232, 17, 35, 0.4);
    color: #ff9c9c;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-align: left;
}

.login-screen-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-screen-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

.login-screen-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-screen-input:focus {
    border-color: #0078d4;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.25);
}

.login-screen-btn {
    width: 100%;
    background: #0078d4;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}

.login-screen-btn:hover {
    background: #106ebe;
}

.login-screen-btn:active {
    background: #005a9e;
}

.login-screen-footer {
    margin-top: 22px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.login-screen-footer a {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 600;
}

.login-screen-footer a:hover {
    text-decoration: underline;
}

/* ===== RTL SUPPORT (taskbar, windows, misc) ===== */
html[dir="rtl"] .taskbar-right {
    margin-left: 0;
    margin-right: auto;
    padding-left: 8px;
    padding-right: 0;
}

html[dir="rtl"] .search-box {
    margin-left: 0;
    margin-right: 4px;
}

html[dir="rtl"] .search-box i {
    margin-right: 0;
    margin-left: 8px;
}

html[dir="rtl"] .taskbar-apps {
    margin-left: 0;
    margin-right: 8px;
}

html[dir="rtl"] .taskbar-clock {
    text-align: left;
}

html[dir="rtl"] .window-titlebar {
    padding: 0 12px 0 0;
    flex-direction: row-reverse;
}

html[dir="rtl"] .window-controls {
    flex-direction: row-reverse;
}

html[dir="rtl"] .course-meta i {
    margin-right: 0;
    margin-left: 4px;
}

html[dir="rtl"] .course-badge {
    left: auto;
    right: 10px;
}

html[dir="rtl"] .course-mode-badge {
    right: auto;
    left: 10px;
}

html[dir="rtl"] .settings-card {
    flex-direction: row-reverse;
    text-align: right;
}

/* ===== Comments Section ===== */
#comments-section textarea {
    border-radius: 8px;
    resize: vertical;
    font-size: 14px;
}

#comments-section textarea:focus {
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}

#comments-section .btn-brand {
    border-radius: 6px;
}

/* ===== 5-column course grid ===== */
@media (min-width: 992px) {
    .col-five-cols {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .col-five-cols .course-card .course-thumb {
        height: 100px;
    }

    .col-five-cols .course-card .course-title {
        font-size: 13px;
        min-height: 34px;
        line-height: 1.3;
    }

    .col-five-cols .course-card .course-desc {
        font-size: 11px;
        min-height: 30px;
        -webkit-line-clamp: 2;
        margin-bottom: 8px;
    }

    .col-five-cols .course-card .course-body {
        padding: 10px;
        display: flex;
        flex-direction: column;
    }

    .col-five-cols .course-card .course-meta {
        font-size: 10px;
        gap: 8px;
        margin-bottom: 8px;
    }

    .col-five-cols .course-card .course-price {
        font-size: 14px;
    }

    .col-five-cols .course-card .btn {
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* ============================================================
   CERTIFICATE CARDS (My Certificates page)
   ============================================================ */

.certificate-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .certificate-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    }

.certificate-cover {
    height: 130px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-badge {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.certificate-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(16, 185, 129, 0.95);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.certificate-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.certificate-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.35;
    min-height: 40px;
}

.certificate-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.certificate-code-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    color: #475569;
    margin-bottom: 8px;
    align-self: flex-start;
}

    .certificate-code-chip i {
        color: #0078d4;
    }

    .certificate-code-chip code {
        font-family: 'Courier New', monospace;
        font-weight: 600;
        color: #1e293b;
    }

.certificate-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: auto;
}


/* ============================================================
   TASKBAR NOTIFICATION BELL
   ============================================================ */

.taskbar-bell {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #ddd;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.15s, color 0.15s;
}

    .taskbar-bell:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

.bell-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    background: #e81123;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid rgba(20, 20, 20, 0.85);
    animation: bellPulse 2s infinite;
}

@keyframes bellPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* ============================================================
   NOTIFICATIONS PAGE
   ============================================================ */

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.15s;
    text-decoration: none;
    color: inherit;
}

    .notification-item:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
        transform: translateX(4px);
        color: inherit;
        text-decoration: none;
    }

    .notification-item.unread {
        background: #f0f9ff;
        border-left: 4px solid #0078d4;
    }

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

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

.notification-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 6px;
}

.notification-time {
    font-size: 11px;
    color: #94a3b8;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: #0078d4;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 18px;
}
/* ============================================================
   ADMIN DASHBOARD — Professional Layout
   ============================================================ */

.dash-hero {
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    color: #fff;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.dash-hero-left h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-hero-left p {
    margin: 0;
    font-size: 13px;
    opacity: 0.85;
}

.dash-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dash-hero-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.15s, transform 0.15s;
}

    .dash-hero-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        color: #fff;
        transform: translateY(-1px);
    }

.dash-container {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== STAT CARDS ===== */
.dash-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

@media (max-width: 1400px) {
    .dash-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .dash-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .dash-cards {
        grid-template-columns: 1fr;
    }
}

.dash-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    border: 1px solid #e5e7eb;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    overflow: hidden;
}

    .dash-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
    }

    .dash-card.stat-blue::before {
        background: linear-gradient(90deg, #0078d4, #005a9e);
    }

    .dash-card.stat-green::before {
        background: linear-gradient(90deg, #10b981, #059669);
    }

    .dash-card.stat-purple::before {
        background: linear-gradient(90deg, #8764b8, #6d28d9);
    }

    .dash-card.stat-orange::before {
        background: linear-gradient(90deg, #f59e0b, #d97706);
    }

    .dash-card.stat-gold::before {
        background: linear-gradient(90deg, #f39c12, #d68910);
    }

    .dash-card.stat-teal::before {
        background: linear-gradient(90deg, #038387, #0d5c63);
    }

    .dash-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    }

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

.dash-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.stat-blue .dash-card-icon {
    background: linear-gradient(135deg, #0078d4, #005a9e);
}

.stat-green .dash-card-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-purple .dash-card-icon {
    background: linear-gradient(135deg, #8764b8, #6d28d9);
}

.stat-orange .dash-card-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-gold .dash-card-icon {
    background: linear-gradient(135deg, #f39c12, #d68910);
}

.stat-teal .dash-card-icon {
    background: linear-gradient(135deg, #038387, #0d5c63);
}

.dash-card-trend {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

    .dash-card-trend.up {
        background: rgba(16, 185, 129, 0.12);
        color: #059669;
    }

.dash-card-value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.5px;
}

.dash-card-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.dash-card-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
    line-height: 1.4;
}

/* ===== 2-COLUMN PANEL GRID ===== */
.dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .dash-grid-2 {
        grid-template-columns: 1fr;
    }
}

.dash-panel {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dash-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.dash-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .dash-panel-title > i {
        color: #0078d4;
        font-size: 18px;
        width: 32px;
        height: 32px;
        background: #f0f9ff;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.dash-panel-title-main {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.dash-panel-title-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.dash-panel-link {
    font-size: 12px;
    color: #0078d4;
    font-weight: 600;
    text-decoration: none;
}

    .dash-panel-link:hover {
        text-decoration: underline;
    }

/* ===== BAR CHART ===== */
.dash-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    height: 200px;
    padding-top: 20px;
}

.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.chart-value {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    white-space: nowrap;
}

.chart-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 4px;
}

.chart-bar {
    width: 100%;
    max-width: 44px;
    border-radius: 8px 8px 2px 2px;
    transition: height 0.4s ease, filter 0.15s;
    min-height: 6px;
}

    .chart-bar:hover {
        filter: brightness(1.1);
    }

.bar-blue {
    background: linear-gradient(180deg, #0078d4, #005a9e);
}

.bar-green {
    background: linear-gradient(180deg, #10b981, #059669);
}

.chart-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== TOP COURSES ===== */
.top-course-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    border-bottom: 1px solid #f1f5f9;
}

    .top-course-row:last-child {
        border-bottom: none;
    }

    .top-course-row:hover {
        background: #f8fafc;
        color: inherit;
        text-decoration: none;
    }

.top-course-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.top-course-info {
    flex: 1;
    min-width: 0;
}

.top-course-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.top-course-sub {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    gap: 12px;
}

    .top-course-sub i {
        color: #0078d4;
        margin-right: 2px;
    }

.top-course-arrow {
    color: #cbd5e1;
    font-size: 12px;
}

/* ===== ACTIVITY FEED ===== */
.activity-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 8px;
    border-bottom: 1px solid #f1f5f9;
}

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

.activity-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
}

.act-blue {
    background: linear-gradient(135deg, #0078d4, #005a9e);
}

.act-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.act-gold {
    background: linear-gradient(135deg, #f39c12, #d68910);
}

.act-gray {
    background: #94a3b8;
}

.activity-body {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
}

.activity-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ===== EMPTY STATE ===== */
.dash-empty {
    text-align: center;
    padding: 30px 10px;
    color: #94a3b8;
}

    .dash-empty i {
        font-size: 36px;
        opacity: 0.4;
        margin-bottom: 8px;
        display: block;
    }

    .dash-empty p {
        margin: 0;
        font-size: 13px;
    }

/* ===== MINI STATS GRID ===== */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 700px) {
    .mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mini-card {
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid transparent;
}

.mini-blue {
    background: #eff6ff;
    border-color: #dbeafe;
}

.mini-green {
    background: #ecfdf5;
    border-color: #d1fae5;
}

.mini-purple {
    background: #f5f3ff;
    border-color: #e9d5ff;
}

.mini-orange {
    background: #fff7ed;
    border-color: #fed7aa;
}

.mini-value {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.mini-blue .mini-value {
    color: #1d4ed8;
}

.mini-green .mini-value {
    color: #059669;
}

.mini-purple .mini-value {
    color: #6d28d9;
}

.mini-orange .mini-value {
    color: #c2410c;
}

.mini-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 6px;
}
/* Cards */
.dash-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    height: 100%;
}

.dash-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .dash-card-title i {
        color: #0078d4;
    }

/* Bar chart */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 180px;
    padding-top: 20px;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}

.bar-value {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.bar-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bar {
    width: 70%;
    max-width: 42px;
    border-radius: 6px 6px 0 0;
    transition: height 0.3s ease;
    min-height: 4px;
}

.bar-blue {
    background: linear-gradient(180deg, #0078d4, #005a9e);
}

.bar-green {
    background: linear-gradient(180deg, #10b981, #059669);
}

.bar-label {
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
    font-weight: 500;
}

/* Top courses */
.top-course-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .top-course-item:last-child {
        border-bottom: none;
    }

.top-course-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.top-course-info {
    flex: 1;
    min-width: 0;
}

.top-course-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-course-sub {
    font-size: 11px;
    color: #94a3b8;
}

/* Activity feed */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.activity-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 13px;
    flex-shrink: 0;
}

.activity-text {
    flex: 1;
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
}

/* Mini stats */
.mini-stat {
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.mini-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #0078d4;
}

.mini-stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 2px;
}

/* ============================================================
   EVENTS — Public pages
   ============================================================ */

.event-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .event-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    }

.event-cover {
    height: 130px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px;
}

.event-date-badge {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-day-num {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.event-month {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

.event-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-live-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e81123;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.event-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.35;
    min-height: 40px;
}

.event-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

    .event-meta i {
        color: #0078d4;
        margin-right: 4px;
    }

.event-price {
    font-size: 18px;
    font-weight: 800;
    color: #0078d4;
}

/* Past events */
.past-event-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

    .past-event-card:hover {
        background: #fff;
        color: inherit;
        text-decoration: none;
    }

.past-event-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    opacity: 0.7;
    flex-shrink: 0;
}

.past-event-info {
    flex: 1;
    min-width: 0;
}

.past-event-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.past-event-date {
    font-size: 11px;
    color: #94a3b8;
}

/* Event details info chips */
.event-info-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 140px;
}

    .event-info-chip > i {
        font-size: 18px;
        color: #0078d4;
        width: 24px;
        text-align: center;
    }

.event-info-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.event-info-value {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.event-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

    .event-status-pill.upcoming {
        background: #eff6ff;
        color: #1d4ed8;
    }

    .event-status-pill.live {
        background: #fee2e2;
        color: #b91c1c;
        animation: livePulse 1.5s infinite;
    }

    .event-status-pill.past {
        background: #f1f5f9;
        color: #64748b;
    }
/* ===== Compact event cards for 5-column view ===== */
@media (min-width: 992px) {
    .col-five-cols .event-card .event-cover {
        height: 110px;
    }

    .col-five-cols .event-card .event-date-badge {
        padding: 8px 12px;
    }

    .col-five-cols .event-card .event-day-num {
        font-size: 22px;
    }

    .col-five-cols .event-card .event-month {
        font-size: 10px;
    }

    .col-five-cols .event-card .event-type-badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    .col-five-cols .event-card .event-live-badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    .col-five-cols .event-card .event-body {
        padding: 12px;
    }

    .col-five-cols .event-card .event-title {
        font-size: 13px;
        min-height: 34px;
        line-height: 1.3;
    }

    .col-five-cols .event-card .event-desc {
        font-size: 11px;
        min-height: 28px;
        -webkit-line-clamp: 2;
        margin-bottom: 8px;
    }

    .col-five-cols .event-card .event-meta {
        font-size: 10px;
        gap: 6px;
        margin-bottom: 4px;
        flex-direction: column;
        align-items: flex-start;
    }

    .col-five-cols .event-card .event-price {
        font-size: 14px;
    }

    .col-five-cols .event-card .btn {
        font-size: 11px;
        padding: 5px 8px;
    }

    .col-five-cols .event-card .badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    .col-five-cols .past-event-card {
        flex-direction: column;
        text-align: center;
        padding: 10px;
        gap: 8px;
    }

    .col-five-cols .past-event-thumb {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .col-five-cols .past-event-title {
        font-size: 12px;
        white-space: normal;
    }

    .col-five-cols .past-event-date {
        font-size: 10px;
    }
}
/* ============================================================
   STAR RATING
   ============================================================ */

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

    .star-rating input {
        display: none;
    }

    .star-rating label {
        font-size: 32px;
        color: #d1d5db;
        cursor: pointer;
        transition: color 0.15s, transform 0.15s;
        line-height: 1;
    }

        .star-rating label:hover,
        .star-rating label:hover ~ label,
        .star-rating input:checked ~ label {
            color: #f59e0b;
        }

        .star-rating label:hover {
            transform: scale(1.15);
        }


/* ============================================================
   SEARCH RESULTS
   ============================================================ */

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
}

    .search-result-item:hover {
        background: #f8fafc;
        border-color: #0078d4;
        transform: translateX(4px);
        color: inherit;
        text-decoration: none;
    }

.search-result-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}

.search-result-thumb-avatar {
    background: linear-gradient(135deg, #0078d4, #005a9e);
    font-size: 20px;
    font-weight: 700;
}

.search-result-body {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

    .search-result-meta i {
        color: #0078d4;
        margin-right: 3px;
    }

.search-result-arrow {
    color: #cbd5e1;
    font-size: 12px;
}

/* ============================================================
   THEME VARIABLES — Light (default) & Dark
   ============================================================ */

:root {
    /* Brand */
    --brand-primary: #0078d4;
    --brand-primary-dark: #005a9e;
    --brand-success: #10b981;
    --brand-warning: #f59e0b;
    --brand-danger: #ef4444;
    /* Backgrounds */
    --bg-body: linear-gradient(135deg, #0078d4 0%, #005a9e 50%, #003d6b 100%);
    --bg-window: #ffffff;
    --bg-window-body: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    /* Borders */
    --border-color: #e5e7eb;
    --border-color-strong: #d1d5db;
    /* Taskbar */
    --taskbar-bg: rgba(20, 20, 20, 0.85);
    --taskbar-text: #ffffff;
    /* Cards */
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06);
    /* Transitions */
    --theme-transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

html[data-theme="dark"] {
    --bg-body: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0a0f1e 100%);
    --bg-window: #1e293b;
    --bg-window-body: #1e293b;
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;
    --border-color: #334155;
    --border-color-strong: #475569;
    --taskbar-bg: rgba(0, 0, 0, 0.92);
    --card-bg: #1e293b;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Smooth theme transition */
body,
.window,
.window-body,
.window-titlebar,
.card,
.dash-card,
.dash-panel,
table,
.taskbar,
.taskbar-right,
.search-box,
.start-menu,
.form-control,
.form-select {
    transition: var(--theme-transition);
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .theme-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }

    .theme-toggle i {
        transition: transform 0.4s ease;
    }

    .theme-toggle:active i {
        transform: rotate(180deg);
    }

/* Dark mode: switch color-specific backgrounds */
html[data-theme="dark"] .dash-card,
html[data-theme="dark"] .dash-panel {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

html[data-theme="dark"] .dash-card-value,
html[data-theme="dark"] .dash-card-label,
html[data-theme="dark"] .dash-panel-title-main {
    color: var(--text-primary);
}

html[data-theme="dark"] .dash-card-label,
html[data-theme="dark"] .dash-panel-title-sub {
    color: var(--text-muted);
}

html[data-theme="dark"] table thead {
    background: #334155 !important;
    color: var(--text-primary);
}

html[data-theme="dark"] table tbody tr:hover {
    background: #334155 !important;
}

html[data-theme="dark"] .settings-card {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

    html[data-theme="dark"] .settings-card:hover {
        background: var(--bg-tertiary);
        border-color: var(--brand-primary);
        color: var(--text-primary);
    }

    html[data-theme="dark"] .settings-card strong {
        color: var(--text-primary);
    }

    html[data-theme="dark"] .settings-card span {
        color: var(--text-muted);
    }

html[data-theme="dark"] .event-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

html[data-theme="dark"] .event-title {
    color: var(--text-primary);
}

html[data-theme="dark"] .event-desc,
html[data-theme="dark"] .event-meta {
    color: var(--text-muted);
}

html[data-theme="dark"] .certificate-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

html[data-theme="dark"] .certificate-title {
    color: var(--text-primary);
}

html[data-theme="dark"] .certificate-desc,
html[data-theme="dark"] .certificate-meta {
    color: var(--text-muted);
}

html[data-theme="dark"] .certificate-code-chip {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

    html[data-theme="dark"] .certificate-code-chip code {
        color: var(--text-primary);
    }

html[data-theme="dark"] .review-item,
html[data-theme="dark"] .notification-item {
    background: var(--card-bg);
    border-color: var(--border-color);
}

    html[data-theme="dark"] .notification-item.unread {
        background: #1e3a5f;
    }

html[data-theme="dark"] .notification-title {
    color: var(--text-primary);
}

html[data-theme="dark"] .notification-message,
html[data-theme="dark"] .notification-time {
    color: var(--text-muted);
}

html[data-theme="dark"] .search-result-item {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

    html[data-theme="dark"] .search-result-item:hover {
        background: var(--bg-tertiary);
        color: var(--text-primary);
    }

html[data-theme="dark"] .search-result-title {
    color: var(--text-primary);
}

html[data-theme="dark"] .search-result-meta {
    color: var(--text-muted);
}

html[data-theme="dark"] .start-menu {
    background: rgba(15, 23, 42, 0.95);
}

html[data-theme="dark"] .window-titlebar {
    background: #334155;
    border-bottom-color: #475569;
}

html[data-theme="dark"] .window-title {
    color: #f1f5f9;
}

html[data-theme="dark"] .window-controls button {
    color: #cbd5e1;
}

    html[data-theme="dark"] .window-controls button:hover {
        background: rgba(255, 255, 255, 0.1);
    }

html[data-theme="dark"] .home-card {
    background: rgba(30, 41, 59, 0.85);
}

html[data-theme="dark"] .brand-title,
html[data-theme="dark"] .brand-tagline {
    color: rgba(255, 255, 255, 0.3);
}

html[data-theme="dark"] .event-info-chip {
    background: var(--bg-secondary);
}

html[data-theme="dark"] .event-info-value {
    color: var(--text-primary);
}

/* ============================================================
   BUNDLE COURSE ROW
   ============================================================ */

.bundle-course-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
}

    .bundle-course-row:hover {
        background: #f8fafc;
        border-color: #0078d4;
        transform: translateX(4px);
        color: inherit;
        text-decoration: none;
    }

.bundle-course-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}

.bundle-course-info {
    flex: 1;
    min-width: 0;
}

.bundle-course-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bundle-course-meta {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}

    .bundle-course-meta i {
        color: #0078d4;
        margin-right: 3px;
    }

.bundle-course-desc {
    font-size: 11px;
    color: #94a3b8;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}