/* BỘ STYLE CHO STUDENT DASHBOARD & AUTH FLUX MÔ PHỎNG THEO SAAS DESIGN */

* { box-sizing: border-box; }
/* GHI ĐÈ GIAO DIỆN THEME BẰNG FULLSCREEN */
.acl-dashboard-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: #f8fafc;
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ─── 1. AUTHENTICATION BẢN QUYỀN (SPLIT LAYOUT) ─── */
.acl-auth-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;    
    padding: 24px;
}
.acl-auth-container {
    background: #fff;
    width: 1000px;
    max-width: 100%;
    min-height: 600px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    display: flex;
    overflow: hidden;
}
.acl-auth-brand {
    flex: 1;
    background: linear-gradient(135deg, #d32123, #b91c1c); /* RED BRAND */
    color: #fff;
    padding: 64px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.acl-auth-brand-content { position: relative; z-index: 2; }
.acl-auth-brand-content h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; color: #ffffff !important; }
.acl-auth-brand-content p { font-size: 16px; line-height: 1.6; opacity: 0.9; color: #ffffff !important; }
.acl-auth-brand-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 40%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 40%);
    z-index: 1;
}
.acl-auth-form-area {
    width: 450px;
    padding: 48px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.acl-auth-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    border-bottom: 2px solid #f1f5f9;
}
.acl-auth-tab {
    background: none; border: none; padding: 12px 0; font-size: 18px; font-weight: 700; color: #94a3b8; cursor: pointer; position: relative;
}
.acl-auth-tab.active { color: #0f172a; }
.acl-auth-tab.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: #d32123; border-radius: 2px;
}
.acl-form-group { margin-bottom: 24px; }
.acl-form-group label { display: block; font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 8px; }
.acl-form-group input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid #cbd5e1; background: #f8fafc; font-size: 15px; outline: none; transition: 0.2s; }
.acl-form-group input:focus { border-color: #d32123; box-shadow: 0 0 0 4px rgba(211,33,35,0.1); background: #fff; }
.acl-auth-btn {
    width: 100%; padding: 16px; border-radius: 12px; background: #d32123; color: #fff; border: none; font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.2s;
    box-shadow: 0 4px 6px -1px rgba(211,33,35,0.3);
}
.acl-auth-btn:hover { background: #b91c1c; transform: translateY(-1px); }
.acl-auth-msg { margin-top: 16px; font-size: 14px; text-align: center; font-weight: 600; }

@media(max-width: 768px) {
    .acl-auth-container { flex-direction: column; }
    .acl-auth-brand { padding: 40px; min-height: 250px; }
    .acl-auth-form-area { width: 100%; padding: 32px; }
}

/* ─── 2. DASHBOARD APP LAYOUT ─── */
.acl-dashboard-app { display: flex; width: 100%; height: 100vh; }

/* SIDEBAR TRÁI */
.acl-sidebar-app {
    width: 260px;
    background: #fff;
    border-right: 1px solid #f1f5f9;
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.acl-brand-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; color: #0f172a; margin-bottom: 18px; }
.acl-nav-menu { display: flex; flex-direction: column; gap: 8px; flex: 1; margin: 0; padding: 0; }
.acl-nav-link {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; text-decoration: none; color: #64748b; font-weight: 600; font-size: 15px; transition: 0.2s;
}
.acl-nav-link:hover { background: #f8fafc; color: #0f172a; }
.acl-nav-link.active { background: #fef2f2; color: #d32123; }
.acl-nav-link.active .acl-icon-box { background: #d32123; }
.text-danger { color: #ef4444; margin-top: auto; }
.text-danger:hover { background: #fef2f2; }
.acl-icon-box { width: 8px; height: 8px; border-radius: 50%; background: transparent; }

/* KHỐI MAIN TRUNG TÂM */
.acl-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.acl-top-header {
    height: 80px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}
.acl-search-bar input {
    background: #f1f5f9; border: none; padding: 12px 20px; border-radius: 20px; width: 300px; font-size: 14px; outline: none;
}
.acl-user-menu { display: flex; align-items: center; gap: 12px; }
.acl-avatar-small { width: 44px; height: 44px; background: #fee2e2; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #d32123; }
.acl-user-name { font-size: 12px; color: #64748b; line-height: 1.4; }
.acl-user-name strong { font-size: 15px; color: #0f172a; }

.acl-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

/* WIDGETS BEN TRONG MAIN */
.acl-welcome-banner {
    background: linear-gradient(135deg, #d32123 0%, #7f1d1d 100%);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px -10px rgba(211, 33, 35, 0.3);
}
.acl-welcome-banner::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 40%); pointer-events: none;
}
.acl-wb-ring {
    width: 130px; height: 130px; border-radius: 50%; background: conic-gradient(#fff var(--p, 40%), rgba(255,255,255,0.2) 0);
    display: flex; align-items: center; justify-content: center; position: relative; z-index: 2;
}
.acl-ring-circle { width: 106px; height: 106px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; color: #d32123; box-shadow: inset 0 4px 10px rgba(0,0,0,0.1); }
.acl-wb-text { position: relative; z-index: 2; }
.acl-wb-text h2 { margin: 0 0 12px 0; font-size: 32px; color: #fff; font-weight: 800; letter-spacing: -0.5px; }
.acl-wb-text p { margin: 0 0 24px 0; color: rgba(255,255,255,0.9); font-size: 17px; line-height: 1.5; }
.acl-wb-btn { background: #fff; color: #d32123; border: none; padding: 14px 28px; border-radius: 99px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 16px rgba(0,0,0,0.1); transition: all 0.3s; font-size: 15px; }
.acl-wb-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 20px rgba(0,0,0,0.15); }

/* Stats box */
.acl-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.acl-stat-card { border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(0,0,0,0.02); }
.acl-stat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08); }
.stat-num { font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.stat-lbl { font-size: 15px; font-weight: 700; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }

/* Course Grid */
.acl-section-header { margin-bottom: 24px; }
.acl-section-header h3 { font-size: 20px; font-weight: 800; color: #0f172a; margin: 0; }

.acl-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.acl-course-card { background: #fff; border-radius: 24px; padding: 16px; box-shadow: 0 10px 20px -5px rgba(0,0,0,0.03); display: flex; flex-direction: column; }
.acl-c-thumb { height: 160px; background: #e2e8f0; border-radius: 16px; background-size: cover; background-position: center; margin-bottom: 16px; }
.acl-c-body h4 { margin: 0 0 8px; font-size: 16px; color: #0f172a; line-height: 1.4; font-weight: 700; }
.acl-c-meta { font-size: 13px; color: #64748b; margin-bottom: 16px; }
.acl-c-progress-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; margin-top: auto; }
.acl-c-progress-bar { flex: 1; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.acl-c-progress-fill { height: 100%; background: #d32123; border-radius: 3px; }
.acl-pct { font-size: 13px; font-weight: 700; color: #0f172a; }
.acl-c-btn {
    display: block; width: 100%; text-align: center; background: #fef2f2; color: #d32123; padding: 12px; border-radius: 12px; font-weight: 700; text-decoration: none; transition: 0.2s; border: 1px solid #fee2e2;
}
.acl-c-btn:hover { background: #fee2e2; }

/* CỘT PHẢI: RIGHT SIDEBAR */
.acl-right-sidebar {
    width: 320px;
    background: #fff;
    border-left: 1px solid #f1f5f9;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex-shrink: 0;
    overflow-y: auto;
}
.acl-widget-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.acl-widget-head h4 { margin: 0; font-size: 16px; font-weight: 800; color: #0f172a; }
.acl-widget-head a { font-size: 13px; color: #d32123; text-decoration: none; font-weight: 600; }
.acl-widget-body { display: flex; flex-direction: column; gap: 16px; }

.acl-activity-item { display: flex; gap: 12px; padding: 12px; background: #f8fafc; border-radius: 12px; align-items: center; border: 1px solid #f1f5f9;}
.acl-act-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #ccc; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800;}
.acl-act-info h5 { margin: 0 0 4px; font-size: 13px; color: #0f172a; line-height: 1.4; }
.acl-act-info p { margin: 0; font-size: 11px; font-weight: 600; }
.acl-act-time { font-size: 10px; color: #94a3b8; }

/* Brand background pass: keep the student dashboard aligned with the LMS black-lime theme. */
#acl-app-root.acl-dashboard-root,
.acl-dashboard-root {
    background:
        radial-gradient(circle at 82% 0%, rgba(143, 236, 0, .16) 0, transparent 28%),
        radial-gradient(circle at 6% 24%, rgba(143, 236, 0, .10) 0, transparent 30%),
        #0b1301 !important;
    color: #f8ffe9 !important;
}

.acl-auth-page,
.acl-dashboard-app {
    background: transparent !important;
}

.acl-sidebar-app,
.acl-top-header,
.acl-right-sidebar,
.acl-auth-container,
.acl-auth-form-area,
.acl-course-card,
.acl-activity-item {
    background: rgba(13, 25, 2, .92) !important;
    border-color: rgba(143, 236, 0, .20) !important;
    color: #f8ffe9 !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28) !important;
}

.acl-auth-brand,
.acl-welcome-banner {
    background:
        radial-gradient(circle at 82% 16%, rgba(143, 236, 0, .28), transparent 28%),
        linear-gradient(135deg, #0b1301 0%, #213c05 100%) !important;
    box-shadow: 0 20px 46px rgba(0, 0, 0, .32), 0 0 30px rgba(143, 236, 0, .12) !important;
}

.acl-brand-logo,
.acl-user-name strong,
.acl-section-header h3,
.acl-c-body h4,
.acl-act-info h5,
.stat-num,
.acl-auth-tab.active {
    color: #f8ffe9 !important;
}

.acl-user-name,
.acl-c-meta,
.acl-act-time,
.acl-nav-link,
.acl-auth-tab,
.acl-form-group label {
    color: #b8c9a6 !important;
}

.acl-nav-link:hover {
    background: rgba(143, 236, 0, .08) !important;
    color: #f8ffe9 !important;
}

.acl-nav-link.active,
.acl-c-btn {
    background: rgba(143, 236, 0, .12) !important;
    border-color: rgba(143, 236, 0, .26) !important;
    color: #8fec00 !important;
}

.acl-nav-link.active .acl-icon-box,
.acl-c-progress-fill {
    background: #8fec00 !important;
}

.acl-auth-tab.active::after,
.acl-auth-btn {
    background: #8fec00 !important;
}

.acl-auth-btn {
    color: #0b1301 !important;
    box-shadow: 0 14px 30px rgba(143, 236, 0, .24) !important;
}

.acl-form-group input,
.acl-search-bar input {
    background: rgba(9, 17, 1, .74) !important;
    border: 1px solid rgba(143, 236, 0, .22) !important;
    color: #f8ffe9 !important;
}

.acl-form-group input:focus,
.acl-search-bar input:focus {
    border-color: rgba(143, 236, 0, .54) !important;
    box-shadow: 0 0 0 4px rgba(143, 236, 0, .12) !important;
}

.acl-c-thumb,
.acl-c-progress-bar {
    background: rgba(143, 236, 0, .12) !important;
}

.acl-avatar-small,
.acl-act-avatar {
    background: rgba(143, 236, 0, .16) !important;
    border-color: rgba(143, 236, 0, .28) !important;
    color: #8fec00 !important;
}
