/* ============================================
   ENLIGHTEN-EDU — Ultra Clean Design v4
   White, Professional, Minimal
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-50: #faf5ff;
    --primary-100: #f3e8ff;
    --primary-200: #e9d5ff;
    --primary-300: #d8b4fe;
    --primary-400: #c084fc;
    --primary-500: #a855f7;
    --primary-600: #9333ea;
    --primary-700: #7e22ce;
    --primary-800: #6b21a8;
    --primary-900: #581c87;

    --accent-50: #f0fdf4;
    --accent-100: #dcfce7;
    --accent-500: #22c55e;
    --accent-600: #16a34a;

    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --bg-body: #f8fafc;
    --bg-content: #ffffff;
    --bg-card: #ffffff;
    --bg-nav: #ffffff;
    --bg-footer: #ffffff;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --border-radius-2xl: 24px;
    --border-radius-full: 9999px;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: #f8fafc !important;
    color: #1e293b !important;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== LAYOUT ===== */
.page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

main {
    width: 100%;
}

/* ===== DASHBOARD DESIGN SYSTEM ===== */

/* 2-Column Balanced Dashboard Hero Banner */
.dashboard-hero {
    position: relative;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #2563eb 100%) !important;
    border-radius: 28px;
    padding: 2.75rem 2.5rem;
    color: #ffffff;
    box-shadow: 0 20px 45px -10px rgba(124, 58, 237, 0.35);
    margin-bottom: 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-left {
    flex: 1;
    min-width: 280px;
    position: relative;
    z-index: 2;
}

.hero-right {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.dashboard-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0.5rem 0;
    letter-spacing: -0.4px;
}

.dashboard-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    max-width: 580px;
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.btn-ai-hero {
    background: #ffffff !important;
    color: #7c3aed !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.4rem !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-ai-hero:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2) !important;
    background: #f8fafc !important;
}

.btn-light-hero {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.4rem !important;
    border-radius: 14px !important;
    transition: all 0.25s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-light-hero:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* 3D Glass Card on Right Column */
.hero-illustration-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 22px;
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    text-align: center;
}

.hero-icon-3d {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    animation: floatingIcon 4s ease-in-out infinite alternate;
}

@keyframes floatingIcon {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.hero-stats-mini {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.mini-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mini-val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.mini-lbl {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    margin-top: 0.25rem;
}

.mini-stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
}

/* Stat Grid & Tiles */
.stat-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    gap: 1.25rem !important;
    margin-bottom: 2rem !important;
}

.stat-tile {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 1.35rem 1.25rem !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.stat-tile:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px -5px rgba(124, 58, 237, 0.12) !important;
    border-color: #cbd5e1 !important;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.icon-gradient-purple { background: linear-gradient(135deg, #7c3aed, #6366f1); }
.icon-gradient-blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.icon-gradient-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.icon-gradient-emerald { background: linear-gradient(135deg, #10b981, #059669); }
.icon-gradient-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }

.stat-info {
    flex: 1;
}

.stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.1 !important;
}

.stat-value small {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.stat-label {
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-top: 0.25rem !important;
}

.stat-sublabel {
    font-size: 0.76rem !important;
    color: #64748b !important;
    margin-top: 0.2rem !important;
}

.quota-visual {
    margin-top: 0.4rem;
}

.quota-bar-bg {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.quota-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ec4899, #7c3aed);
    border-radius: 99px;
}

.quota-text {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.2rem;
    font-weight: 600;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.chart-header h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-header h3 i {
    color: #7c3aed;
}

.chart-wrapper {
    position: relative;
    height: 240px;
}

/* Quick Actions Grid */
.section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
}

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

.section-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.section-header h2 i {
    color: #7c3aed;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.quick-card {
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.quick-card:hover {
    background: #ffffff;
    border-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.15);
}

.quick-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    transition: all 0.25s ease;
}

.quick-card:hover .quick-icon {
    background: #7c3aed;
    color: #ffffff;
}

.quick-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.quick-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

/* Course Cards Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
}

.course-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.course-cover {
    height: 100px;
    position: relative;
    padding: 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    color: white;
}

.cover-gradient-1 { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.cover-gradient-2 { background: linear-gradient(135deg, #0284c7, #06b6d4); }
.cover-gradient-3 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.cover-gradient-4 { background: linear-gradient(135deg, #10b981, #059669); }

.course-cover i {
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    top: 10px;
    right: 15px;
}

.course-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.course-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.4rem 0;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: #64748b;
    margin: 0.8rem 0 1rem;
}

.course-actions {
    margin-top: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.btn-outline {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #7c3aed;
    color: #7c3aed;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    border-radius: 10px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 99px;
}

.badge-primary { background: #f3e8ff; color: #7c3aed; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-success { background: #dcfce7; color: #16a34a; }

/* ===== GLOBAL PROFESSIONAL FOOTER ===== */
.footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 2rem 1.5rem !important;
    margin-top: 3rem !important;
    text-align: center !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.02) !important;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
}

.footer-brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
    box-shadow: 0 3px 8px rgba(124, 58, 237, 0.3);
}

.footer-brand-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.footer-brand-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    letter-spacing: 0.5px;
}

.footer-dev-credit {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.footer-heart {
    color: #ef4444;
    font-size: 0.85rem;
    animation: heartPulse 1.8s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer-dev-name {
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 60%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-copyright {
    font-size: 0.76rem;
    color: #94a3b8;
    margin: 0;
}

@media (max-width: 768px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 2rem 1.5rem;
    }

    .hero-right {
        margin-top: 1rem;
    }
}