/* ═══════════════════════════════════════════════════
   Azhar LMS — Premium Design System v2
   Modern, clean, with subtle depth and elegance
   ═══════════════════════════════════════════════════ */

:root {
    --az-primary: #6366f1;
    --az-primary-light: #818cf8;
    --az-primary-dark: #4f46e5;
    --az-primary-50: #eef2ff;
    --az-primary-100: #e0e7ff;
    --az-primary-200: #c7d2fe;
    --az-secondary: #06b6d4;
    --az-secondary-dark: #0891b2;
    --az-emerald: #10b981;
    --az-emerald-dark: #059669;
    --az-amber: #f59e0b;
    --az-rose: #f43f5e;
    --az-danger: #ef4444;

    --az-bg: #f8fafc;
    --az-bg-card: #ffffff;
    --az-sidebar-bg: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
    --az-sidebar-hover: rgba(255,255,255,0.08);
    --az-sidebar-active: rgba(255,255,255,0.15);

    --az-text: #0f172a;
    --az-text-secondary: #64748b;
    --az-text-light: #94a3b8;
    --az-border: #e2e8f0;
    --az-border-light: #f1f5f9;

    --az-radius: 16px;
    --az-radius-sm: 10px;
    --az-radius-lg: 20px;
    --az-radius-xl: 24px;

    --az-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --az-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --az-shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
    --az-shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --az-shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.06);
    --az-shadow-primary: 0 8px 24px rgba(99,102,241,0.25);
    --az-shadow-success: 0 8px 24px rgba(16,185,129,0.25);

    --az-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --az-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Noto Kufi Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--az-bg);
    color: var(--az-text);
    min-height: 100vh;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ═══ LAYOUT ═══ */
.az-layout { display: flex; min-height: 100vh; }

/* ─── Sidebar ─── */
.az-sidebar {
    width: 270px;
    background: var(--az-sidebar-bg);
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.az-sidebar::-webkit-scrollbar { width: 4px; }
.az-sidebar::-webkit-scrollbar-track { background: transparent; }
.az-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.az-sidebar-brand {
    padding: 1.5rem 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.az-sidebar-brand .brand-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: #fff;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.az-sidebar-brand .brand-text {
    font-size: 1.1rem; font-weight: 700; color: #fff;
    text-decoration: none; letter-spacing: -0.01em;
}

.az-sidebar-nav { padding: 0.75rem 0; flex: 1; }

.az-nav-section { padding: 0 0.75rem; margin-bottom: 0.25rem; }

.az-nav-section-title {
    font-size: 0.65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    padding: 0.75rem 0.85rem 0.4rem;
    margin: 0;
}

.az-nav-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    border-radius: var(--az-radius-sm);
    margin-bottom: 1px;
    font-size: 0.85rem;
    transition: var(--az-transition-fast);
    position: relative;
}

.az-nav-link:hover {
    background: var(--az-sidebar-hover);
    color: #fff;
}

.az-nav-link.active {
    background: var(--az-sidebar-active);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.az-nav-link i {
    font-size: 1.05rem; width: 1.4rem; text-align: center;
    opacity: 0.7; transition: var(--az-transition-fast);
}
.az-nav-link.active i, .az-nav-link:hover i { opacity: 1; }

.az-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.az-user-card {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--az-radius-sm);
    color: rgba(255,255,255,0.7);
    transition: var(--az-transition-fast);
}
.az-user-card:hover { background: var(--az-sidebar-hover); color: #fff; }

.az-user-avatar {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--az-primary-light), var(--az-secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; color: #fff; font-weight: 700;
    flex-shrink: 0;
}

.az-user-name {
    font-size: 0.82rem; font-weight: 600; color: #f1f5f9;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.az-user-role { font-size: 0.68rem; color: rgba(255,255,255,0.4); }

/* ─── Main Content ─── */
.az-main {
    flex: 1;
    margin-right: 270px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.az-topbar {
    height: 64px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--az-border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.75rem;
    position: sticky; top: 0; z-index: 1030;
}

.az-topbar-title {
    font-size: 1rem; font-weight: 700;
    color: var(--az-text); margin: 0;
}

.az-topbar-actions { display: flex; align-items: center; gap: 0.75rem; }

.az-content {
    flex: 1; padding: 1.75rem;
    max-width: 1400px; width: 100%; margin: 0 auto;
}

.az-sidebar-toggle {
    display: none; background: none; border: none;
    font-size: 1.4rem; color: var(--az-text);
    cursor: pointer; padding: 0.25rem;
}

.az-sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 1035;
    backdrop-filter: blur(4px);
}

/* ═══ CARDS ═══ */
.az-card {
    background: var(--az-bg-card);
    border-radius: var(--az-radius);
    border: 1px solid var(--az-border);
    box-shadow: var(--az-shadow);
    overflow: hidden;
    transition: var(--az-transition);
}

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

.az-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--az-border-light);
    display: flex; align-items: center; justify-content: space-between;
}

.az-card-header h5, .az-card-header h4, .az-card-header h3 { margin: 0; font-weight: 700; }

.az-card-body { padding: 1.25rem; }

.az-card-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--az-border-light);
    background: linear-gradient(180deg, #fafbfc, #f8fafc);
}

/* ═══ STAT CARDS ═══ */
.az-stat-card {
    background: var(--az-bg-card);
    border-radius: var(--az-radius);
    border: 1px solid var(--az-border);
    padding: 1.25rem;
    display: flex; align-items: center; gap: 1rem;
    box-shadow: var(--az-shadow);
    transition: var(--az-transition);
    position: relative;
    overflow: hidden;
}

.az-stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    opacity: 0.04;
    transform: translate(20px, -20px);
}

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

.az-stat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}

.az-stat-icon.indigo { background: var(--az-primary-50); color: var(--az-primary); }
.az-stat-icon.blue   { background: #ecfeff; color: var(--az-secondary); }
.az-stat-icon.green  { background: #ecfdf5; color: var(--az-emerald); }
.az-stat-icon.amber  { background: #fffbeb; color: var(--az-amber); }
.az-stat-icon.red    { background: #fff1f2; color: var(--az-rose); }

.az-stat-card.indigo::after { background: var(--az-primary); }
.az-stat-card.blue::after   { background: var(--az-secondary); }
.az-stat-card.green::after  { background: var(--az-emerald); }
.az-stat-card.amber::after  { background: var(--az-amber); }

.az-stat-value { font-size: 1.6rem; font-weight: 800; color: var(--az-text); line-height: 1.2; }
.az-stat-label { font-size: 0.78rem; color: var(--az-text-secondary); margin-top: 2px; }

/* ═══ COURSE CARDS ═══ */
.az-course-card {
    background: var(--az-bg-card);
    border-radius: var(--az-radius);
    border: 1px solid var(--az-border);
    box-shadow: var(--az-shadow);
    overflow: hidden;
    transition: var(--az-transition);
    height: 100%;
    display: flex; flex-direction: column;
}

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

.az-course-img { height: 170px; object-fit: cover; width: 100%; }

.az-course-img-placeholder {
    height: 170px;
    background: linear-gradient(135deg, var(--az-primary) 0%, var(--az-secondary) 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}

.az-course-img-placeholder::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.az-course-img-placeholder i { font-size: 2.8rem; color: rgba(255,255,255,0.5); z-index: 1; }

.az-course-body {
    padding: 1.15rem 1.25rem;
    flex: 1; display: flex; flex-direction: column;
}

.az-course-title {
    font-size: 0.95rem; font-weight: 700;
    margin-bottom: 0.4rem; color: var(--az-text);
    line-height: 1.5;
}

.az-course-desc {
    font-size: 0.78rem; color: var(--az-text-secondary);
    margin-bottom: 0.75rem; line-height: 1.7; flex: 1;
}

.az-course-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.75rem; }

.az-course-stats {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.78rem; color: var(--az-text-secondary);
}

.az-course-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--az-border-light);
    background: linear-gradient(180deg, #fafbfc, #f8fafc);
}

/* ═══ BADGES ═══ */
.az-badge {
    display: inline-flex; align-items: center; gap: 0.2rem;
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
    font-size: 0.7rem; font-weight: 600;
    line-height: 1.5;
}

.az-badge-primary { background: var(--az-primary-50); color: var(--az-primary-dark); }
.az-badge-green   { background: #ecfdf5; color: #047857; }
.az-badge-amber   { background: #fffbeb; color: #b45309; }
.az-badge-red     { background: #fff1f2; color: #be123c; }
.az-badge-gray    { background: #f1f5f9; color: #475569; }
.az-badge-cyan    { background: #ecfeff; color: #0e7490; }

/* ═══ BUTTONS ═══ */
.az-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1.35rem;
    border-radius: var(--az-radius-sm);
    font-size: 0.85rem; font-weight: 600;
    border: none; cursor: pointer;
    transition: var(--az-transition);
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

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

.az-btn-primary {
    background: var(--az-primary); color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}
.az-btn-primary:hover {
    background: var(--az-primary-dark); color: #fff;
    box-shadow: var(--az-shadow-primary);
    transform: translateY(-1px);
}

.az-btn-success {
    background: var(--az-emerald); color: #fff;
    box-shadow: 0 2px 8px rgba(16,185,129,0.2);
}
.az-btn-success:hover {
    background: var(--az-emerald-dark); color: #fff;
    box-shadow: var(--az-shadow-success);
    transform: translateY(-1px);
}

.az-btn-outline {
    background: transparent;
    border: 1.5px solid var(--az-border);
    color: var(--az-text);
}
.az-btn-outline:hover {
    background: var(--az-bg);
    border-color: var(--az-primary-200);
    color: var(--az-primary);
}

.az-btn-ghost {
    background: transparent; color: var(--az-text-secondary); border: none;
}
.az-btn-ghost:hover { background: var(--az-primary-50); color: var(--az-primary); }

.az-btn-sm { padding: 0.4rem 0.9rem; font-size: 0.78rem; border-radius: 8px; }
.az-btn-lg { padding: 0.7rem 1.85rem; font-size: 0.95rem; }

/* ═══ FORMS ═══ */
.az-form-label {
    display: block; font-size: 0.78rem; font-weight: 700;
    color: var(--az-text); margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.form-control, .form-select {
    border: 1.5px solid var(--az-border);
    border-radius: var(--az-radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0.55rem 0.9rem;
    color: var(--az-text);
    transition: var(--az-transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--az-primary-light);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
    outline: none;
}

.form-check-input:checked {
    background-color: var(--az-primary);
    border-color: var(--az-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
    border-color: var(--az-primary-light);
}

/* ═══ ALERTS ═══ */
.az-alert {
    padding: 0.85rem 1.15rem;
    border-radius: var(--az-radius-sm);
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.84rem; margin-bottom: 1rem;
    font-weight: 500;
}

.az-alert-info    { background: var(--az-primary-50); color: var(--az-primary-dark); border: 1px solid var(--az-primary-100); }
.az-alert-success { background: #ecfdf5; color: #047857; border: 1px solid #d1fae5; }
.az-alert-warning { background: #fffbeb; color: #b45309; border: 1px solid #fef3c7; }
.az-alert-error,
.az-alert-danger  { background: #fff1f2; color: #be123c; border: 1px solid #ffe4e6; }

/* ═══ SECTION HEADER ═══ */
.az-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem;
}

.az-section-title {
    font-size: 1.1rem; font-weight: 800;
    color: var(--az-text); margin: 0;
    display: flex; align-items: center; gap: 0.5rem;
}

.az-section-title i { color: var(--az-primary); font-size: 1.15rem; }

/* ═══ EMPTY STATE ═══ */
.az-empty { text-align: center; padding: 3.5rem 2rem; }

.az-empty i {
    font-size: 3rem; color: var(--az-border);
    display: block; margin-bottom: 1rem;
}

.az-empty p { color: var(--az-text-secondary); margin-bottom: 1.25rem; }

/* ═══ BREADCRUMB ═══ */
.az-breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; color: var(--az-text-secondary);
    margin-bottom: 1.5rem; flex-wrap: wrap;
}
.az-breadcrumb a { color: var(--az-primary); text-decoration: none; font-weight: 500; }
.az-breadcrumb a:hover { text-decoration: underline; }
.az-breadcrumb .separator { color: var(--az-text-light); font-size: 0.7rem; }

/* ═══ LECTURE LIST ═══ */
.az-lecture-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--az-border-light);
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; transition: var(--az-transition-fast);
}

.az-lecture-item:last-child { border-bottom: none; }
.az-lecture-item:hover { background: var(--az-primary-50); }

.az-lecture-info h6 { margin: 0 0 0.2rem; font-size: 0.88rem; font-weight: 700; }
.az-lecture-info h6 a { color: var(--az-text); text-decoration: none; }
.az-lecture-info h6 a:hover { color: var(--az-primary); }

.az-lecture-meta {
    font-size: 0.75rem; color: var(--az-text-secondary);
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}

.az-lecture-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

/* ═══ CHAT WIDGET ═══ */
.az-chat {
    border-radius: var(--az-radius);
    overflow: hidden;
    border: 1px solid var(--az-border);
    box-shadow: var(--az-shadow);
}

.az-chat-header {
    background: linear-gradient(135deg, var(--az-primary), var(--az-secondary));
    color: #fff; padding: 0.9rem 1.15rem;
}

.az-chat-header h5 { margin: 0; font-size: 0.9rem; font-weight: 700; }

#chat-messages {
    background: #f8fafc; padding: 1rem;
    height: 360px; overflow-y: auto;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.65rem 1rem;
    border-radius: 16px;
    margin-bottom: 0.65rem;
    font-size: 0.84rem;
    line-height: 1.7;
    word-wrap: break-word;
}

.chat-bubble.user {
    background: linear-gradient(135deg, var(--az-primary), var(--az-primary-light));
    color: #fff; margin-right: auto;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}

.chat-bubble.bot {
    background: #fff; color: var(--az-text);
    border: 1px solid var(--az-border);
    margin-left: auto;
    border-bottom-left-radius: 4px;
}

.chat-bubble.loading { background: #e2e8f0; color: var(--az-text-light); }

.az-chat-footer {
    padding: 0.85rem 1rem;
    background: #fff;
    border-top: 1px solid var(--az-border-light);
}

/* ═══ AUTH PAGES ═══ */
.az-auth-wrapper {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.az-auth-wrapper::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
    top: -200px; left: -100px;
    border-radius: 50%;
}

.az-auth-wrapper::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, transparent 70%);
    bottom: -200px; right: -100px;
    border-radius: 50%;
}

.az-auth-card {
    width: 100%; max-width: 440px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--az-radius-xl);
    box-shadow: var(--az-shadow-xl);
    overflow: hidden;
    position: relative; z-index: 1;
    border: 1px solid rgba(255,255,255,0.3);
}

.az-auth-card.wide { max-width: 560px; }

.az-auth-header {
    background: linear-gradient(135deg, var(--az-primary) 0%, var(--az-secondary) 100%);
    padding: 2rem 2rem 1.75rem;
    text-align: center; color: #fff;
    position: relative;
}

.az-auth-header::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0;
    height: 20px;
    background: rgba(255,255,255,0.95);
    border-radius: var(--az-radius-xl) var(--az-radius-xl) 0 0;
}

.az-auth-header .brand-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 0.85rem;
    border: 1px solid rgba(255,255,255,0.15);
}

.az-auth-header h3 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.az-auth-header p { font-size: 0.8rem; margin: 0.35rem 0 0; opacity: 0.85; }

.az-auth-body { padding: 1.5rem 2rem 2rem; }

/* ═══ PAGE HEADER ═══ */
.az-page-header { margin-bottom: 1.5rem; }
.az-page-title { font-size: 1.5rem; font-weight: 800; color: var(--az-text); margin: 0 0 0.25rem; }
.az-page-subtitle { font-size: 0.84rem; color: var(--az-text-secondary); margin: 0; }

/* ═══ INFO BAR ═══ */
.az-info-bar {
    background: var(--az-primary-50);
    border: 1px solid var(--az-primary-100);
    border-radius: var(--az-radius-sm);
    padding: 0.85rem 1.15rem;
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap;
    gap: 0.5rem; margin-bottom: 1.5rem;
    font-size: 0.84rem;
}

.az-info-bar .info-content {
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}

/* ═══ FILE ITEMS ═══ */
.az-file-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.15rem;
    border-bottom: 1px solid var(--az-border-light);
    transition: var(--az-transition-fast);
}

.az-file-item:last-child { border-bottom: none; }
.az-file-item:hover { background: var(--az-primary-50); }

.az-file-info { display: flex; align-items: center; gap: 0.75rem; }

.az-file-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}

.az-file-icon.pdf { background: #fff1f2; color: var(--az-rose); }
.az-file-icon.doc { background: #eff6ff; color: #2563eb; }
.az-file-icon.img { background: #ecfdf5; color: var(--az-emerald); }
.az-file-icon.default { background: #f1f5f9; color: var(--az-text-secondary); }

.az-file-name { font-size: 0.85rem; font-weight: 600; color: var(--az-text); }
.az-file-meta { font-size: 0.72rem; color: var(--az-text-light); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 991.98px) {
    .az-sidebar { transform: translateX(100%); }
    .az-sidebar.show { transform: translateX(0); }
    .az-sidebar-overlay.show { display: block; }
    .az-main { margin-right: 0; }
    .az-sidebar-toggle { display: block; }
    .az-content { padding: 1rem; }
}

@media (max-width: 575.98px) {
    .az-page-title { font-size: 1.2rem; }
    .az-stat-card { padding: 1rem; }
    .az-stat-value { font-size: 1.3rem; }
    .az-stat-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .az-course-img, .az-course-img-placeholder { height: 140px; }
    .az-auth-body { padding: 1.25rem 1.5rem 1.5rem; }
}

/* ═══ MISC ═══ */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a { color: var(--az-primary); }
a:hover { color: var(--az-primary-dark); }

.btn-primary { background-color: var(--az-primary); border-color: var(--az-primary); }
.btn-primary:hover { background-color: var(--az-primary-dark); border-color: var(--az-primary-dark); }

.btn-success { background-color: var(--az-emerald); border-color: var(--az-emerald); }
.btn-success:hover { background-color: var(--az-emerald-dark); border-color: var(--az-emerald-dark); }

.card { border: 1px solid var(--az-border); box-shadow: var(--az-shadow); border-radius: var(--az-radius); }

.summary-content { line-height: 1.8; }
footer { margin-top: auto; }

/* ═══ GLASSMORPHISM HELPERS ═══ */
.glass {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* ═══ GRADIENT TEXT ═══ */
.gradient-text {
    background: linear-gradient(135deg, var(--az-primary), var(--az-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══ SKELETON / LOADING ═══ */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--az-radius-sm);
}

/* ═══ PULSE DOT (live indicator) ═══ */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--az-emerald);
    display: inline-block;
    animation: pulse-dot 1.5s infinite;
}
