/* ==========================================================================
   ProKids modern theme
   Loaded after backend.css in the admin, teacher and student panels.
   Only changes look & feel (colour, radius, spacing, type) – layout
   geometry of the sidebar/header is left to backend.css so the
   collapse/expand behaviour keeps working.
   ========================================================================== */

:root {
    /* Friendly palette taken from the EnKids logo */
    --pk-primary: #5b6cff;
    --pk-primary-600: #4453e6;
    --pk-primary-50: #eef0ff;
    --pk-primary-100: #dfe3ff;
    --pk-accent: #9b7bff;
    --pk-orange: #ff8a3d;
    --pk-green: #22c58b;
    --pk-pink: #ff5c8a;
    --pk-yellow: #ffc23d;
    --pk-sky: #36b5f0;

    --pk-ink: #1f2a4d;
    --pk-text: #3f4a6b;
    --pk-muted: #7a84a3;
    --pk-border: #e9ebf5;
    --pk-bg: #f7f8fe;
    --pk-surface: #ffffff;

    --pk-success: #22c58b;
    --pk-warning: #ffb020;
    --pk-danger: #ff4d6d;
    --pk-info: #36b5f0;

    --pk-radius-sm: 12px;
    --pk-radius: 16px;
    --pk-radius-lg: 22px;
    --pk-shadow-sm: 0 2px 6px rgba(31, 42, 77, .05);
    --pk-shadow: 0 8px 22px rgba(31, 42, 77, .07);
    --pk-shadow-lg: 0 16px 40px rgba(31, 42, 77, .12);
    --pk-ring: 0 0 0 4px rgba(91, 108, 255, .18);

    --pk-font: 'Nunito', 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pk-font-head: 'Fredoka', 'Nunito', 'Poppins', system-ui, sans-serif;
}

/* ---------- Base ---------- */
body {
    font-family: var(--pk-font);
    background: var(--pk-bg);
    color: var(--pk-text);
    font-size: 15px;
    letter-spacing: 0;
}
h1, h2, h3, h4, h5, h6,
.edu_title, .edu_sub_title,
.edu_top_header .edu_page_title p,
.form-title {
    font-family: var(--pk-font-head);
    color: var(--pk-ink);
    letter-spacing: -0.015em;
}
a { transition: color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
::selection { background: var(--pk-primary-100); color: var(--pk-ink); }

/* Thin, quiet scrollbars */
* { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- Sidebar ---------- */
.edu_left_header,
.edu_header_sidebar {
    background: var(--pk-surface);
    border-right: 1px solid var(--pk-border);
}
.edu_admin_logo {
    background: linear-gradient(135deg, var(--pk-primary) 0%, var(--pk-accent) 100%);
    border-radius: 0 0 var(--pk-radius-lg) 0;
}
.edu_header_close.responsive_btn span { background: #fff; }

.edu_admin_header_right { padding-top: 20px; }

.edu_admin_menu > ul > li > a {
    color: var(--pk-text);
    font-size: 14.5px;
    font-weight: 500;
    min-height: 46px;
    padding: 11px 14px 11px 18px;
    margin: 2px 12px 2px 0;
    width: calc(100% - 12px);
    border-radius: 0 var(--pk-radius) var(--pk-radius) 0;
}
.edu_admin_menu > ul > li > a svg,
.edu_admin_menu > ul > li > a svg path,
.edu_admin_menu > ul > li > a svg .cls-1 {
    fill: var(--pk-muted);
}
.edu_admin_menu > ul > li > a svg {
    width: 22px;
    height: 22px;
    margin-right: 14px;
}
.edu_admin_menu > ul > li > a:hover {
    background: var(--pk-primary-50);
    color: var(--pk-primary);
}
.edu_admin_menu > ul > li > a:hover svg,
.edu_admin_menu > ul > li > a:hover svg path,
.edu_admin_menu > ul > li > a:hover svg .cls-1 {
    fill: var(--pk-primary);
}
.edu_admin_menu > ul > li.active > a {
    background: var(--pk-primary-50);
    color: var(--pk-primary);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--pk-primary);
}
.edu_admin_menu > ul > li.active > a svg,
.edu_admin_menu > ul > li.active > a svg path,
.edu_admin_menu > ul > li.active > a svg .cls-1 {
    fill: var(--pk-primary);
}
/* Remove the old curved "tab" decoration on the active item */
.edu_admin_menu > ul > li.active > a:before,
.edu_admin_menu > ul > li.active > a:after {
    display: none;
}
.edu_admin_menu ul li.has_sub_menu:after {
    top: 8px;
    opacity: .55;
}
.edu_admin_menu ul li ul.sub-menu { background: transparent; padding: 2px 0 6px; }
.edu_admin_menu ul li ul.sub-menu li { padding-left: 46px; }
.edu_admin_menu ul li ul.sub-menu li a,
.edu_admin_menu ul li ul.sub-menu li a:visited {
    color: var(--pk-muted);
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 12px 7px 22px;
    border-radius: var(--pk-radius-sm);
    margin-right: 12px;
}
.edu_admin_menu ul li ul.sub-menu li a:hover { color: var(--pk-primary); background: var(--pk-primary-50); }
.edu_admin_menu ul li ul.sub-menu li.active a { color: var(--pk-primary); font-weight: 600; }

/* ---------- Top bar ---------- */
.edu_top_header {
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: none;
    border-bottom: 1px solid var(--pk-border);
    padding-top: 18px;
    padding-bottom: 18px;
}
.edu_top_header .edu_page_title p {
    color: var(--pk-ink);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0;
}
.edu_header_close span { background: var(--pk-ink); }
.edu_admin_bar,
.edu_admin_bar:focus,
.edu_admin_bar:hover { color: var(--pk-ink); }
.edu_admin_bar span {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    background: linear-gradient(135deg, var(--pk-primary), var(--pk-accent));
    box-shadow: 0 0 0 3px var(--pk-primary-50);
}
.edu_admin_option {
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    box-shadow: var(--pk-shadow-lg);
    padding: 8px;
}
.edu_admin_option a {
    display: block;
    color: var(--pk-text);
    padding: 9px 12px;
    border-radius: var(--pk-radius-sm);
}
.edu_admin_option a:hover { background: var(--pk-primary-50); color: var(--pk-primary); }
.edu_notifications .notification_count { background: var(--pk-danger); }

/* ---------- Page surfaces ---------- */
.edu_main_wrapper,
.edu_table_wrapper,
.edu_popup_container,
.edu_accordion_content {
    border-radius: var(--pk-radius-lg);
}
.edu_main_wrapper {
    border: 1px solid var(--pk-border);
    box-shadow: var(--pk-shadow-sm);
}
.edu_title,
.edu_logt_title {
    font-weight: 700;
    color: var(--pk-ink);
}
.edu_title { border-color: var(--pk-border) !important; }

/* ---------- Dashboard quick links (soft pastel chips) ---------- */
.edu_quick_links {
    border-radius: var(--pk-radius);
    min-height: 64px;
    padding: 14px 18px;
    font-family: var(--pk-font-head);
    font-weight: 600;
    font-size: 16px;
    border: 2px solid transparent;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.edu_quick_links:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--pk-shadow); }
.edu_quick_links svg { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: #fff; margin-right: 12px; }
.edu_quick_links.light_yellow_bg,
.edu_quick_links.light_yellow_bg:hover,
.edu_quick_links.light_yellow_bg:focus { background: #fff3dc !important; color: #b4610a !important; border-color: #ffe2ad; }
.edu_quick_links.light_yellow_bg svg { fill: #f08a00; }
.edu_quick_links.light_sky_bg,
.edu_quick_links.light_sky_bg:hover,
.edu_quick_links.light_sky_bg:focus { background: #e2f5ff !important; color: #0a6a99 !important; border-color: #bfe7fb; }
.edu_quick_links.light_sky_bg svg { fill: #1aa3e0; }
.edu_quick_links.light_voilate_bg,
.edu_quick_links.light_voilate_bg:hover,
.edu_quick_links.light_voilate_bg:focus { background: #efeaff !important; color: #5b3fc4 !important; border-color: #ddd2ff; }
.edu_quick_links.light_voilate_bg svg { fill: #7c5cff; }
.edu_quick_links.light_red_bg,
.edu_quick_links.light_red_bg:hover,
.edu_quick_links.light_red_bg:focus { background: #ffe6ee !important; color: #c22a5a !important; border-color: #ffc9d9; }
.edu_quick_links.light_red_bg svg { fill: #ff4d7f; }
.edu_quick_links a, .edu_quick_links a:hover { color: inherit !important; }

/* ---------- Dashboard stat cards ---------- */
.edu_color_boxes {
    border-radius: var(--pk-radius-lg);
    border: 1px solid var(--pk-border);
    box-shadow: var(--pk-shadow-sm);
    color: var(--pk-ink);
    transition: transform .18s ease, box-shadow .18s ease;
}
a:hover > .edu_color_boxes,
.edu_color_boxes:hover {
    transform: translateY(-2px);
    box-shadow: var(--pk-shadow);
}
.edu_color_boxes .edu_dash_box_data p {
    color: var(--pk-muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}
.edu_color_boxes .edu_dash_box_data h1,
.edu_color_boxes .edu_dash_box_data h2,
.edu_color_boxes .edu_dash_box_data h3,
.edu_color_boxes .edu_dash_box_data h4 {
    color: var(--pk-ink);
    font-family: var(--pk-font-head);
    font-weight: 600;
    letter-spacing: 0;
}
.edu_color_boxes .edu_dash_box_icon {
    width: 56px;
    height: 56px;
    border-radius: var(--pk-radius);
}
.edu_color_boxes .edu_dash_box_icon svg,
.edu_color_boxes .edu_dash_box_icon img { max-width: 30px; max-height: 30px; }
.edu_dash_info { border-color: var(--pk-border) !important; }
.edu_dash_info a,
.edu_dash_info p,
.edu_dash_info span { color: var(--pk-muted); font-size: 13px; font-weight: 500; }

/* ---------- Buttons ---------- */
.edu_admin_btn,
.btn-primary,
.edu_srch_btn,
.dataTables_wrapper .dt-buttons .btn-primary {
    background: var(--pk-primary) !important;
    border: 1px solid var(--pk-primary) !important;
    color: #fff !important;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 4px 12px rgba(91, 108, 255, .28);
}
.edu_admin_btn:hover,
.btn-primary:hover,
.edu_srch_btn:hover {
    background: var(--pk-primary-600) !important;
    border-color: var(--pk-primary-600) !important;
    box-shadow: 0 8px 18px rgba(91, 108, 255, .32);
    transform: translateY(-1px);
}
.edu_admin_btn:focus,
.btn:focus { box-shadow: var(--pk-ring) !important; }
.btn { border-radius: 999px; font-weight: 600; }
.btn-danger { background: var(--pk-danger); border-color: var(--pk-danger); }
.btn-success { background: var(--pk-success); border-color: var(--pk-success); }

/* ---------- Forms ---------- */
.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--pk-border) !important;
    border-radius: var(--pk-radius-sm) !important;
    background-color: var(--pk-surface);
    color: var(--pk-ink);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--pk-primary) !important;
    box-shadow: var(--pk-ring) !important;
    outline: 0;
}
.form-control::placeholder { color: #94a3b8; }
.form-group > label,
label {
    color: var(--pk-text);
    font-weight: 600;
    font-size: 13.5px;
}
.select2-dropdown {
    border: 1px solid var(--pk-border) !important;
    border-radius: var(--pk-radius-sm) !important;
    box-shadow: var(--pk-shadow-lg);
    overflow: hidden;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--pk-primary) !important;
}

/* ---------- Tables ---------- */
.edu_admin_informationdiv .table {
    border-spacing: 0 !important;
    border-collapse: separate !important;
    text-transform: none;
}
.edu_admin_informationdiv .table thead tr,
.edu_admin_informationdiv .table tr:first-child th {
    background: var(--pk-primary-50) !important;
}
.edu_admin_informationdiv .table tr { background: transparent; }
.edu_admin_informationdiv .table th {
    color: var(--pk-primary-600) !important;
    font-size: 13px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    padding: 14px 15px;
    border-bottom: 0 !important;
    background: var(--pk-primary-50);
}
.edu_admin_informationdiv .table thead th:first-child { border-top-left-radius: var(--pk-radius-sm); }
.edu_admin_informationdiv .table thead th:last-child { border-top-right-radius: var(--pk-radius-sm); }
.edu_admin_informationdiv .table td {
    color: var(--pk-text);
    font-weight: 500 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: var(--pk-surface);
}
.edu_admin_informationdiv .table tbody tr:hover td { background: #fafbff; }
.table-striped tbody tr:nth-of-type(odd) td { background: #fcfcff; }
table.dataTable.no-footer { border-bottom: 1px solid var(--pk-border) !important; }
.edu_admin_informationdiv .table td img {
    border-radius: var(--pk-radius-sm);
    object-fit: cover;
}

/* Status pills & row actions */
.tbl_status_btn,
.edu_admin_informationdiv .table td .btn-info,
.edu_admin_informationdiv .table td .label {
    border-radius: 999px !important;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    letter-spacing: .02em;
}
.tbl_action_ul li a,
.edu_admin_informationdiv .table td a.btn {
    border-radius: var(--pk-radius-sm) !important;
}

/* DataTables chrome */
.dataTables_wrapper .dt-buttons {
    display: inline-flex;
    gap: 6px;
    background: transparent !important;
    padding: 0 !important;
}
.dataTables_wrapper .dt-buttons .dt-button,
.dataTables_wrapper .dt-buttons button {
    background: var(--pk-surface) !important;
    color: var(--pk-text) !important;
    border: 1px solid var(--pk-border) !important;
    border-radius: var(--pk-radius-sm) !important;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px !important;
    margin: 0 !important;
    box-shadow: var(--pk-shadow-sm);
}
.dataTables_wrapper .dt-buttons .dt-button:hover,
.dataTables_wrapper .dt-buttons button:hover {
    background: var(--pk-primary-50) !important;
    color: var(--pk-primary) !important;
    border-color: var(--pk-primary-100) !important;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter { color: var(--pk-muted); font-size: 13.5px; }

.dataTables_paginate .pagination { gap: 6px; flex-wrap: wrap; }
/* bs5 renders <li class="paginate_button"><a class="page-link">; dt renders <a class="paginate_button"> */
.dataTables_wrapper .dataTables_paginate li.paginate_button {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0;
}
.dataTables_paginate a,
.dataTables_paginate .page-link {
    width: auto !important;
    min-width: 38px;
    height: 38px !important;
    line-height: 36px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    text-align: center;
    border-radius: var(--pk-radius-sm) !important;
    border: 1px solid var(--pk-border) !important;
    background: var(--pk-surface) !important;
    color: var(--pk-text) !important;
    box-shadow: none !important;
    font-size: 13.5px;
    font-weight: 600;
}
.dataTables_paginate a i { line-height: 36px; margin: 0; }
.dataTables_paginate a:hover,
.dataTables_paginate .page-link:hover {
    background: var(--pk-primary-50) !important;
    color: var(--pk-primary) !important;
    border-color: var(--pk-primary-100) !important;
}
.dataTables_paginate a.current,
.dataTables_paginate li.active .page-link {
    background: var(--pk-primary) !important;
    border-color: var(--pk-primary) !important;
    color: #fff !important;
}
.dataTables_paginate a.disabled,
.dataTables_paginate li.disabled .page-link { opacity: .45; pointer-events: none; }
.dataTables_wrapper .dt-buttons .dt-button span { line-height: 1.2; }

/* ---------- Popups / modals ---------- */
.edu_popup_container,
.modal-content {
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg) !important;
    box-shadow: var(--pk-shadow-lg);
}
.mfp-bg { background: #0f172a; opacity: .55; }
.modal-header { border-bottom-color: var(--pk-border); }
.modal-footer { border-top-color: var(--pk-border); }

/* ---------- Tabs, accordions ---------- */
.edu-nav-tabs .nav-link,
.nav-tabs .nav-link { border-radius: var(--pk-radius-sm) var(--pk-radius-sm) 0 0; font-weight: 600; color: var(--pk-muted); }
.edu-nav-tabs .nav-link.active,
.nav-tabs .nav-link.active { color: var(--pk-primary); border-bottom: 2px solid var(--pk-primary); }
.edu_accord_parent > span { border-radius: var(--pk-radius-sm); font-weight: 600; }
.edu_accord_parent > span.active { background-color: var(--pk-primary); border-radius: var(--pk-radius-sm) var(--pk-radius-sm) 0 0; }
.edu_accordion_content { border-color: var(--pk-border); }

/* ---------- Toasts & misc ---------- */
#toast-container > div { border-radius: var(--pk-radius) !important; box-shadow: var(--pk-shadow-lg) !important; opacity: 1 !important; }
.edu_preloader { background: var(--pk-bg); }
.note-editor.note-frame { border-color: var(--pk-border) !important; border-radius: var(--pk-radius-sm); }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    body { font-size: 14px; }
    .edu_top_header { padding: 14px 16px; }
    .edu_top_header .edu_page_title p { font-size: 17px; }
    .edu_quick_links { min-height: 56px; }
}

/* Export buttons: old CSS forces a tall fixed height */
.dataTables_wrapper .dt-buttons .dt-button,
.dataTables_wrapper .dt-buttons button { height: 36px !important; line-height: 1 !important; display: inline-flex; align-items: center; }

/* ---------- Login / auth pages ---------- */
body.login-container {
    background: radial-gradient(700px 420px at 8% 0%, #e2e6ff 0%, transparent 60%),
                radial-gradient(600px 380px at 100% 20%, #ffe9dc 0%, transparent 60%),
                radial-gradient(700px 420px at 60% 110%, #dcf7ec 0%, transparent 60%),
                var(--pk-bg);
    min-height: 100vh;
    margin: 0;
    padding: 5vh 0;
}
body.login-container::before { display: none; }
.login-inner-section {
    border: 1px solid var(--pk-border);
    border-radius: 24px;
    box-shadow: var(--pk-shadow-lg);
    padding: 40px;
    overflow: hidden;
}
.login-form-1 {
    background: linear-gradient(160deg, #eef0ff 0%, #fff4ec 100%);
    border-radius: 18px;
    padding: 30px 4%;
}
.right-form form { padding-top: 40px; }
.form-title {
    color: var(--pk-ink);
    font-size: 30px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}
.form-title span { color: var(--pk-muted); font-size: 15px; font-weight: 500; }
.right-form .form-control,
.right-form input[type="text"],
.right-form input[type="email"],
.right-form input[type="password"] {
    width: 100%;
    border: 1px solid var(--pk-border) !important;
    color: var(--pk-ink);
    outline: 0;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    border-radius: var(--pk-radius) !important;
    background: #f8fafc;
}
.right-form .form-control:focus,
.right-form input:focus {
    background: #fff;
    border-color: var(--pk-primary) !important;
    box-shadow: var(--pk-ring) !important;
}
.btnSubmit,
.login-form-1 .btnSubmit {
    background: linear-gradient(135deg, var(--pk-primary), var(--pk-accent));
    border-radius: 999px;
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: 0 8px 20px rgba(91, 108, 255, .30);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btnSubmit:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(91, 108, 255, .36); }
.form_link_forget,
.form_link_forget:hover { color: var(--pk-primary); text-transform: none; }
@media (max-width: 767px) {
    body.login-container { padding: 16px 0; }
    .login-inner-section { padding: 24px 18px; border-radius: 18px; }
    .right-form form { padding-top: 16px; }
}

/* ==========================================================================
   Public website (front_header pages)
   ========================================================================== */
.edu_header_wrapper {
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--pk-border);
    box-shadow: none;
}
.r-btn ul li > a {
    border-radius: 999px !important;
    font-weight: 700;
    padding: 9px 22px !important;
    background: var(--pk-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(91, 108, 255, .28);
}
.r-btn ul li > a:hover { background: var(--pk-primary-600) !important; transform: translateY(-1px); }
.r-btn ul li:last-child > a { background: var(--pk-orange) !important; box-shadow: 0 4px 12px rgba(255, 138, 61, .32); }
.r-btn ul li:last-child > a:hover { background: #f5741f !important; }

.edu-search-form input {
    border: 2px solid var(--pk-border) !important;
    border-radius: 999px !important;
    background: #fff;
    color: var(--pk-ink);
}
.edu-search-form input:focus { border-color: var(--pk-primary) !important; box-shadow: var(--pk-ring); outline: 0; }
.edu-search-icon a { background: var(--pk-primary) !important; border-radius: 999px !important; color: #fff !important; }

/* Left menu */
.menu-bg { background: transparent !important; }
.edu_nav_items > ul > li > a {
    border-radius: var(--pk-radius);
    padding: 10px 16px !important;
    margin: 4px 8px 4px 0;
    color: var(--pk-text) !important;
    font-weight: 700;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.edu_nav_items > ul > li > a svg { color: var(--pk-primary); margin-right: 10px; }
.edu_nav_items > ul > li > a:hover,
.edu_nav_items > ul > li.active > a {
    background: var(--pk-primary-50);
    color: var(--pk-primary) !important;
    transform: translateX(3px);
}
@media (min-width: 992px) {
.col-xl-2.menu-bg .edu_main_menu {
    background: #fff;
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
    margin: 16px 0 0 8px;
    padding: 10px 0;
    box-shadow: var(--pk-shadow-sm);
}
}
.edu-course-info-bedge {
    background: linear-gradient(135deg, var(--pk-orange), var(--pk-pink)) !important;
    border-radius: var(--pk-radius) !important;
    box-shadow: 0 8px 20px rgba(255, 92, 138, .3);
}

/* Page title banners */
.edu_page_title_wrapper { border-radius: var(--pk-radius-lg); overflow: hidden; }
.edu_page_title_text h1,
.edu_page_title_text h2 { font-family: var(--pk-font-head); font-weight: 600; }
.edu_heading, .edu_subTitle { font-family: var(--pk-font-head); }
.edu_subTitle { color: var(--pk-orange) !important; letter-spacing: .08em; }

/* Course cards */
.innerSliderWrap {
    background: #fff;
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
    overflow: hidden;
    box-shadow: var(--pk-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.innerSliderWrap:hover { transform: translateY(-4px); box-shadow: var(--pk-shadow-lg); }
.innerSliderWrap .edu-course-img { background: var(--pk-primary-50); padding: 12px; }
.innerSliderWrap .edu-course-img img { border-radius: var(--pk-radius); }
.swiper-slide { padding: 6px 4px 14px; }
.edu-course-content { padding: 14px 18px 18px; }
.edu-course-title,
.edu-course-title a {
    font-family: var(--pk-font-head);
    font-weight: 600;
    color: var(--pk-ink) !important;
    text-transform: none;
}
.edu-course-price { font-family: var(--pk-font-head); color: var(--pk-primary); }
.edu-course-offer {
    background: var(--pk-pink) !important;
    border-radius: 999px !important;
    padding: 3px 12px !important;
    font-weight: 700;
}
.edu-course-offer:before,
.edu-course-offer:after { display: none !important; }
.edu-enroll-btn,
.edu_readMoreBtn {
    border-radius: 999px !important;
    background: var(--pk-primary) !important;
    color: #fff !important;
    font-weight: 700;
    border: 0 !important;
    box-shadow: 0 4px 12px rgba(91, 108, 255, .28);
}
.edu-enroll-btn:hover,
.edu_readMoreBtn:hover { background: var(--pk-primary-600) !important; transform: translateY(-1px); }

/* Swiper arrows */
.swiper-button-next,
.swiper-button-prev {
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--pk-shadow);
    width: 44px !important;
    height: 44px !important;
    color: var(--pk-primary) !important;
}
.swiper-button-next:after,
.swiper-button-prev:after { font-size: 16px !important; font-weight: 800; }

/* Forms on public pages */
.edu_form_field,
.edu_field_holder input,
.edu_field_holder textarea,
.edu_field_holder select {
    border: 2px solid var(--pk-border) !important;
    border-radius: var(--pk-radius-sm) !important;
    background: #fff;
}
.edu_form_field:focus,
.edu_field_holder input:focus,
.edu_field_holder textarea:focus { border-color: var(--pk-primary) !important; box-shadow: var(--pk-ring); outline: 0; }

/* Footer */
.edu_footer_title,
.edu_footer_heading { font-family: var(--pk-font-head); }

/* ==========================================================================
   Admin dashboard
   ========================================================================== */

/* Welcome banner */
.pk_welcome {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 0 30px;
    padding: 28px 32px;
    border-radius: var(--pk-radius-lg);
    color: #fff;
    background: linear-gradient(120deg, #5b6cff 0%, #8f7bff 55%, #ff8fb1 100%);
    box-shadow: 0 14px 34px rgba(91, 108, 255, .28);
}
.pk_welcome:before,
.pk_welcome:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    pointer-events: none;
}
.pk_welcome:before { width: 220px; height: 220px; right: -60px; top: -90px; }
.pk_welcome:after { width: 140px; height: 140px; right: 220px; bottom: -80px; background: rgba(255, 255, 255, .10); }
.pk_welcome_text { position: relative; z-index: 1; }
.pk_welcome_date {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    margin-bottom: 10px;
}
.pk_welcome h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    margin: 0 0 6px;
}
.pk_welcome p { margin: 0; font-size: 15px; opacity: .9; }
.pk_wave { display: inline-block; animation: pk-wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes pk-wave {
    0%, 60%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(16deg); }
    20%, 40% { transform: rotate(-8deg); }
}
.pk_welcome_stats { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.pk_chip {
    min-width: 116px;
    padding: 12px 18px;
    border-radius: var(--pk-radius);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 6px 16px rgba(31, 42, 77, .10);
    text-align: left;
}
.pk_chip strong {
    display: block;
    font-family: var(--pk-font-head);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
}
.pk_chip span { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--pk-muted); }
.pk_chip_blue strong { color: var(--pk-primary); }
.pk_chip_orange strong { color: var(--pk-orange); }
.pk_chip_green strong { color: var(--pk-green); }
@media (prefers-reduced-motion: reduce) { .pk_wave { animation: none; } }

/* Section titles get a little colour marker */
.edu_dashboard_wrap .edu_title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 18px !important;
}
.edu_dashboard_wrap .edu_title:before {
    content: "";
    width: 8px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--pk-primary), var(--pk-accent));
}

/* Stat cards: own colour each, chip-style footer */
.edu_dashboard_wrap .edu_color_boxes {
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
    padding: 22px 22px 18px;
    border: 0;
    box-shadow: var(--pk-shadow);
}
.edu_dashboard_wrap .edu_color_boxes:before {
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0;
    height: 5px;
    background: var(--pk-card, var(--pk-primary));
}
.edu_dashboard_wrap .row > div:nth-child(6n+1) .edu_color_boxes { --pk-card: #ff5c8a; --pk-card-soft: #ffe6ee; }
.edu_dashboard_wrap .row > div:nth-child(6n+2) .edu_color_boxes { --pk-card: #ff9f1a; --pk-card-soft: #fff3dc; }
.edu_dashboard_wrap .row > div:nth-child(6n+3) .edu_color_boxes { --pk-card: #22b8cf; --pk-card-soft: #e2f7fb; }
.edu_dashboard_wrap .row > div:nth-child(6n+4) .edu_color_boxes { --pk-card: #7c5cff; --pk-card-soft: #efeaff; }
.edu_dashboard_wrap .row > div:nth-child(6n+5) .edu_color_boxes { --pk-card: #22c58b; --pk-card-soft: #dff7ee; }
.edu_dashboard_wrap .row > div:nth-child(6n+6) .edu_color_boxes { --pk-card: #5b6cff; --pk-card-soft: #eef0ff; }
.edu_dashboard_wrap .edu_color_boxes .edu_dash_box_data h3 { color: var(--pk-card, var(--pk-ink)); font-size: 34px; margin: 4px 0 0; }
.edu_dashboard_wrap .edu_color_boxes .edu_dash_box_icon {
    background: var(--pk-card-soft, var(--pk-primary-50)) !important;
    border-radius: 18px;
    transform: rotate(-6deg);
    transition: transform .2s ease;
}
.edu_dashboard_wrap a:hover .edu_dash_box_icon { transform: rotate(0) scale(1.06); }
.edu_dashboard_wrap .edu_dash_info {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px dashed var(--pk-border);
}
.edu_dashboard_wrap .edu_dash_info:before,
.edu_dashboard_wrap .edu_dash_info ul li:first-child:before { display: none; }
.edu_dashboard_wrap .edu_dash_info ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.edu_dashboard_wrap .edu_dash_info ul li { margin: 0 !important; padding: 0 !important; }
.edu_dashboard_wrap .edu_dash_info ul li p {
    margin: 0;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--pk-card-soft, var(--pk-primary-50));
    color: var(--pk-text);
    font-size: 12.5px;
    font-weight: 700;
}
.edu_dashboard_wrap .edu_dash_info ul li p span { color: var(--pk-card, var(--pk-primary)); margin-left: 2px; }

/* Batch filter + performance as one panel */
.edu_dashboard_wrap .score_info_wrap > .edu_admin_informationdiv {
    background: var(--pk-surface);
    border-radius: var(--pk-radius-lg);
    box-shadow: var(--pk-shadow);
    padding: 24px 24px 8px;
    margin: 0 0 30px;
    width: auto;
}
.edu_dashboard_wrap .score_info_wrap .edu_table_wrapper { margin-top: 0; margin-bottom: 10px !important; }
.edu_dashboard_wrap .score_info_wrap .edu_table_wrapper .edu_admin_informationdiv { padding: 0; }
.edu_dashboard_wrap .score_info_wrap .btn.filter_by_admin { width: 100%; height: 44px; }
.edu_dashboard_wrap .edu_score_section {
    background: var(--pk-bg);
    border-radius: var(--pk-radius-lg);
    border: 0;
    box-shadow: none;
}
.edu_dashboard_wrap .edu_score_section:hover { transform: translateY(-3px); box-shadow: var(--pk-shadow); background: #fff; }
.edu_dashboard_wrap .edu_score_info h3,
.edu_dashboard_wrap .edu_score_info h4,
.edu_dashboard_wrap .edu_score_info p { font-family: var(--pk-font-head); }
.edu_dashboard_wrap .edu_score_section .score_por,
.edu_dashboard_wrap .edu_score_section .value,
.edu_dashboard_wrap .edu_score_section h3,
.edu_dashboard_wrap .edu_score_section p { color: var(--pk-ink) !important; font-family: var(--pk-font-head); font-weight: 600; }

@media (max-width: 767px) {
    .pk_welcome { padding: 22px 20px; margin: 0 0 22px; }
    .pk_welcome h2 { font-size: 23px; }
    .pk_chip { min-width: 0; flex: 1 1 30%; padding: 10px 12px; }
    .pk_chip strong { font-size: 20px; }
    .edu_dashboard_wrap .score_info_wrap > .edu_admin_informationdiv { margin: 0 0 24px; padding: 18px 14px 4px; }
}

/* ==========================================================================
   Popups: keep them above the sidebar (z-index 1060) and inside the screen
   ========================================================================== */
.mfp-bg { z-index: 1070 !important; }
.mfp-wrap { z-index: 1071 !important; }
.mfp-container { padding-left: 20px; padding-right: 20px; }
.modal-backdrop { z-index: 1075 !important; }
.modal { z-index: 1076 !important; }
/* Things that open from inside a popup must sit above it */
.select2-container--open,
.select2-dropdown,
.ui-datepicker,
.ui-autocomplete,
.clockpicker-popover,
.popover,
.note-popover,
.datepicker,
.daterangepicker { z-index: 1090 !important; }
#toast-container { z-index: 2000 !important; }

.edu_popup_container {
    width: 100%;
    max-width: min(1100px, calc(100vw - 40px));
    max-height: calc(100vh - 60px);
    padding: 36px 32px 26px;
    border-radius: var(--pk-radius-lg) !important;
    overflow-x: hidden;
    overflow-y: auto;
}
.edu_popup_container::-webkit-scrollbar-thumb,
.edu_popup_container_logout::-webkit-scrollbar-thumb { background-color: #cbd5e1; }

/* Popup title bar */
.edu_sub_title {
    background: linear-gradient(120deg, var(--pk-primary-50), #fdeef5) !important;
    color: var(--pk-ink) !important;
    border-radius: var(--pk-radius) !important;
    padding: 12px 18px !important;
    text-transform: capitalize !important;
    font-family: var(--pk-font-head);
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0;
    cursor: default;
}

/* Round close button */
.edu_popup_container button.mfp-close,
.edu_popup_container_logout button.mfp-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    line-height: 36px;
    padding: 0;
    border-radius: 50% !important;
    background: var(--pk-bg) !important;
    color: var(--pk-text) !important;
    font-size: 24px;
    opacity: 1;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.edu_popup_container button.mfp-close:hover,
.edu_popup_container_logout button.mfp-close:hover {
    background: var(--pk-danger) !important;
    color: #fff !important;
    transform: rotate(90deg);
}
/* Leave room for the close button beside the title */
.edu_popup_container .edu_sub_title { margin-right: 46px; }

/* Checkbox groups inside popups wrap instead of overflowing */
.edu_popup_container .form-group { min-width: 0; }
.edu_popup_container input[type="file"].form-control { padding: 8px 12px; height: auto; }

@media (max-width: 767px) {
    .mfp-container { padding-left: 10px; padding-right: 10px; }
    .edu_popup_container { padding: 28px 16px 20px; max-width: calc(100vw - 20px); }
    .edu_sub_title { font-size: 17px !important; }
}

/* ==========================================================================
   Video / media viewer popups (#view_video_popup on many pages)
   ========================================================================== */
#view_video_popup.edu_popup_container {
    max-width: min(960px, calc(100vw - 40px)) !important;
    padding: 24px 24px 20px !important;
}
#view_video_popup .edu_sub_title { margin-bottom: 18px; }
#view_video_popup .video-container { position: relative; }
#view_video_popup .videoIframeShow {
    display: block;
    margin: 0;
    width: 100%;
    height: auto;
    border-radius: var(--pk-radius);
    overflow: hidden;
    background: #0f172a;
}
#view_video_popup .videoIframeShow > [class*="col"] { max-width: 100%; flex: 0 0 100%; padding: 0; }
#view_video_popup .videoIframeShow #player,
#view_video_popup .videoIframeShow .plyr,
#view_video_popup .videoIframeShow .plyr__video-embed {
    width: 100% !important;
    max-width: 100%;
    border-radius: var(--pk-radius);
}
#view_video_popup .videoIframeShow video,
#view_video_popup .videoIframeShow iframe {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 220px);
    background: #000;
    border: 0;
}
#view_video_popup .videoIframeShow img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
#view_video_popup .videoIframeShow audio { width: 100%; margin: 24px 0; }
#view_video_popup .videoIframeShow > span {
    display: block;
    padding: 12px 4px 0;
    color: var(--pk-text);
    background: #fff;
}
#view_video_popup .plyr--video { --plyr-color-main: var(--pk-primary); }

/* ==========================================================================
   Sidebar & top bar – v2 (colourful icons, gradient active pill)
   ========================================================================== */

/* Sidebar surface */
.edu_left_header,
.edu_header_sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%);
    border-right: 0;
    box-shadow: 4px 0 24px rgba(31, 42, 77, .06);
}

/* Logo area: white, logo keeps its real proportions */
.edu_admin_logo {
    background: #fff !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--pk-border);
    min-height: 76px;
}
.edu_admin_logo .main_logo {
    width: auto !important;
    max-width: 180px;
    height: 48px !important;
    object-fit: contain;
}
.edu_admin_logo .mini_logo { width: auto; max-height: 40px; object-fit: contain; }
.edu_header_close.responsive_btn span { background: var(--pk-ink); }

/* Menu items */
.edu_admin_menu > ul > li > a {
    font-weight: 600;
    color: var(--pk-text);
    border-radius: 14px;
    margin: 3px 14px;
    width: calc(100% - 28px);
    padding: 7px 12px;
    min-height: 50px;
    box-shadow: none !important;
}
.edu_admin_menu > ul > li > a svg {
    width: 36px;
    height: 36px;
    padding: 8px;
    margin-right: 12px;
    border-radius: 11px;
    background: var(--pk-ic-bg, var(--pk-primary-50));
    flex-shrink: 0;
    transition: transform .2s ease, background .2s ease;
}
.edu_admin_menu > ul > li > a svg,
.edu_admin_menu > ul > li > a svg path,
.edu_admin_menu > ul > li > a svg .cls-1,
.edu_admin_menu > ul > li > a svg g {
    fill: var(--pk-ic, var(--pk-primary)) !important;
}
/* Cycle a friendly colour per menu item */
.edu_admin_menu > ul > li:nth-child(6n+1) { --pk-ic: #5b6cff; --pk-ic-bg: #eef0ff; }
.edu_admin_menu > ul > li:nth-child(6n+2) { --pk-ic: #ff5c8a; --pk-ic-bg: #ffe6ee; }
.edu_admin_menu > ul > li:nth-child(6n+3) { --pk-ic: #ff9f1a; --pk-ic-bg: #fff3dc; }
.edu_admin_menu > ul > li:nth-child(6n+4) { --pk-ic: #22b8cf; --pk-ic-bg: #e2f7fb; }
.edu_admin_menu > ul > li:nth-child(6n+5) { --pk-ic: #7c5cff; --pk-ic-bg: #efeaff; }
.edu_admin_menu > ul > li:nth-child(6n+6) { --pk-ic: #22c58b; --pk-ic-bg: #dff7ee; }

.edu_admin_menu > ul > li > a:hover {
    background: var(--pk-ic-bg, var(--pk-primary-50));
    color: var(--pk-ink);
}
.edu_admin_menu > ul > li > a:hover svg { transform: scale(1.08) rotate(-6deg); background: #fff; }
.edu_admin_menu > ul > li > a:hover svg,
.edu_admin_menu > ul > li > a:hover svg path,
.edu_admin_menu > ul > li > a:hover svg .cls-1 { fill: var(--pk-ic, var(--pk-primary)) !important; }

/* Active item: gradient pill with white icon */
.edu_admin_menu > ul > li.active > a,
.edu_admin_menu > ul > li.active_li > a {
    background: linear-gradient(120deg, var(--pk-primary) 0%, var(--pk-accent) 100%) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(91, 108, 255, .30) !important;
}
.edu_admin_menu > ul > li.active > a svg,
.edu_admin_menu > ul > li.active_li > a svg { background: rgba(255, 255, 255, .22); }
.edu_admin_menu > ul > li.active > a svg,
.edu_admin_menu > ul > li.active > a svg path,
.edu_admin_menu > ul > li.active > a svg .cls-1,
.edu_admin_menu > ul > li.active > a svg g,
.edu_admin_menu > ul > li.active_li > a svg,
.edu_admin_menu > ul > li.active_li > a svg path,
.edu_admin_menu > ul > li.active_li > a svg .cls-1,
.edu_admin_menu > ul > li.active_li > a svg g { fill: #fff !important; }
.edu_admin_menu ul li.has_sub_menu:after { top: 13px; right: 22px; }
.edu_admin_menu ul li.has_sub_menu.active:after,
.edu_admin_menu ul li.has_sub_menu.active_li:after { filter: brightness(0) invert(1); opacity: .9; }

/* Sub-menu as a tree line */
.edu_admin_menu ul li ul.sub-menu {
    margin: 4px 14px 6px 38px;
    padding: 2px 0 2px 0;
    border-left: 2px dashed var(--pk-border);
}
.edu_admin_menu ul li ul.sub-menu li { padding-left: 12px; }
.edu_admin_menu ul li ul.sub-menu li a:before { display: none; }
.edu_admin_menu ul li ul.sub-menu li a,
.edu_admin_menu ul li ul.sub-menu li a:visited {
    position: relative;
    padding: 8px 12px 8px 18px;
    margin-right: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--pk-muted);
}
.edu_admin_menu ul li ul.sub-menu li a:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: #cfd4e6;
    transition: background .15s ease, transform .15s ease;
}
.edu_admin_menu ul li ul.sub-menu li a:hover { background: var(--pk-primary-50); color: var(--pk-primary); }
.edu_admin_menu ul li ul.sub-menu li a:hover:after { background: var(--pk-primary); transform: scale(1.2); }
.edu_admin_menu ul li ul.sub-menu li.active a { background: var(--pk-primary-50); color: var(--pk-primary); }
.edu_admin_menu ul li ul.sub-menu li.active a:after { background: var(--pk-orange); transform: scale(1.3); }

/* Collapsed (icon-only) sidebar keeps the coloured squares */
body.edu_header_closed .edu_admin_menu > ul > li > a { padding: 7px 18px 7px 12px; }
body.edu_header_closed .edu_admin_menu > ul > li > a svg { margin-right: 0; }

/* Top bar */
.edu_top_header {
    background: rgba(255, 255, 255, .94);
    border-bottom: 0;
    box-shadow: 0 4px 20px rgba(31, 42, 77, .05);
}
.edu_top_header:after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #5b6cff, #9b7bff, #ff8fb1, #ffc23d, #22c58b);
    opacity: .85;
}
.edu_top_header .edu_header_close {
    width: 44px;
    height: auto;
    padding: 13px 11px;
    margin-right: 22px;
    border-radius: 14px;
    background: var(--pk-primary-50);
    transition: background .15s ease, transform .15s ease;
}
.edu_top_header .edu_header_close:hover { background: var(--pk-primary-100); transform: scale(1.05); }
.edu_top_header .edu_header_close span { background: var(--pk-primary); height: 2.5px; }
.edu_top_header .edu_page_title p {
    background: linear-gradient(90deg, var(--pk-ink), var(--pk-primary-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Profile button as a pill */
.edu_admin_bar,
.edu_admin_bar:focus,
.edu_admin_bar:hover {
    padding: 4px 16px 4px 4px;
    border: 1px solid var(--pk-border);
    border-radius: 999px;
    background: #fff;
    color: var(--pk-ink);
    font-weight: 700;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.edu_admin_bar:hover { border-color: var(--pk-primary-100); box-shadow: var(--pk-shadow); }
.edu_admin_bar span { margin-right: 10px; box-shadow: none; }
a.edu_admin_bar.edu_admin_with_img img { width: 40px; height: 40px; margin-right: 10px; object-fit: cover; }

/* Notification bell */
.edu_notifications {
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--pk-primary-50);
}
.edu_notifications svg { fill: var(--pk-primary); }
.edu_notifications .notification_count { box-shadow: 0 0 0 2px #fff; }

/* ==========================================================================
   Login / Register / Forgot password / Batch register – v2
   ========================================================================== */
body.login-container {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 18%, #ffd6e4 0 70px, transparent 71px),
        radial-gradient(circle at 88% 12%, #d9f3ff 0 90px, transparent 91px),
        radial-gradient(circle at 92% 82%, #fff0c7 0 80px, transparent 81px),
        radial-gradient(circle at 6% 86%, #dcf7ec 0 100px, transparent 101px),
        linear-gradient(160deg, #f4f2ff 0%, #fdf6ff 50%, #f2f8ff 100%);
    background-attachment: fixed;
}
/* confetti dots */
body.login-container::before {
    content: "";
    display: block !important;
    position: fixed;
    inset: 0;
    max-height: none;
    background-image:
        radial-gradient(circle, #5b6cff 2px, transparent 3px),
        radial-gradient(circle, #ff8a3d 2px, transparent 3px),
        radial-gradient(circle, #22c58b 2px, transparent 3px);
    background-size: 140px 140px, 190px 190px, 230px 230px;
    background-position: 0 0, 60px 90px, 120px 30px;
    opacity: .18;
    pointer-events: none;
    z-index: 0;
}
/* Lift only the page content above the confetti layer; popups (.mfp-*), toasts
   and the preloader must keep their own position: fixed. */
body.login-container > .container,
body.login-container > section { position: relative; z-index: 1; }

.login-inner-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 34px 34px 38px;
    border: 0;
    border-radius: 30px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 30px 70px rgba(91, 108, 255, .16), 0 2px 6px rgba(31, 42, 77, .04);
}
.login-inner-section .tp-logo-block img,
.login-inner-section .logo-size,
.login-inner-section .col-md-12 img.img-fluid {
    max-height: 110px;
    width: auto;
    transition: transform .3s ease;
}
.login-inner-section .tp-logo-block:hover img { transform: scale(1.05) rotate(-2deg); }

/* Left illustration panel */
.login-form-1 {
    position: relative;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    padding: 36px 5% !important;
    border-radius: 24px;
    background: linear-gradient(145deg, #5b6cff 0%, #8f7bff 55%, #ff8fb1 100%) !important;
}
@media (max-width: 767px) { .login-form-1.d-none { display: none !important; } }
.login-form-1:before,
.login-form-1:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    animation: pk-float 7s ease-in-out infinite;
}
.login-form-1:before { width: 180px; height: 180px; top: -50px; left: -40px; }
.login-form-1:after { width: 120px; height: 120px; bottom: -30px; right: -20px; animation-delay: -3s; }
.login-form-1 .let-img {
    position: relative;
    z-index: 1;
    max-width: 400px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 40px rgba(31, 42, 77, .18);
    animation: pk-float 6s ease-in-out infinite;
}
@keyframes pk-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Right form */
.right-form { display: flex; flex-direction: column; justify-content: center; padding-left: 28px; }
.right-form form { padding-top: 10px !important; }
.form-title {
    font-size: 34px;
    color: var(--pk-ink);
    margin-bottom: 26px;
}
.form-title span {
    margin-top: 6px;
    font-family: var(--pk-font);
    font-size: 16px;
    font-weight: 600;
    color: var(--pk-muted);
}
.form-title:after {
    content: "";
    display: block;
    width: 54px;
    height: 5px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pk-orange), var(--pk-pink));
}

/* Inputs with icons */
.right-form .form-group { margin-bottom: 16px; }
.right-form .form-control,
.right-form input[type="text"],
.right-form input[type="email"],
.right-form input[type="password"],
.right-form select {
    height: 52px !important;
    padding-left: 48px !important;
    border: 2px solid #eceefa !important;
    border-radius: 16px !important;
    background-color: #f7f8fe !important;
    background-repeat: no-repeat !important;
    background-position: 16px center !important;
    background-size: 20px 20px !important;
    font-weight: 600;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.right-form input:focus,
.right-form select:focus,
.right-form .form-control:focus {
    background-color: #fff !important;
    border-color: var(--pk-primary) !important;
    box-shadow: var(--pk-ring) !important;
}
.right-form input[name="email"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a84a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.right-form input[type="password"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a84a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='3'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.right-form input[name="name"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a84a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.right-form input[name="mobile"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a84a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.right-form input[name="student_city"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a84a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.right-form select { padding-left: 16px !important; }

/* Remember me */
.right-form .loginLinks { display: flex; align-items: center; gap: 8px; }
.right-form .loginLinks input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--pk-primary); }
.right-form .loginLinks label { margin: 0; color: var(--pk-text); font-weight: 600; cursor: pointer; }

/* Main button: full width, gradient, little arrow */
.right-form .btnSubmit,
.right-form .enrollNowSubmit {
    width: 100%;
    height: 54px;
    margin-top: 10px;
    border: 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(120deg, #5b6cff 0%, #8f7bff 60%, #ff8fb1 130%) !important;
    background-size: 160% 100% !important;
    color: #fff !important;
    font-family: var(--pk-font-head);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .03em;
    box-shadow: 0 12px 26px rgba(91, 108, 255, .32);
    transition: background-position .4s ease, transform .15s ease, box-shadow .15s ease;
}
.right-form .btnSubmit:after,
.right-form .enrollNowSubmit:after { content: "  \2192"; transition: margin .2s ease; }
.right-form .btnSubmit:hover,
.right-form .enrollNowSubmit:hover {
    background-position: 100% 0 !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(91, 108, 255, .38);
}
.right-form .btnSubmit:active { transform: translateY(0); }
.right-form .forgot_submit_btn { width: 100%; }

.text-continue { margin-top: 18px; text-align: center; color: var(--pk-muted); font-weight: 600; }
.text-continue a,
.right-form a.form_link_forget { color: var(--pk-primary) !important; font-weight: 800; text-decoration: none !important; }
.text-continue a:hover { text-decoration: underline !important; }

@media (max-width: 767px) {
    body.login-container { padding: 14px 0; }
    .login-inner-section { padding: 22px 18px 26px; border-radius: 24px; }
    .login-inner-section .tp-logo-block img,
    .login-inner-section .logo-size,
    .login-inner-section .col-md-12 img.img-fluid { max-height: 84px; }
    .right-form { padding-left: 15px; }
    .form-title { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
    .login-form-1 .let-img, .login-form-1:before, .login-form-1:after { animation: none; }
}

/* Auth page tweaks */
.right-form a.btnSubmit {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    color: var(--pk-primary) !important;
    border: 2px solid var(--pk-primary-100) !important;
    box-shadow: none;
    text-decoration: none !important;
}
.right-form a.btnSubmit:after { content: none; }
.right-form a.btnSubmit:hover { background: var(--pk-primary-50) !important; border-color: var(--pk-primary) !important; box-shadow: none; }
.right-form .loginLinks { margin-left: 0; padding-left: 0; }
@media (max-width: 767px) {
    .right-form .form-title { font-size: 28px !important; margin-top: 8px !important; }
    .right-form .form-title span { font-size: 15px !important; }
}

/* Video list: "Assessment" button next to the title edit button */
a.btn_assessment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    background: linear-gradient(120deg, #ff8a3d, #ff5c8a);
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    vertical-align: middle;
    box-shadow: 0 4px 12px rgba(255, 92, 138, .28);
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease;
}
a.btn_assessment:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(255, 92, 138, .35); }
a.btn_assessment i { margin: 0; }
a.btn_assessment .assess_count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    color: #e11d48;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}
a.btn_assessment .assess_count.is-empty { background: rgba(255, 255, 255, .35); color: #fff; }
.edu_admin_informationdiv .table td a.btn_assessment,
.table td a.btn_assessment {
    width: auto !important;
    height: auto !important;
    line-height: 1.2 !important;
    padding: 8px 14px !important;
    margin: 0 0 0 8px !important;
    border-radius: 12px !important;
}
.table td a.btn_assessment i {
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    padding: 0 !important;
    background: none !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 15px;
}

/* ==========================================================================
   Row "..." action menus (student / teacher tables): open to the left
   so they never run off the right edge of the screen
   ========================================================================== */
.actions_wrap_dot { display: inline-block; }
.tbl_action_drop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s ease;
}
.tbl_action_drop:hover,
.tbl_action_drop_open { background: var(--pk-primary-50); }
.actions_wrap_dot .tbl_action_ul {
    left: auto !important;
    right: 0;
    top: 44px;
    min-width: 230px;
    max-width: calc(100vw - 32px);
    padding: 8px !important;
    margin: 0;
    list-style: none;
    border: 1px solid var(--pk-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--pk-shadow-lg) !important;
    transform-origin: top right;
    z-index: 30;
}
.actions_wrap_dot .tbl_action_ul:after { right: 13px; }
.edu_admin_informationdiv .table tr:nth-last-child(-n+4) .actions_wrap_dot .tbl_action_ul { top: auto; bottom: 44px; transform-origin: bottom right; }
.edu_admin_informationdiv .table tr:nth-child(-n+3) .actions_wrap_dot .tbl_action_ul { top: 44px; bottom: auto; transform-origin: top right; }
.edu_admin_informationdiv .table tr:nth-last-child(-n+4) .actions_wrap_dot .tbl_action_ul:after { right: 13px; }
.edu_admin_informationdiv .table tr:nth-child(-n+3) .actions_wrap_dot .tbl_action_ul:after { top: -6px; bottom: auto; transform: rotate(45deg); }
.tbl_action_ul > li { padding-top: 0 !important; }
.tbl_action_ul > li > a {
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--pk-text) !important;
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none !important;
}
.tbl_action_ul > li > a:hover,
.tbl_action_ul > li > a:focus { background: var(--pk-primary-50); color: var(--pk-primary) !important; }
.tbl_action_ul .action_drop_icon {
    flex: 0 0 32px;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    background: var(--pk-primary-50) !important;
    color: var(--pk-primary) !important;
}
.tbl_action_ul .action_drop_icon i,
.tbl_action_ul .action_drop_icon svg { margin: 0 !important; color: var(--pk-primary) !important; fill: var(--pk-primary) !important; font-size: 15px; }
.tbl_action_ul > li:last-child > a:hover .action_drop_icon,
.tbl_action_ul > li > a.deleteData:hover .action_drop_icon { background: #ffe6ee !important; }
.tbl_action_ul .action_drop_icon i {
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Student top bar: "My Course" button, empty live-class slot, no underlines */
.edu_top_header a,
.edu_top_header a:hover,
.edu_admin_bar,
.edu_admin_bar:hover { text-decoration: none !important; }
#onlineClassBtn,
.edu_top_header a.edu_admin_bar:has(> .edu_admin_btn) {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    min-width: 0;
}
.edu_top_header a.edu_admin_bar > .edu_admin_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    line-height: 1;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 14px;
    letter-spacing: .02em;
}
.edu_top_header .edu_admin_btn i {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    color: #fff !important;
}
@media (max-width: 767px) {
    /* "My Course" shrinks to a round icon so the top bar fits on one line */
    .edu_top_header a.edu_admin_bar > .edu_admin_btn { width: 42px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
    .edu_top_header a.edu_admin_bar > .edu_admin_btn i { font-size: 16px; }
    .edu_top_header .edu_page_title.mr-3 { margin-right: 6px !important; }
    .edu_top_header a.edu_admin_bar.mr-3 { margin-right: 0 !important; }
}
@media (max-width: 767px) {
    .edu_top_header a.edu_admin_bar > .edu_admin_btn { width: 42px !important; min-width: 0 !important; }
    /* Profile button: avatar only (name hidden) to save space */
    .edu_top_header a.edu_admin_bar.edu_admin_with_img { font-size: 0 !important; padding: 3px !important; margin-top: 0 !important; }
    .edu_top_header a.edu_admin_bar.edu_admin_with_img > span,
    .edu_top_header a.edu_admin_bar.edu_admin_with_img > img { margin-right: 0 !important; font-size: 18px; }
    .edu_top_header a.edu_admin_bar.edu_admin_with_img > i,
    .edu_top_header a.edu_admin_bar.edu_admin_with_img > svg { display: none; }
    .edu_top_header .btna { align-items: center; }
}
@media (max-width: 767px) {
    /* Keep the student top bar on a single row */
    .edu_top_header { flex-wrap: nowrap !important; gap: 8px; }
    .edu_top_header .edu_header_left { flex: 1 1 auto; width: auto !important; min-width: 0; }
    .edu_top_header .edu_header_left .edu_header_close { margin-right: 10px; flex-shrink: 0; }
    .edu_top_header .edu_header_left .edu_page_title { min-width: 0; }
    .edu_top_header .edu_header_left .edu_page_title p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 17px; }
    .edu_top_header .edu_admin_header_info { flex: 0 0 auto; width: auto !important; flex-wrap: nowrap !important; align-items: center; gap: 6px; }
    .edu_top_header .btna,
    .edu_top_header .btnb { align-items: center; height: auto !important; margin: 0 !important; }
    .edu_top_header .notification-wrapper,
    .edu_top_header .notification-info,
    .edu_top_header .edu_admin { height: auto !important; margin: 0 !important; padding: 0 !important; display: flex; align-items: center; }
}
@media (max-width: 767px) {
    .edu_top_header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        max-height: 72px !important;
        padding: 12px 14px !important;
    }
}

/* Student notification bell as a round tile */
.notification-wrapper .notification-info {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px !important;
    border-radius: 14px;
    background: var(--pk-primary-50);
    transition: background .15s ease;
}
.notification-wrapper .notification-info:hover { background: var(--pk-primary-100); }
.notification-wrapper .header-icon { display: flex; align-items: center; justify-content: center; }
.notification-wrapper .header-icon svg { width: 20px; height: 20px; fill: var(--pk-primary); }
.notification-wrapper .header-icon span {
    top: -12px;
    right: -12px;
    min-width: 18px;
    width: auto;
    height: 18px;
    padding: 0 4px;
    line-height: 18px;
    border-radius: 999px;
    background: var(--pk-danger);
    box-shadow: 0 0 0 2px #fff;
    font-weight: 800;
}
.notification-wrapper .header-icon { height: auto !important; }
.notification-wrapper .header-icon svg { margin: 0 !important; }

/* Student panel has no sidebar (it is display:none), so don't reserve room for it */
body.student-panel .edu_admin_content,
body.student-panel.edu_header_closed .edu_admin_content { padding-left: 24px !important; padding-right: 24px !important; }
@media (max-width: 767px) {
    body.student-panel .edu_admin_content,
    body.student-panel.edu_header_closed .edu_admin_content { padding-left: 12px !important; padding-right: 12px !important; }
}
body.student-panel .edu_top_header,
body.student-panel.edu_header_closed .edu_top_header { margin-left: 0 !important; }
body.student-panel .edu_admin_footer { left: 0 !important; }
body.student-panel .edu_top_header .edu_header_close { display: none; }

/* Admin dashboard: centre the quick links block, its title and the stat cards */
.edu_dashboard_wrap .dasboard_links .edu_title { justify-content: center; }
.edu_dashboard_wrap .edu_quick_links_wrapper .custom_container { margin-left: auto; margin-right: auto; }
.edu_dashboard_wrap .edu_quick_links_wrapper .row,
.edu_dashboard_wrap .dasboard_links .row { justify-content: center; }
.edu_dashboard_wrap .edu_dashboard_widgets > .row { justify-content: center; }

/* Video list: playlist (music) button right after the Assessment button */
.edu_admin_informationdiv .table td a.btn_playlist,
.table td a.btn_playlist {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    margin: 0 0 0 8px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #5b6cff, #9b7bff);
    color: #fff !important;
    vertical-align: middle;
    box-shadow: 0 4px 12px rgba(91, 108, 255, .28);
    transition: transform .15s ease, box-shadow .15s ease;
}
.table td a.btn_playlist:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(91, 108, 255, .35); }
.table td a.btn_playlist i {
    width: auto !important; height: auto !important; line-height: 1 !important; margin: 0 !important; padding: 0 !important;
    background: none !important; color: #fff !important; box-shadow: none !important; font-size: 15px;
}

/* ==========================================================================
   Student Manager: filter + bulk upload toolbar
   ========================================================================== */
.sm-toolbar { display: grid; gap: 18px; margin-bottom: 24px; }
.sm-card {
    background: #fff; border-radius: var(--pk-radius-lg); padding: 20px 22px;
    box-shadow: var(--pk-shadow-sm); border: 1px solid var(--pk-border);
}
.sm-card h4 { margin: 0; font-size: 18px; color: var(--pk-ink); text-transform: none; }
.sm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sm-filters .sm-card-head { margin-bottom: 16px; }
.sm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sm-btn { display: inline-flex !important; align-items: center; gap: 6px; height: 42px; padding: 0 18px !important; margin: 0 !important; line-height: 1 !important; font-size: 14px !important; white-space: nowrap; }
.sm-btn i { margin: 0 !important; }
.sm-btn-ghost { background: #fff !important; color: var(--pk-primary) !important; border: 2px solid var(--pk-primary-100) !important; box-shadow: none !important; }
.sm-btn-ghost:hover { background: var(--pk-primary-50) !important; }
.btn-danger.sm-btn { background: var(--pk-danger) !important; border-color: var(--pk-danger) !important; color: #fff !important; }

.sm-filter-row { display: grid; grid-template-columns: 1fr 1fr 2fr auto; gap: 14px; align-items: end; }
.sm-field { min-width: 0; }
.sm-field label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--pk-muted); }
.sm-field .form-control, .sm-field .select2-container { width: 100% !important; }
.sm-field .select2-container .select2-selection { min-height: 44px; }
.sm-field-btn .btn { height: 44px; min-width: 130px; margin: 0; }

.sm-upload { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(120deg, #f7f8ff, #fff8f1); }
.sm-upload-icon { flex: 0 0 48px; height: 48px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: var(--pk-shadow-sm); }
.sm-upload-body { flex: 1 1 220px; min-width: 0; }
.sm-upload-body p { margin: 2px 0 0; padding: 0; color: var(--pk-muted); font-size: 13.5px; font-weight: 600; }
.sm-upload-body a { color: var(--pk-primary); font-weight: 800; }
.sm-upload-input { flex: 1 1 260px; min-width: 0; }
.sm-upload-input input[type="file"] { width: 100%; }

@media (max-width: 991px) {
    .sm-filter-row { grid-template-columns: 1fr 1fr; }
    .sm-field-wide { grid-column: 1 / -1; }
    .sm-field-btn { grid-column: 1 / -1; }
    .sm-field-btn .btn { width: 100%; }
}
@media (max-width: 575px) {
    .sm-filter-row { grid-template-columns: 1fr; }
    .sm-actions { width: 100%; }
    .sm-actions .sm-btn { flex: 1 1 auto; justify-content: center; }
    .sm-upload .sm-btn { width: 100%; justify-content: center; }
}
.sm-field-btn .btn.find_student { font-size: 14px !important; font-weight: 700; letter-spacing: .02em; }

/* ==========================================================================
   Admin filter bars (Video, Notes, Books, Old papers, Questions, Results,
   Live class, Payments ...): all use .edu_btn_wrapper.sectionHolder with
   selects + buttons. Only wrappers that contain a <select> are touched.
   ========================================================================== */
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) {
    background: #fff;
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
    box-shadow: var(--pk-shadow-sm);
    padding: 18px 20px 4px;
    margin-bottom: 24px;
}
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) > .row,
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) form > .row {
    align-items: flex-end;
}
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) .form-group { margin-bottom: 14px; }
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) .form-group > label {
    display: block; margin-bottom: 6px; font-size: 13px; font-weight: 800; color: var(--pk-muted);
}
/* same height for every control in the bar */
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) select.form-control,
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) input.form-control,
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) .select2-container .select2-selection--single {
    height: 44px !important;
}
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) .select2-container { width: 100% !important; }
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) .select2-selection--single .select2-selection__rendered { line-height: 42px !important; padding-left: 16px; }
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) .select2-selection--single .select2-selection__arrow { height: 42px !important; }
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) .select2-selection--multiple { min-height: 44px !important; }
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) .btn,
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) .edu_admin_btn {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
    height: 44px; padding: 0 20px !important; margin: 0 !important; line-height: 1 !important;
    white-space: nowrap; font-size: 14px;
}
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) input[type="button"].btn,
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) input[type="submit"].btn { width: 100%; }
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) .btn i,
.edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) .edu_admin_btn i { margin: 0 !important; }
@media (max-width: 767px) {
    .edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) { padding: 14px 14px 2px; }
    .edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) .btn,
    .edu_admin_content .edu_btn_wrapper.sectionHolder:has(select) .edu_admin_btn { width: 100%; }
}

/* Student video player popup: bigger, video takes most of the width */
body.student-panel #view_video_popup.edu_popup_container {
    max-width: min(1400px, calc(100vw - 40px)) !important;
    padding: 28px 30px 24px !important;
}
body.student-panel #view_video_popup .video-content { align-items: flex-start; gap: 24px; }
body.student-panel #view_video_popup .video-section { flex: 1 1 auto; min-width: 0; display: block; padding: 0; }
body.student-panel #view_video_popup .videoIframeShow video,
body.student-panel #view_video_popup .videoIframeShow iframe { max-height: calc(100vh - 230px); }
body.student-panel #view_video_popup .number-section { flex: 0 0 190px; padding: 0; }
body.student-panel #view_video_popup .number-title { margin-top: 0; }
body.student-panel #view_video_popup .number-grid { margin-left: 0; }
body.student-panel #view_video_popup .vas-panel { max-width: none; }
@media (max-width: 900px) {
    body.student-panel #view_video_popup .video-content { flex-direction: column; }
    body.student-panel #view_video_popup .number-section { flex-basis: auto; width: 100%; }
}
/* use the full popup width: no shrink-to-content, video grows with the width */
body.student-panel #view_video_popup .edu_popup_wrapper,
body.student-panel #view_video_popup .edu_popup_inner { width: 100%; align-items: stretch; }
body.student-panel #view_video_popup .video-content { width: 100%; }
body.student-panel #view_video_popup .videoIframeShow video,
body.student-panel #view_video_popup .videoIframeShow iframe { max-height: calc(100vh - 120px); }
body.student-panel #view_video_popup .vas-panel { width: 100%; }
/* Student video popup: tidy card for the numbered parts list */
body.student-panel #view_video_popup .number-section {
    flex: 0 0 200px; align-self: stretch; padding: 16px 14px; border-radius: 20px;
    background: #f7f8fe; border: 1px solid #eceefa; text-align: center;
}
body.student-panel #view_video_popup .number-title { margin: 0 0 14px; }
body.student-panel #view_video_popup .number-title .edu_sub_title { margin: 0 !important; width: 100%; font-size: 17px !important; padding: 10px 12px !important; }
body.student-panel #view_video_popup .number-grid {
    display: grid; grid-template-columns: repeat(2, 64px); gap: 12px; justify-content: center;
    margin: 0 !important; max-height: calc(100vh - 260px); overflow-y: auto; padding: 2px;
}
body.student-panel #view_video_popup .number-item {
    width: 64px !important; height: 48px; padding: 0 !important; margin: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px; background-size: cover; background-position: center;
    box-shadow: 0 3px 8px rgba(31,42,77,.12); transition: transform .15s ease;
}
body.student-panel #view_video_popup .number-item:hover { transform: translateY(-2px); }
@media (max-width: 900px) {
    body.student-panel #view_video_popup .number-grid { grid-template-columns: repeat(auto-fill, 64px); max-height: none; }
}
/* #videoGrid (.number-grid) gets a second .number-grid inserted by JS:
   outer box = plain scroll container, inner box = the 2-column grid */
body.student-panel #view_video_popup #videoGrid.number-grid {
    display: block !important; grid-template-columns: none !important;
    max-height: calc(100vh - 260px); overflow-x: hidden; overflow-y: auto; padding: 2px 0;
}
body.student-panel #view_video_popup #videoGrid .number-grid {
    display: grid !important; grid-template-columns: repeat(2, 64px) !important; gap: 12px !important;
    justify-content: center; margin: 0 !important; max-height: none; overflow: visible; padding: 2px;
}
@media (max-width: 900px) {
    body.student-panel #view_video_popup #videoGrid .number-grid { grid-template-columns: repeat(auto-fill, 64px) !important; }
}

/* Student Manager bulk upload: drop the global "Select your file" overlay
   (backend.css input[type=file]:before) so the chosen file name is visible */
.sm-upload-input input[type="file"] {
    height: auto; min-height: 46px; padding: 6px 8px !important; overflow: visible;
    border: 2px dashed #c9cff5; border-radius: 14px; background: #fff;
    font-size: 14px; font-weight: 600; color: var(--pk-ink); cursor: pointer;
}
.sm-upload-input input[type="file"]::before { content: none !important; display: none !important; }
.sm-upload-input input[type="file"]::file-selector-button {
    margin-right: 12px; padding: 8px 16px; border: 0; border-radius: 999px;
    background: var(--pk-primary-50); color: var(--pk-primary); font-weight: 800; cursor: pointer;
}
.sm-upload-input input[type="file"]::-webkit-file-upload-button {
    margin-right: 12px; padding: 8px 16px; border: 0; border-radius: 999px;
    background: var(--pk-primary-50); color: var(--pk-primary); font-weight: 800; cursor: pointer;
}
.sm-upload-input input[type="file"]:hover { border-color: var(--pk-primary); }

/* Student video popup v3: bigger, and never show black side bars.
   The video keeps its own shape (no forced 16:9 box, no black background). */
body.student-panel #view_video_popup.edu_popup_container {
    max-width: min(1700px, calc(100vw - 32px)) !important;
    padding: 24px 26px 22px !important;
}
body.student-panel #view_video_popup .videoIframeShow {
    background: transparent !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    border-radius: 0;
}
body.student-panel #view_video_popup .videoIframeShow video {
    aspect-ratio: auto !important;
    width: auto !important;
    height: calc(100vh - 200px) !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain;
    background: transparent !important;
    border-radius: 16px;
    margin: 0 auto;
}
/* YouTube embeds have no intrinsic size, keep them 16:9 but transparent around */
body.student-panel #view_video_popup .videoIframeShow iframe { background: transparent !important; max-height: calc(100vh - 200px); }
@media (max-width: 900px) {
    body.student-panel #view_video_popup .videoIframeShow video { height: auto !important; width: 100% !important; }
}

/* Student video popup: the video title is a button (plays the main video) */
body.student-panel #view_video_popup .number-title .edu_sub_title#viewVideoTopic {
    background: linear-gradient(120deg, #5b6cff, #4453e6) !important;
    color: #fff !important;
    cursor: pointer !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 14px rgba(91, 108, 255, .30);
    transition: transform .15s ease, box-shadow .15s ease;
}
body.student-panel #view_video_popup #viewVideoTopic::before { content: "\25B6\00a0"; font-size: 12px; }
body.student-panel #view_video_popup #viewVideoTopic:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(91, 108, 255, .38); }
/* active = the one that is playing now */
body.student-panel #view_video_popup #viewVideoTopic.active,
body.student-panel #view_video_popup .number-item.active {
    box-shadow: 0 0 0 4px #fff, 0 0 0 7px #ff8a3d !important;
    transform: scale(1.04);
}
body.student-panel #view_video_popup .number-item.active { color: #1f2a4d !important; }

/* Student Manager bulk upload: chosen file preview */
.sm-file-preview {
    display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px;
    border-radius: 14px; background: #effcf6; border: 2px solid #c9efdf;
}
.sm-file-preview[hidden] { display: none; }
.sm-file-icon { flex: 0 0 40px; height: 40px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.sm-file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sm-file-info strong { font-size: 14px; color: var(--pk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-file-info small { font-size: 12px; font-weight: 700; color: #16a374; }
.sm-file-clear {
    flex: 0 0 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; color: var(--pk-muted);
    font-size: 20px; line-height: 1; cursor: pointer;
}
.sm-file-clear:hover { background: var(--pk-danger); color: #fff; }
.sm-upload-input input[type="file"].has-file { border-color: #22c58b; }
.sm-file-preview.is-bad { background: #fff1f5; border-color: #ffc9d9; }
.sm-file-preview.is-bad small { color: #c22a5a; }

/* Select2 dropdowns: show the whole list (no 200px limit with inner scrollbar) */
.select2-container--default .select2-results > .select2-results__options { max-height: none !important; }
body.student-panel #view_video_popup #viewVideoTopic::before { content: none !important; }

/* Student video popup: video sits in a soft box that fills the space up to the
   numbers panel, video centred inside; small gap between the two boxes */
body.student-panel #view_video_popup .video-content { gap: 14px; align-items: stretch; }
body.student-panel #view_video_popup .video-section {
    display: flex !important; align-items: center; justify-content: center;
    padding: 14px !important; border-radius: 20px;
    background: transparent; border: 0;
}
body.student-panel #view_video_popup .video-section .videoIframeShow { margin: 0 auto; background: transparent; }
body.student-panel #view_video_popup .video-section .videoIframeShow video,
body.student-panel #view_video_popup .video-section .videoIframeShow iframe,
body.student-panel #view_video_popup .video-section .videoIframeShow .plyr { margin: 0 auto; border-radius: 16px; }
/* no black strips beside the video: the player takes the video's own shape,
   and any leftover space shows the box colour instead of black */
body.student-panel #view_video_popup .videoIframeShow,
body.student-panel #view_video_popup .videoIframeShow .plyr,
body.student-panel #view_video_popup .videoIframeShow .plyr__video-wrapper { background: transparent !important; }
body.student-panel #view_video_popup .videoIframeShow video {
    aspect-ratio: auto !important; height: auto !important; width: 100% !important;
    max-height: calc(100vh - 150px); object-fit: contain; background: transparent !important;
}
body.student-panel #view_video_popup .videoIframeShow iframe { background: transparent !important; }

/* Student video popup = full screen, no scrolling: the video shrinks to fit the
   height, and the numbers panel (with the Quiz button) always stays visible */
@media (min-width: 901px) {
    body.student-panel .mfp-wrap:has(#view_video_popup) .mfp-container { padding: 0 !important; }
    body.student-panel .mfp-wrap:has(#view_video_popup) { overflow: hidden !important; }
    body.student-panel #view_video_popup.edu_popup_container {
        width: calc(100vw - 24px) !important; max-width: none !important;
        height: calc(100dvh - 24px) !important; margin: 12px auto !important;
        padding: 16px 18px !important; overflow: hidden !important; box-sizing: border-box;
    }
    body.student-panel #view_video_popup .edu_popup_wrapper,
    body.student-panel #view_video_popup .edu_popup_inner { height: 100%; overflow: hidden; padding: 0 !important; }
    body.student-panel #view_video_popup .video-content { height: 100%; align-items: stretch; gap: 12px; }
    body.student-panel #view_video_popup .video-section { height: 100%; min-height: 0; padding: 10px !important; overflow: hidden; }
    body.student-panel #view_video_popup .video-section .videoIframeShow { width: 100%; max-height: 100%; }
    body.student-panel #view_video_popup .videoIframeShow video,
    body.student-panel #view_video_popup .videoIframeShow iframe { max-height: calc(100dvh - 76px) !important; }
    body.student-panel #view_video_popup .number-section {
        height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
        padding: 12px !important; margin-right: 26px;
    }
    body.student-panel #view_video_popup .number-title { flex: 0 0 auto; margin: 0 0 10px !important; }
    body.student-panel #view_video_popup #videoGrid.number-grid { flex: 1 1 auto; min-height: 0; max-height: none !important; }
    body.student-panel #view_video_popup .number-section .vas-panel-side { flex: 0 0 auto; margin-top: 10px; }
}

/* Quiz button at the top of the side panel (under the video title), smaller video */
body.student-panel #view_video_popup .number-section .number-title { order: 1; }
body.student-panel #view_video_popup .number-section .vas-panel-side { order: 2; margin: 0 0 12px !important; }
body.student-panel #view_video_popup .number-section #videoGrid { order: 3; }
@media (min-width: 901px) {
    body.student-panel #view_video_popup .videoIframeShow video,
    body.student-panel #view_video_popup .videoIframeShow iframe { max-height: calc(100dvh - 140px) !important; }
    body.student-panel #view_video_popup .video-section .videoIframeShow { width: 92%; }
}

/* YouTube (Plyr) player: its height comes from its width (16:9), so cap the width
   by the free height — the whole player incl. the control bar always fits */
@media (min-width: 901px) {
    body.student-panel #view_video_popup .video-section .videoIframeShow {
        width: min(100%, calc((100dvh - 96px) * 16 / 9)) !important; max-height: none;
    }
    body.student-panel #view_video_popup .videoIframeShow #player,
    body.student-panel #view_video_popup .videoIframeShow .plyr,
    body.student-panel #view_video_popup .videoIframeShow .plyr__video-embed { width: 100% !important; max-height: none !important; }
    body.student-panel #view_video_popup .videoIframeShow .plyr iframe { max-height: none !important; height: 100% !important; }
}

/* Quiz box right after the last number button */
body.student-panel #view_video_popup .number-section #videoGrid { order: 2; flex: 0 1 auto !important; }
body.student-panel #view_video_popup .number-section .vas-panel-side { order: 3; margin: 12px 0 0 !important; }

/* Player box = the video's real shape (--vr is set from the video file when it loads),
   so the control bar is exactly as wide as the picture; height still fits the screen */
@media (min-width: 901px) {
    body.student-panel #view_video_popup .video-section .videoIframeShow {
        width: min(100%, calc((100dvh - 140px) * var(--vr, 1.7778))) !important;
    }
    body.student-panel #view_video_popup .videoIframeShow video {
        width: 100% !important; height: auto !important; max-height: none !important;
    }
}
body.student-panel #view_video_popup .number-section .vas-panel-side { margin-top: 22px !important; }
/* keep the side panel clear of the popup's close (×) button */
@media (min-width: 901px) {
    body.student-panel #view_video_popup .number-section { margin-right: 46px !important; }
}
