body.edupro-login-template,
body.page-template-template-quan-ly {
    margin: 0;
}

.edupro-admin-layout {
    min-height: 100vh;
    display: flex;
    background: #f6f8fb;
    color: #0f172a;
}

.edupro-sidebar {
    width: 260px;
    min-width: 260px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.edupro-sidebar-logo {
    height: 88px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    border-bottom: 1px solid #eef0f4;
    font-size: 20px;
    color: #020617;
}

.edupro-sidebar-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.25);
}

.edupro-sidebar-menu {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edupro-sidebar-menu a,
.edupro-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.edupro-sidebar-menu a:hover,
.edupro-sidebar-footer a:hover {
    background: #fff1f2;
    color: #e11d48;
}

.edupro-sidebar-menu a.active {
    background: #fff1f2;
    color: #e11d48;
}

.edupro-menu-icon {
    width: 20px;
    display: inline-flex;
    justify-content: center;
}

.edupro-sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid #eef0f4;
}

.edupro-main {
    flex: 1;
    padding: 34px;
    margin: 0 auto;
    box-sizing: border-box;
}

.edupro-hero {
    background: linear-gradient(135deg, #f60046 0%, #d90429 100%);
    color: #fff;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 18px 35px rgba(225, 29, 72, 0.22);
    margin-bottom: 32px;
}

.edupro-hero h1,
.edupro-page-head h1 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.2;
}

.edupro-hero p,
.edupro-page-head p {
    margin: 0;
    font-size: 16px;
}

.edupro-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.edupro-dashboard-card {
    min-height: 210px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
}

.edupro-dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.1);
}

.edupro-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 26px;
}

.edupro-card-icon.teacher {
    background: #eef2ff;
}

.edupro-card-icon.student {
    background: #d1fae5;
}

.edupro-card-icon.class {
    background: #fef3c7;
}

.edupro-dashboard-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.edupro-dashboard-card p {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.55;
}

.edupro-page-head {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.edupro-page-head h1 {
    color: #0f172a;
}

.edupro-page-head p {
    color: #64748b;
}

.edupro-table-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.edupro-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.edupro-table {
    width: 100%;
    border-collapse: collapse;
}

.edupro-table th,
.edupro-table td {
    padding: 15px 14px;
    text-align: left;
    border-bottom: 1px solid #eef0f4;
    font-size: 14px;
}

.edupro-table th {
    color: #475569;
    font-weight: 800;
    background: #f8fafc;
}

.edupro-table td {
    color: #0f172a;
}

.edupro-table tbody tr:hover {
    background: #fff7f8;
}

.edupro-muted {
    color: #94a3b8;
}

.edupro-user-login {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-top: 3px;
}

.edupro-empty-box,
.edupro-access-denied {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    color: #64748b;
    font-weight: 700;
}

/* hiệu ứng nổi lên từng khối */
.edupro-animate-item {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.55s ease;
}

.edupro-animate-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.edupro-card-grid .edupro-animate-item:nth-child(1) {
    transition-delay: 0.08s;
}

.edupro-card-grid .edupro-animate-item:nth-child(2) {
    transition-delay: 0.18s;
}

.edupro-card-grid .edupro-animate-item:nth-child(3) {
    transition-delay: 0.28s;
}
.edupro-menu-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: color 0.2s ease, transform 0.2s ease;
}

.edupro-menu-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke: currentColor;
}

.edupro-sidebar-menu a,
.edupro-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.edupro-sidebar-menu a:hover,
.edupro-sidebar-footer a:hover,
.edupro-sidebar-menu a.active {
    background: #fff1f2;
    color: #e11d48;
}

.edupro-sidebar-menu a:hover .edupro-menu-icon,
.edupro-sidebar-footer a:hover .edupro-menu-icon,
.edupro-sidebar-menu a.active .edupro-menu-icon {
    color: #e11d48;
    transform: scale(1.08);
}
.edupro-sidebar-icon span svg {
	width: 20px;
	height: 20px;
}

@media (max-width: 1024px) {
    .edupro-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .edupro-admin-layout {
        flex-direction: column;
    }

    .edupro-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        position: relative;
    }

    .edupro-sidebar-footer {
        display: none;
    }

    .edupro-main {
        padding: 20px;
    }

    .edupro-hero {
        padding: 26px;
    }

    .edupro-hero h1,
    .edupro-page-head h1 {
        font-size: 26px;
    }
}

/* =========================================
   FIX ADMIN SIDEBAR - FULL HEIGHT + FIXED
   Không bị hở khi scroll trang dài
========================================= */
@media (min-width: 769px) {
    body.page-template-template-quan-ly {
        background: #f6f8fb;
        overflow-x: hidden;
    }

    .edupro-admin-layout {
        min-height: 100vh;
        min-height: 100dvh;
        align-items: stretch;
        background: #f6f8fb;
    }

    .edupro-admin-layout .edupro-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        z-index: 999;
        width: 260px;
        min-width: 260px;
        height: auto !important;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        background: #ffffff;
        border-right: 1px solid #e5e7eb;
        box-shadow: 8px 0 28px rgba(15, 23, 42, 0.04);
    }

    .edupro-admin-layout .edupro-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .edupro-admin-layout .edupro-sidebar::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

    .edupro-admin-layout .edupro-sidebar-logo {
        flex: 0 0 auto;
    }

    .edupro-admin-layout .edupro-sidebar-menu {
        flex: 1 1 auto;
    }

    .edupro-admin-layout .edupro-sidebar-footer {
        flex: 0 0 auto;
        margin-top: auto;
        background: #ffffff;
    }

    .edupro-admin-layout .edupro-main {
        width: calc(100% - 260px);
        max-width: none;
        min-height: 100vh;
        min-height: 100dvh;
        margin-left: 260px !important;
        margin-right: 0 !important;
        box-sizing: border-box;
        background: #f6f8fb;
    }
}

@media (max-width: 768px) {
    .edupro-admin-layout .edupro-sidebar {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 100%;
        min-width: 100%;
        height: auto !important;
        min-height: auto;
        max-height: none;
        overflow: visible;
        box-shadow: none;
    }

    .edupro-admin-layout .edupro-main {
        width: 100%;
        min-height: auto;
        margin-left: 0 !important;
    }
}

/* =========================================================
   EDUPRO UI FIX V26 - Sidebar/menu/table responsive chuẩn
   Ghi đè các đoạn CSS cũ bị trùng gây hở sidebar / mất chữ.
========================================================= */
:root {
    --edupro-smart-sidebar: 270px;
    --edupro-smart-sidebar-mini: 86px;
    --edupro-smart-bg: #f4f7fb;
    --edupro-smart-dark: #0f172a;
    --edupro-smart-primary: #6d5df6;
}

html, body { overflow-x: hidden !important; }

body.edupro-has-smart-sidebar .edupro-role-sidebar-toggle {
    position: fixed;
    top: 18px;
    left: 218px;
    z-index: 100100;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
    transition: .22s ease;
}

body.edupro-has-smart-sidebar .edupro-role-sidebar-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    display: block;
}

body.edupro-sidebar-collapsed .edupro-role-sidebar-toggle { left: 21px; }

body.edupro-smart-sidebar-admin .edupro-role-sidebar-toggle {
    left: 212px;
}

body.edupro-smart-sidebar-admin.edupro-sidebar-collapsed .edupro-role-sidebar-toggle {
    left: 20px;
}

body.edupro-has-smart-sidebar .edupro-sidebar-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 100050;
    background: rgba(15, 23, 42, .48);
    opacity: 0;
    visibility: hidden;
    transition: .22s ease;
}

body.edupro-sidebar-open .edupro-sidebar-mobile-overlay {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1025px) {
    body.edupro-smart-sidebar-teacher .edupro-teacher-sidebar,
    body.edupro-smart-sidebar-student .edupro-student-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: var(--edupro-smart-sidebar) !important;
        min-width: var(--edupro-smart-sidebar) !important;
        max-width: var(--edupro-smart-sidebar) !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        background: var(--edupro-smart-dark) !important;
        color: #e5eefc !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 100000 !important;
        box-shadow: 10px 0 34px rgba(15,23,42,.08) !important;
        transition: width .24s ease, min-width .24s ease, max-width .24s ease;
    }

    body.edupro-smart-sidebar-admin .edupro-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        background: #ffffff !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 100000 !important;
        box-shadow: 10px 0 34px rgba(15,23,42,.06) !important;
        transition: width .24s ease, min-width .24s ease, max-width .24s ease;
    }

    body.edupro-smart-sidebar-teacher .edupro-teacher-dashboard-main,
    body.edupro-smart-sidebar-teacher .edupro-schedule-pro-main,
    body.edupro-smart-sidebar-teacher .edupro-teacher-reviews-main,
    body.edupro-smart-sidebar-teacher .edupro-teacher-material-main,
    body.edupro-smart-sidebar-student .edupro-student-main {
        width: calc(100% - var(--edupro-smart-sidebar)) !important;
        margin-left: var(--edupro-smart-sidebar) !important;
        padding-left: 34px !important;
        padding-right: 34px !important;
        box-sizing: border-box !important;
        transition: margin-left .24s ease, width .24s ease;
    }

    body.edupro-smart-sidebar-admin .edupro-main {
        width: calc(100% - 260px) !important;
        margin-left: 260px !important;
        margin-right: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
        transition: margin-left .24s ease, width .24s ease;
    }

    body.edupro-sidebar-collapsed.edupro-smart-sidebar-teacher .edupro-teacher-sidebar,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-student .edupro-student-sidebar,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-admin .edupro-sidebar {
        width: var(--edupro-smart-sidebar-mini) !important;
        min-width: var(--edupro-smart-sidebar-mini) !important;
        max-width: var(--edupro-smart-sidebar-mini) !important;
    }

    body.edupro-sidebar-collapsed.edupro-smart-sidebar-admin .edupro-sidebar-logo strong,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-admin .edupro-sidebar-menu a > span:not(.edupro-menu-icon),
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-admin .edupro-sidebar-footer a > span:not(.edupro-menu-icon),
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-teacher .edupro-teacher-brand strong,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-teacher .edupro-teacher-menu a span,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-teacher .edupro-teacher-menu-label > span,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-teacher .edupro-teacher-menu-arrow,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-teacher .edupro-teacher-submenu,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-teacher .edupro-teacher-user div:not(.edupro-teacher-user-avatar),
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-teacher .edupro-teacher-logout span,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-student .edupro-student-brand strong,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-student .edupro-student-menu a span,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-student .edupro-student-menu-label > span,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-student .edupro-student-menu-arrow,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-student .edupro-student-submenu,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-student .edupro-student-user div:not(.edupro-student-avatar),
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-student .edupro-student-logout span {
        display: none !important;
    }

    body.edupro-sidebar-collapsed.edupro-smart-sidebar-teacher .edupro-teacher-menu,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-student .edupro-student-menu,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-admin .edupro-sidebar-menu {
        padding-left: 12px !important;
        padding-right: 12px !important;
        align-items: center !important;
    }

    body.edupro-sidebar-collapsed.edupro-smart-sidebar-teacher .edupro-teacher-menu a,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-teacher .edupro-teacher-menu-parent,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-student .edupro-student-menu a,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-student .edupro-student-menu-parent,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-admin .edupro-sidebar-menu a,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-admin .edupro-sidebar-footer a {
        width: 56px !important;
        min-width: 56px !important;
        padding: 0 !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    body.edupro-sidebar-collapsed.edupro-smart-sidebar-teacher .edupro-teacher-dashboard-main,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-teacher .edupro-schedule-pro-main,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-teacher .edupro-teacher-reviews-main,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-teacher .edupro-teacher-material-main,
    body.edupro-sidebar-collapsed.edupro-smart-sidebar-student .edupro-student-main {
        width: calc(100% - var(--edupro-smart-sidebar-mini)) !important;
        margin-left: var(--edupro-smart-sidebar-mini) !important;
    }

    body.edupro-sidebar-collapsed.edupro-smart-sidebar-admin .edupro-main {
        width: calc(100% - var(--edupro-smart-sidebar-mini)) !important;
        margin-left: var(--edupro-smart-sidebar-mini) !important;
    }
}

@media (max-width: 1024px) {
    body.edupro-has-smart-sidebar .edupro-role-sidebar-toggle {
        top: 16px;
        left: 16px !important;
        width: 48px;
        height: 48px;
        border-radius: 16px;
        background: var(--edupro-smart-primary);
        color: #fff;
    }

    body.edupro-smart-sidebar-admin .edupro-sidebar,
    body.edupro-smart-sidebar-teacher .edupro-teacher-sidebar,
    body.edupro-smart-sidebar-student .edupro-student-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 292px !important;
        min-width: 292px !important;
        max-width: 292px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        transform: translateX(-110%) !important;
        transition: transform .24s ease !important;
        z-index: 100090 !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: 20px 0 60px rgba(15,23,42,.24) !important;
    }

    body.edupro-sidebar-open.edupro-smart-sidebar-admin .edupro-sidebar,
    body.edupro-sidebar-open.edupro-smart-sidebar-teacher .edupro-teacher-sidebar,
    body.edupro-sidebar-open.edupro-smart-sidebar-student .edupro-student-sidebar {
        transform: translateX(0) !important;
    }

    body.edupro-smart-sidebar-admin .edupro-main,
    body.edupro-smart-sidebar-teacher .edupro-teacher-dashboard-main,
    body.edupro-smart-sidebar-teacher .edupro-schedule-pro-main,
    body.edupro-smart-sidebar-teacher .edupro-teacher-reviews-main,
    body.edupro-smart-sidebar-teacher .edupro-teacher-material-main,
    body.edupro-smart-sidebar-student .edupro-student-main {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 82px 18px 28px !important;
        box-sizing: border-box !important;
    }
}

/* Table/Card responsive đẹp hơn */
.edupro-table, .edupro-student-table, .edupro-teacher-table { border-collapse: separate !important; border-spacing: 0 !important; }
.edupro-table th, .edupro-student-table th, .edupro-teacher-table th { background: #f8fbff !important; color: #334155 !important; font-weight: 900 !important; }
.edupro-table td, .edupro-student-table td, .edupro-teacher-table td { vertical-align: middle !important; }

@media (max-width: 768px) {
    .edupro-table thead, .edupro-student-table thead, .edupro-teacher-table thead { display: none !important; }
    .edupro-table, .edupro-table tbody, .edupro-table tr, .edupro-table td,
    .edupro-student-table, .edupro-student-table tbody, .edupro-student-table tr, .edupro-student-table td,
    .edupro-teacher-table, .edupro-teacher-table tbody, .edupro-teacher-table tr, .edupro-teacher-table td { display: block !important; width: 100% !important; }
    .edupro-table tr, .edupro-student-table tr, .edupro-teacher-table tr { margin-bottom: 14px !important; border: 1px solid #dfe7f3 !important; border-radius: 18px !important; background: #fff !important; overflow: hidden !important; box-shadow: 0 12px 28px rgba(15,23,42,.05) !important; }
    .edupro-table td, .edupro-student-table td, .edupro-teacher-table td { border-bottom: 1px solid #eef2f7 !important; padding: 14px 16px !important; }
    .edupro-table td:last-child, .edupro-student-table td:last-child, .edupro-teacher-table td:last-child { border-bottom: 0 !important; }
}


/* =========================================================
   EDUPRO V27 - Nút mũi tên thu/mở sidebar nằm ngoài mép menu
   Áp dụng chung: Admin + Giáo viên + Học viên
========================================================= */
body.edupro-has-smart-sidebar .edupro-role-sidebar-toggle {
    position: fixed !important;
    top: 86px !important;
    left: calc(var(--edupro-smart-sidebar, 270px)) !important;
    z-index: 100120 !important;
    width: 36px !important;
    height: 54px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-left: 0 !important;
    border-radius: 0 18px 18px 0 !important;
    background: linear-gradient(135deg, #6d5df6, #8b5cf6) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 12px 16px 34px rgba(80, 56, 220, .24) !important;
    cursor: pointer !important;
    transform: translateX(0) !important;
    transition: left .24s ease, transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}

body.edupro-has-smart-sidebar .edupro-role-sidebar-toggle:hover {
    box-shadow: 14px 20px 40px rgba(80, 56, 220, .32) !important;
}

body.edupro-has-smart-sidebar .edupro-role-sidebar-toggle span:not(.edupro-sidebar-arrow) {
    display: none !important;
}

body.edupro-has-smart-sidebar .edupro-role-sidebar-toggle .edupro-sidebar-arrow {
    position: relative !important;
    width: 12px !important;
    height: 12px !important;
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    border-right: 3px solid currentColor !important;
    border-bottom: 3px solid currentColor !important;
    border-radius: 2px !important;
    transform: rotate(135deg) !important;
    transition: transform .24s ease !important;
}

body.edupro-sidebar-collapsed .edupro-role-sidebar-toggle {
    left: calc(var(--edupro-smart-sidebar-mini, 86px)) !important;
}

body.edupro-sidebar-collapsed .edupro-role-sidebar-toggle .edupro-sidebar-arrow {
    transform: rotate(-45deg) !important;
}

/* Nếu sidebar admin dùng width hơi khác, vẫn neo theo biến chung để đồng bộ 3 giao diện */
body.edupro-smart-sidebar-admin .edupro-role-sidebar-toggle {
    left: calc(var(--edupro-smart-sidebar, 270px) ) !important;
}

body.edupro-smart-sidebar-admin.edupro-sidebar-collapsed .edupro-role-sidebar-toggle {
    left: calc(var(--edupro-smart-sidebar-mini, 86px) ) !important;
}

@media (max-width: 1024px) {
    body.edupro-has-smart-sidebar .edupro-role-sidebar-toggle {
        top: 84px !important;
        left: 0 !important;
        width: 42px !important;
        height: 58px !important;
        border-radius: 0 20px 20px 0 !important;
        border-left: 0 !important;
        background: linear-gradient(135deg, #6d5df6, #8b5cf6) !important;
        color: #fff !important;
        box-shadow: 12px 16px 34px rgba(80, 56, 220, .25) !important;
    }

    body.edupro-has-smart-sidebar .edupro-role-sidebar-toggle .edupro-sidebar-arrow {
        transform: rotate(-45deg) !important;
    }

    body.edupro-sidebar-open .edupro-role-sidebar-toggle {
        left: 292px !important;
        transform: translateX(-18px) !important;
        border-radius: 18px !important;
    }

    body.edupro-sidebar-open .edupro-role-sidebar-toggle .edupro-sidebar-arrow {
        transform: rotate(135deg) !important;
    }
}

@media (max-width: 480px) {
    body.edupro-sidebar-open .edupro-role-sidebar-toggle {
        left: min(292px, calc(100vw - 38px)) !important;
    }
}


/* =========================================================
   EDUPRO MOBILE/TABLET TOP BAR - MENU + THÔNG BÁO
   Áp dụng cho Admin, Giáo viên, Học viên.
========================================================= */
.edupro-mobile-topbar {
    display: none;
}

@media (max-width: 1024px) {
    body.edupro-mobile-topbar-active {
        padding-top: 72px !important;
    }

    body.edupro-mobile-topbar-active .edupro-role-sidebar-toggle {
        display: none !important;
    }

    .edupro-mobile-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 66px;
        z-index: 100050;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 14px;
        background: rgba(248, 250, 255, 0.94);
        border-bottom: 1px solid rgba(203, 213, 225, 0.82);
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-sizing: border-box;
    }

    .edupro-mobile-menu-btn {
        height: 46px;
        border: 0;
        border-radius: 16px;
        padding: 0 16px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: linear-gradient(135deg, #5b5cf6, #8b5cf6);
        color: #ffffff;
        font-size: 14px;
        font-weight: 900;
        letter-spacing: .01em;
        box-shadow: 0 14px 30px rgba(91, 92, 246, 0.26);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .edupro-mobile-menu-btn:active {
        transform: translateY(1px);
    }

    .edupro-mobile-menu-lines {
        width: 19px;
        display: grid;
        gap: 4px;
    }

    .edupro-mobile-menu-lines i {
        display: block;
        height: 2px;
        border-radius: 99px;
        background: currentColor;
    }

    .edupro-mobile-menu-lines i:nth-child(2) {
        width: 14px;
    }

    body.edupro-sidebar-open .edupro-mobile-menu-lines i:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    body.edupro-sidebar-open .edupro-mobile-menu-lines i:nth-child(2) {
        opacity: 0;
    }

    body.edupro-sidebar-open .edupro-mobile-menu-lines i:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .edupro-mobile-topbar-actions {
        min-width: 46px;
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    .edupro-mobile-bell-placeholder,
    .edupro-mobile-topbar #eduproNotifyBell .edupro-notify-bell-btn {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        border: 0 !important;
        border-radius: 16px !important;
        background: linear-gradient(135deg, #6d5dfc, #7c3aed) !important;
        color: #ffffff !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 14px 30px rgba(91, 92, 246, 0.28) !important;
        cursor: pointer;
    }

    .edupro-mobile-bell-placeholder span,
    .edupro-mobile-topbar #eduproNotifyBell .edupro-notify-bell-icon {
        font-size: 20px !important;
        line-height: 1 !important;
    }

    .edupro-mobile-topbar #eduproNotifyBell,
    #eduproNotifyBell.edupro-notify-in-mobilebar {
        position: relative !important;
        inset: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        z-index: auto !important;
        transform: none !important;
        margin: 0 !important;
    }

    .edupro-mobile-topbar #eduproNotifyBell .edupro-notify-bell-count {
        position: absolute !important;
        top: -8px !important;
        right: -8px !important;
        min-width: 21px !important;
        height: 21px !important;
        padding: 0 6px !important;
        border: 3px solid #f8faff !important;
        border-radius: 999px !important;
        background: #ef4444 !important;
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .edupro-mobile-topbar #eduproNotifyBell .edupro-notify-dropdown {
        position: fixed !important;
        top: 74px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        transform: none !important;
        border-radius: 22px !important;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22) !important;
        z-index: 100060 !important;
    }

    .edupro-mobile-topbar #eduproNotifyBell .edupro-notify-dropdown::before,
    .edupro-mobile-topbar #eduproNotifyBell .edupro-notify-dropdown::after {
        display: none !important;
    }

    .edupro-notify-toast {
        top: 80px !important;
        right: 14px !important;
        left: 14px !important;
        width: auto !important;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    body.edupro-mobile-topbar-active {
        padding-top: 64px !important;
    }

    .edupro-mobile-topbar {
        height: 60px;
        padding: 8px 10px;
    }

    .edupro-mobile-menu-btn {
        height: 42px;
        padding: 0 13px;
        border-radius: 14px;
        font-size: 13px;
    }

    .edupro-mobile-bell-placeholder,
    .edupro-mobile-topbar #eduproNotifyBell .edupro-notify-bell-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border-radius: 14px !important;
    }

    .edupro-mobile-topbar #eduproNotifyBell .edupro-notify-dropdown {
        top: 66px !important;
        left: 8px !important;
        right: 8px !important;
    }
}

.edupro-card-icon.student,.edupro-card-icon.class{display:flex;align-items:center;justify-content:center}

/* Admin overview - English center dashboard */
.page-template-template-quan-ly .edupro-main{
    width:100%;
    max-width:1540px;
}
.page-template-template-quan-ly .edupro-hero{
    position:relative;
    overflow:hidden;
    border-radius:26px;
    padding:38px 42px;
    margin-bottom:28px;
    background:linear-gradient(135deg,#e60046 0%,#f43f5e 52%,#fb7185 100%);
    box-shadow:0 24px 55px rgba(225,29,72,.24);
}
.page-template-template-quan-ly .edupro-hero:after{
    content:"";
    position:absolute;
    right:-80px;
    top:-90px;
    width:260px;
    height:260px;
    border-radius:999px;
    background:rgba(255,255,255,.16);
}
.edupro-admin-overview-pro{
    display:grid;
    gap:22px;
}
.edupro-admin-overview-pro-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
}
.edupro-admin-overview-pro-head h2{
    margin:12px 0 6px;
    font-size:30px;
    line-height:1.15;
    font-weight:950;
    color:#0f172a;
}
.edupro-admin-overview-pro-head p{
    margin:0;
    color:#64748b;
    font-weight:700;
}
.edupro-admin-overview-pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:9px 16px;
    border-radius:999px;
    background:#fff1f2;
    color:#e11d48;
    font-weight:900;
    font-size:13px;
}
.edupro-admin-overview-pill:before{
    content:"●";
    color:#fb7185;
    font-size:11px;
}
.edupro-admin-overview-month{
    min-width:190px;
    padding:14px 18px;
    border:1px solid #e5e7eb;
    border-radius:18px;
    background:#fff;
    text-align:right;
    box-shadow:0 12px 30px rgba(15,23,42,.05);
}
.edupro-admin-overview-month span{
    display:block;
    font-size:22px;
    font-weight:950;
    color:#4f46e5;
}
.edupro-admin-overview-month strong{
    display:block;
    margin-top:4px;
    color:#64748b;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.edupro-admin-overview-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}
.edupro-admin-stat-card{
    position:relative;
    display:flex;
    align-items:center;
    gap:15px;
    min-height:124px;
    padding:22px;
    border-radius:24px;
    background:#fff;
    border:1px solid #e5e7eb;
    color:#0f172a;
    text-decoration:none;
    overflow:hidden;
    box-shadow:0 14px 36px rgba(15,23,42,.07);
    transition:.22s ease;
}
.edupro-admin-stat-card:before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:5px;
    background:#e11d48;
}
.edupro-admin-stat-card:after{
    content:"";
    position:absolute;
    right:-42px;
    bottom:-42px;
    width:120px;
    height:120px;
    border-radius:999px;
    background:#f8fafc;
}
.edupro-admin-stat-card:hover{
    transform:translateY(-3px);
    box-shadow:0 24px 54px rgba(15,23,42,.12);
}
.edupro-admin-stat-card.green:before{background:#22c55e;}
.edupro-admin-stat-card.amber:before{background:#f59e0b;}
.edupro-admin-stat-card.blue:before{background:#38bdf8;}
.edupro-admin-stat-card.violet:before{background:#7c3aed;}
.edupro-admin-stat-icon{
    position:relative;
    z-index:1;
    flex:0 0 58px;
    width:58px;
    height:58px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:950;
    font-size:18px;
    background:#f1f5f9;
}
.edupro-admin-stat-card.green .edupro-admin-stat-icon{background:#dcfce7;color:#047857;}
.edupro-admin-stat-card.amber .edupro-admin-stat-icon{background:#fef3c7;color:#b45309;}
.edupro-admin-stat-card.blue .edupro-admin-stat-icon{background:#e0f2fe;color:#0369a1;}
.edupro-admin-stat-card.violet .edupro-admin-stat-icon{background:#ede9fe;color:#6d28d9;}
.edupro-admin-stat-content{
    position:relative;
    z-index:1;
    display:grid;
    gap:4px;
}
.edupro-admin-stat-content span{
    color:#64748b;
    font-size:13px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.edupro-admin-stat-content strong{
    font-size:36px;
    line-height:1;
    font-weight:950;
    color:#0f172a;
}
.edupro-admin-stat-content em{
    font-style:normal;
    color:#64748b;
    font-size:13px;
    font-weight:700;
}
.edupro-admin-overview-board{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);
    gap:20px;
    align-items:start;
}
.edupro-admin-overview-panel{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:26px;
    padding:22px;
    box-shadow:0 18px 42px rgba(15,23,42,.07);
}
.edupro-admin-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-bottom:16px;
    margin-bottom:14px;
    border-bottom:1px solid #eef2f7;
}
.edupro-admin-panel-head>div{
    display:flex;
    align-items:center;
    gap:12px;
}
.edupro-admin-panel-head h3{
    margin:0;
    font-size:21px;
    font-weight:950;
    color:#0f172a;
}
.edupro-admin-panel-head a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:0 14px;
    border-radius:999px;
    background:#f5f3ff;
    color:#5b21b6;
    text-decoration:none;
    font-size:13px;
    font-weight:900;
}
.edupro-admin-panel-icon{
    width:44px;
    height:44px;
    border-radius:15px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
}
.edupro-admin-panel-icon.green{background:#dcfce7;}
.edupro-admin-panel-icon.amber{background:#fef3c7;}
.edupro-admin-mini-list,
.edupro-admin-class-list{
    display:grid;
    gap:12px;
}
.edupro-admin-mini-item,
.edupro-admin-class-item{
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px;
    border:1px solid #e8eef7;
    border-radius:18px;
    background:linear-gradient(180deg,#fff,#fbfdff);
    color:#0f172a;
    text-decoration:none;
    transition:.18s ease;
}
.edupro-admin-mini-item:hover,
.edupro-admin-class-item:hover{
    border-color:#c7d2fe;
    transform:translateX(3px);
    box-shadow:0 14px 28px rgba(79,70,229,.08);
}
.edupro-admin-avatar{
    width:46px;
    height:46px;
    border-radius:16px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
    font-weight:950;
    background:#dcfce7;
    color:#047857;
}
.edupro-admin-mini-main{
    min-width:0;
    display:grid;
    gap:3px;
    flex:1;
}
.edupro-admin-mini-main strong,
.edupro-admin-class-top strong{
    color:#0f172a;
    font-size:16px;
    font-weight:950;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.edupro-admin-mini-main em,
.edupro-admin-class-top em{
    color:#64748b;
    font-style:normal;
    font-size:13px;
    font-weight:700;
}
.edupro-admin-mini-date{
    flex:0 0 auto;
    padding:7px 10px;
    border-radius:999px;
    background:#f8fafc;
    color:#475569;
    font-weight:900;
    font-size:12px;
}
.edupro-admin-class-item{
    display:grid;
    gap:12px;
    padding:16px;
}
.edupro-admin-class-top{
    display:flex;
    align-items:center;
    gap:13px;
    min-width:0;
}
.edupro-admin-class-icon{
    width:48px;
    height:48px;
    border-radius:16px;
    background:#eef2ff;
    color:#4f46e5;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    flex:0 0 auto;
}
.edupro-admin-class-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    padding-left:61px;
}
.edupro-admin-class-meta span{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:0 10px;
    border-radius:999px;
    background:#f8fafc;
    color:#475569;
    font-size:12px;
    font-weight:850;
}
.edupro-admin-mini-empty{
    padding:22px;
    border:1px dashed #cbd5e1;
    border-radius:18px;
    color:#64748b;
    font-weight:850;
    text-align:center;
    background:#f8fafc;
}
@media(max-width:1180px){
    .edupro-admin-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
    .edupro-admin-overview-board{grid-template-columns:1fr;}
}
@media(max-width:780px){
    .edupro-admin-overview-pro-head{display:grid;}
    .edupro-admin-overview-month{text-align:left;}
    .edupro-admin-overview-stats{grid-template-columns:1fr;}
    .edupro-admin-class-meta{padding-left:0;}
}


/* =========================================================
   Admin danger zone - xóa sạch dữ liệu test
========================================================= */
.edupro-admin-danger-zone {
    margin-top: 24px;
    padding: 22px 24px;
    border: 1px solid rgba(239, 68, 68, .22);
    border-radius: 22px;
    background: linear-gradient(135deg, #fff 0%, #fff7f7 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.edupro-admin-danger-copy {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.edupro-admin-danger-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #fee2e2;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 22px;
    box-shadow: 0 10px 22px rgba(220, 38, 38, .10);
}

.edupro-admin-danger-copy h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
    color: #991b1b;
}

.edupro-admin-danger-copy p {
    margin: 0;
    max-width: 820px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.edupro-admin-reset-data-btn {
    border: 0;
    border-radius: 14px;
    padding: 13px 18px;
    background: linear-gradient(135deg, #ef4444, #be123c);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 14px 28px rgba(225, 29, 72, .24);
    transition: .2s ease;
}

.edupro-admin-reset-data-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(225, 29, 72, .30);
}

.edupro-admin-reset-data-btn:disabled {
    cursor: wait;
    opacity: .7;
    transform: none;
}

@media (max-width: 900px) {
    .edupro-admin-danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .edupro-admin-reset-data-btn {
        width: 100%;
    }
}
