/**
 * Benchmark Learning — app-wide visual refresh
 * Must load LAST (after style.css, custom.css, main-v2.css).
 */

/* ------------------------------------------------------------------ */
/* Design tokens (refine existing theme variables)                     */
/* ------------------------------------------------------------------ */
:root {
    --bm-font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --bm-radius-sm: 10px;
    --bm-radius-md: 14px;
    --bm-radius-lg: 18px;
    --bm-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --bm-shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
    --bm-shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.12);
    --bm-accent: #0ea5e9;
    --bm-accent-soft: rgba(14, 165, 233, 0.12);
    --bm-body: #f4f7fb;
    --bm-surface: #ffffff;
    --bm-border: rgba(15, 23, 42, 0.08);
}

body.dark {
    --bm-body: #0f1114;
    --bm-surface: #1a1d21;
    --bm-border: rgba(255, 255, 255, 0.08);
    --bm-shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
    --bm-shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
}

/* Align theme primary with refreshed accent (keeps existing variable usage) */
:root {
    --main-primary: #0ea5e9;
    --primary-color: #0ea5e9;
    --secondary-color: #0ea5e9;
    --sidebar-sl-bg: #0284c7;
    --tooltip-bg: #0284c7;
    --sidebar-color: linear-gradient(165deg, #0369a1 0%, #0ea5e9 55%, #38bdf8 100%);
}

body.dark {
    --sidebar-color: linear-gradient(165deg, #0c4a6e 0%, #1e293b 55%, #0f172a 100%);
}

/* ------------------------------------------------------------------ */
/* Typography & base                                                  */
/* ------------------------------------------------------------------ */
html {
    background-color: var(--bm-body);
    min-height: 100%;
}

body {
    font-family: var(--bm-font-sans) !important;
    background-color: var(--bm-body) !important;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.dark html {
    background-color: var(--bm-body);
}

/* Keep icon fonts working (Material / MDI / Font Awesome) */
.material-symbols-outlined {
    font-family: "Material Symbols Outlined" !important;
}
.material-symbols-rounded {
    font-family: "Material Symbols Rounded" !important;
}
.material-icons-outlined {
    font-family: "Material Icons Outlined" !important;
}
.mdi {
    font-family: "Material Design Icons" !important;
}
.fa,
.fas,
.far,
.fab,
.fal {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
}
[class^="bx-"] {
    font-family: boxicons !important;
}

/* Legacy style.css sets main.home to height:100vh only — content overflows and shows a
   different body tone. Stretch the app shell and match the page canvas to body. */
body.bm-app main.home,
body.bm-app main.home.home {
    height: auto !important;
    min-height: 100vh !important;
}

body.bm-app .home {
    background-color: var(--bm-body);
}

body.dark.bm-app .home {
    background-color: var(--bm-body);
}

/* Main content area */
body.bm-app .main#main {
    padding-top: 12px;
}

body.bm-app .main#main .container-fluid {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ------------------------------------------------------------------ */
/* Sticky header + glass topbar                                       */
/* ------------------------------------------------------------------ */
#header {
    position: sticky;
    top: 0;
    z-index: 1036;
    width: 100%;
}

.bm-topbar {
    position: relative;
    border-radius: var(--bm-radius-md);
    margin: 10px 10px 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--bm-border);
    box-shadow: var(--bm-shadow-md);
}

body.dark .bm-topbar {
    background: rgba(31, 41, 55, 0.88);
}

.bm-topbar .navbar_container .title_header {
    padding: 10px 12px;
}

.bm-topbar .navbar_container .title_header .main_title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.bm-topbar .navbar_container .search_box {
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--bm-border);
    box-shadow: var(--bm-shadow-sm);
    background: var(--bm-surface) !important;
}

.bm-topbar .navbar_container .search_box .form-control::placeholder {
    opacity: 0.72;
}

.bm-topbar .nav-link.icon {
    border-radius: 12px;
    transition: background-color 0.15s ease, transform 0.12s ease;
}

.bm-topbar .nav-link.icon:hover {
    background: rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

body.dark .bm-topbar .nav-link.icon:hover {
    background: rgba(255, 255, 255, 0.08);
}

.bm-topbar .app-sidebar__toggle {
    background: var(--bm-accent-soft) !important;
    color: var(--main-primary) !important;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

/* Ensure topbar content always sits above decorative vectors */
.bm-topbar .navbar_container {
    position: relative;
    z-index: 2;
}

.bm-topbar .svg-div,
.bm-topbar .svg-div2 {
    z-index: 1;
    pointer-events: none;
}

/* Decorative SVGs in header — softer */
.bm-topbar .svg-div path,
.bm-topbar .svg-div2 path {
    stroke-opacity: 0.35;
}

/* ------------------------------------------------------------------ */
/* Sidebar                                                            */
/* ------------------------------------------------------------------ */
.bm-sidebar.sidebar {
    border-radius: var(--bm-radius-lg);
    box-shadow: var(--bm-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

body.dark .bm-sidebar.sidebar {
    border-color: rgba(255, 255, 255, 0.07);
}

.bm-sidebar .menu-links > li.nav-link {
    height: 42px;
}

.bm-sidebar li a {
    margin: 0 8px;
    padding: 0 12px;
    border-radius: 12px;
    position: relative;
    transition: background-color 0.15s ease, transform 0.12s ease;
}

.bm-sidebar li a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.bm-sidebar li.active a {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.bm-sidebar li.active a::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 999px;
    background: #fff;
}

.bm-sidebar li .submenu {
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 4px;
}

.bm-sidebar li .submenu li.nav-link {
    height: 36px;
}

.bm-sidebar li .submenu li a {
    margin: 0 4px;
    border-radius: 10px;
}

.bm-sidebar header .image-text {
    padding: 8px 10px;
}

.bm-sidebar .logo-texta,
.bm-sidebar header .text.logo-texta {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------ */
/* Cards & dashboard widgets                                          */
/* ------------------------------------------------------------------ */
body.bm-app .main .wrapper_card,
body.bm-app .main .card,
body.bm-app .main .wrapper_second {
    border-radius: var(--bm-radius-lg) !important;
    border: 1px solid var(--bm-border) !important;
    box-shadow: var(--bm-shadow-sm) !important;
    background: var(--bm-surface) !important;
    overflow: hidden;
}

body.dark.bm-app .main .wrapper_card,
body.dark.bm-app .main .card,
body.dark.bm-app .main .wrapper_second {
    background: var(--bm-surface) !important;
}

body.bm-app .main .wrapper_second_content {
    border-radius: 0 0 var(--bm-radius-lg) var(--bm-radius-lg);
}

/* ------------------------------------------------------------------ */
/* Dashboard (frontend/views/site/index.php)                            */
/* ------------------------------------------------------------------ */
.bm-dashboard {
    padding-bottom: 10px;
}

.bm-dashboard .welcome_wrapper {
    border-radius: var(--bm-radius-lg);
    border: 1px solid var(--bm-border);
    background: linear-gradient(125deg, rgba(14, 165, 233, 0.16) 0%, rgba(99, 102, 241, 0.10) 45%, rgba(255, 255, 255, 0.94) 100%);
    box-shadow: var(--bm-shadow-md);
    overflow: hidden;
}

body.dark .bm-dashboard .welcome_wrapper {
    background: linear-gradient(125deg, rgba(14, 165, 233, 0.20) 0%, rgba(99, 102, 241, 0.12) 45%, rgba(26, 29, 33, 0.90) 100%);
}

.bm-dashboard .welcome_wrapper .content_text {
    position: relative;
    z-index: 1;
}

.bm-dashboard .welcome_wrapper .welcome_msg_1 {
    font-weight: 650;
    font-size: 1.08rem;
    letter-spacing: -0.01em;
}

.bm-dashboard .welcome_wrapper .content_img {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bm-dashboard .welcome_wrapper .content_img img {
    filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.16));
}

/* Stat cards */
.bm-dashboard .wrapper_card {
    box-shadow: var(--bm-shadow-md) !important;
    transform: translateZ(0);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.bm-dashboard .wrapper_card:hover {
    transform: translateY(-2px);
    box-shadow: var(--bm-shadow-lg) !important;
}

.bm-dashboard .wrapper_card > .row {
    margin: 0 !important;
    min-height: 132px;
}

.bm-dashboard .wrapper_card .circle_div {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.bm-dashboard .wrapper_card .circle_div .icon,
.bm-dashboard .wrapper_card .circle_div .material-symbols-rounded {
    font-size: 1.35rem;
}

.bm-dashboard .wrapper_card .total_ .fs-20 {
    font-size: 1.7rem !important;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.bm-dashboard .wrapper_card .total_ .fs-12 {
    opacity: 0.78;
}

.bm-dashboard .wrapper_card .card_img img {
    opacity: 0.8;
}

/* Insight + content panels */
.bm-dashboard .student_insight,
.bm-dashboard .published_courses,
.bm-dashboard .wrapper_second_content {
    border-radius: var(--bm-radius-lg);
    border: 1px solid var(--bm-border);
    background: var(--bm-surface);
    box-shadow: var(--bm-shadow-md);
}

.bm-dashboard .head_content .title_content .fs-18,
.bm-dashboard .head_content .title_content .fs-15 {
    letter-spacing: -0.01em;
}

.bm-dashboard .head_content a {
    font-weight: 600;
    color: var(--main-primary);
}

.bm-dashboard .chart_apex {
    border-radius: var(--bm-radius-md);
    padding: 6px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.00) 100%);
}

/* Published courses rows: feel like a modern list */
.bm-dashboard .published_courses .pub_course_body {
    display: grid;
    row-gap: 10px;
}

.bm-dashboard .published_courses .tb_row {
    margin: 0;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.7);
    transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

body.dark .bm-dashboard .published_courses .tb_row {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.bm-dashboard .published_courses .tb_row:hover {
    transform: translateY(-1px);
    background: rgba(14, 165, 233, 0.06);
    border-color: rgba(14, 165, 233, 0.2);
}

.bm-dashboard .published_courses .tb_row .mdi {
    color: var(--main-primary);
}

/* Right column: activity timeline */
.bm-dashboard .wrapper_second {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.bm-dashboard .wrapper_second .wrapper_second_content + .wrapper_second_content {
    margin-top: 16px;
}

.bm-dashboard .wrapper_second .timeline_content {
    border-radius: var(--bm-radius-md);
}

.bm-dashboard .wrapper_second .items_list {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.72);
    transition: background-color 0.12s ease, transform 0.12s ease;
}

body.dark .bm-dashboard .wrapper_second .items_list {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.bm-dashboard .wrapper_second .items_list:hover {
    background: rgba(14, 165, 233, 0.06);
    transform: translateY(-1px);
}

@media (max-width: 991px) {
    .bm-dashboard .welcome_wrapper .content_text {
        padding: 1.25rem !important;
    }

    .bm-dashboard .welcome_wrapper .content_img {
        padding-bottom: 0.5rem;
    }

    .bm-dashboard .wrapper_card > .row {
        min-height: auto;
        padding: 12px 0;
    }

    .bm-dashboard .published_courses .tb_row {
        padding: 8px 6px;
    }
}

/* ------------------------------------------------------------------ */
/* Buttons & forms                                                    */
/* ------------------------------------------------------------------ */
body.bm-app .btn {
    border-radius: var(--bm-radius-sm) !important;
    font-weight: 600;
}

body.bm-app .btn-primary {
    background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

body.bm-app .btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.45);
}

body.bm-app .form-control,
body.bm-app .form-select {
    border-radius: var(--bm-radius-sm) !important;
    border-color: var(--bm-border) !important;
}

body.bm-app .form-control:focus {
    border-color: var(--main-primary) !important;
    box-shadow: 0 0 0 0.2rem var(--bm-accent-soft) !important;
}

/* ------------------------------------------------------------------ */
/* Tables & GridView                                                  */
/* ------------------------------------------------------------------ */
body.bm-app .table {
    border-radius: var(--bm-radius-md);
    overflow: hidden;
}

body.bm-app .table thead th {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-color);
    border-bottom-width: 1px;
}

/* ------------------------------------------------------------------ */
/* Modals                                                             */
/* ------------------------------------------------------------------ */
body.bm-app .modal-content {
    border-radius: var(--bm-radius-lg) !important;
    border: 1px solid var(--bm-border) !important;
    box-shadow: var(--bm-shadow-lg) !important;
}

/* ------------------------------------------------------------------ */
/* Trainees listing (frontend/views/user/index.php)                    */
/* ------------------------------------------------------------------ */
.bm-trainees .teachers_list {
    border: 1px solid var(--bm-border);
    box-shadow: var(--bm-shadow-md);
}

.bm-trainees .lists_teachers .nav-tabs:not(:last-child) {
    border-bottom-color: rgba(15, 23, 42, 0.10);
}

.bm-trainees__filters .bm-trainees__phase-form .form-group {
    margin-bottom: 0;
}

.bm-trainees__filters label {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--text-color);
}

.bm-trainees__filters select.form-control,
.bm-trainees__filters select.form-select,
.bm-trainees__filters .form-control {
    min-width: 220px;
    height: 44px;
    border-radius: 12px !important;
    border: 1px solid var(--bm-border) !important;
    background: var(--bm-surface) !important;
    box-shadow: var(--bm-shadow-sm);
}

/* Card grid tighter, more modern */
.bm-trainees .lists_teachers .card_wrapper {
    grid-gap: 14px;
}

.bm-trainees .lists_teachers .card_wrapper .card {
    border: 1px solid var(--bm-border);
    box-shadow: var(--bm-shadow-sm);
}

.bm-trainees .lists_teachers .card_wrapper a.card_anchor:hover .card {
    border-color: rgba(14, 165, 233, 0.45);
    background-color: rgba(14, 165, 233, 0.06);
    box-shadow: var(--bm-shadow-lg);
}

.bm-trainees .lists_teachers .card .card-body {
    padding: 16px 16px;
}

.bm-trainees .lists_teachers .card .card-title {
    font-size: 1rem !important;
    line-height: 1.25;
    margin: 0;
}

.bm-trainees .lists_teachers .img_card img {
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

/* View button: pill + subtle hover */
.bm-trainees .lists_teachers a.primary_btn {
    border-radius: 999px !important;
    padding: 10px 14px !important;
    box-shadow: 0 10px 18px rgba(14, 165, 233, 0.22);
}

.bm-trainees .lists_teachers a.primary_btn:hover {
    box-shadow: 0 14px 26px rgba(14, 165, 233, 0.30);
    transform: translateY(-1px);
}

/* Summary + pager spacing */
.bm-trainees .summary {
    color: var(--text-color);
    font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* User profile / detail (frontend/views/user/view.php)               */
/* ------------------------------------------------------------------ */
.bm-user-profile__shell {
    border: 1px solid var(--bm-border);
    box-shadow: var(--bm-shadow-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
    border-radius: var(--bm-radius-lg);
    overflow: hidden;
}

body.dark .bm-user-profile__shell {
    background: linear-gradient(180deg, rgba(26, 29, 33, 0.95), rgba(26, 29, 33, 0.88));
}

.bm-user-profile__hero {
    position: relative;
}

.bm-user-profile__hero::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(700px 240px at 10% 0%, rgba(14, 165, 233, 0.18), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.bm-user-profile__hero > [class*="col-"] {
    position: relative;
    z-index: 1;
}

.bm-user-profile__avatar-wrap.author_profile_pic {
    max-width: 200px;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

body.dark .bm-user-profile__avatar-wrap.author_profile_pic {
    border-color: rgba(255, 255, 255, 0.12);
}

.bm-user-profile__name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 10px;
}

.bm-user-profile__role-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(14, 165, 233, 0.12);
    color: var(--main-primary);
    border: 1px solid rgba(14, 165, 233, 0.22);
}

.bm-user-profile__quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bm-user-profile__stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--bm-border);
    background: var(--bm-surface);
    box-shadow: var(--bm-shadow-sm);
    font-size: 0.85rem;
}

.bm-user-profile__stat .mdi {
    color: var(--main-primary);
    font-size: 18px;
}

.bm-user-profile__stat-val {
    font-weight: 800;
    font-size: 1.05rem;
}

.bm-user-profile__stat-label {
    color: var(--text-color);
    font-weight: 600;
}

.bm-user-profile__contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.65);
}

body.dark .bm-user-profile__contact-row {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.bm-user-profile__contact-icon {
    color: var(--main-primary);
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
}

.bm-user-profile__contact-text {
    font-size: 0.9rem;
    line-height: 1.35;
    word-break: break-word;
}

.bm-user-profile__aside {
    border-left: 1px solid rgba(15, 23, 42, 0.06);
    padding-left: 1rem;
}

@media (max-width: 991px) {
    .bm-user-profile__aside {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(15, 23, 42, 0.06);
        padding-top: 1rem;
    }
}

.bm-user-profile__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
}

.bm-user-profile__status--active {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.bm-user-profile__status--inactive {
    background: rgba(239, 68, 68, 0.10);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.22);
}

body.dark .bm-user-profile__status--active {
    color: #86efac;
}

body.dark .bm-user-profile__status--inactive {
    color: #fecaca;
}

.bm-user-profile__aside-block {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--bm-border);
    background: rgba(255, 255, 255, 0.55);
}

body.dark .bm-user-profile__aside-block {
    background: rgba(255, 255, 255, 0.04);
}

.bm-user-profile__aside-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bm-user-profile__aside-label .mdi {
    color: var(--main-primary);
}

.bm-user-profile__courses {
    border: 1px solid var(--bm-border);
    box-shadow: var(--bm-shadow-md);
    border-radius: var(--bm-radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.75));
}

body.dark .bm-user-profile__courses {
    background: linear-gradient(180deg, rgba(26, 29, 33, 0.92), rgba(26, 29, 33, 0.85));
}

.bm-user-profile__section-head {
    margin-bottom: 0.5rem;
}

.bm-user-profile__section-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bm-user-profile__courses .lists_teachers .card_wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-gap: 14px;
}

.bm-user-profile__courses .lists_teachers .card {
    border-radius: var(--bm-radius-lg);
    border: 1px solid var(--bm-border);
    box-shadow: var(--bm-shadow-sm);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.bm-user-profile__courses .lists_teachers .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--bm-shadow-md);
}

/* ------------------------------------------------------------------ */
/* Course Training page (frontend/views/course/training.php)          */
/* ------------------------------------------------------------------ */
.bm-training .bm-training__hero {
    border-radius: var(--bm-radius-lg);
    border: none;
    box-shadow: var(--bm-shadow-md);
    background-image:
        linear-gradient(135deg, rgba(14, 165, 233, 0.16) 0%, rgba(56, 189, 248, 0.10) 42%, rgba(255, 255, 255, 0.9) 100%),
        url("../images/bg_top_all_course.svg");
    background-size: auto 100%, contain;
    background-position: center, right center;
    background-repeat: no-repeat, repeat;
    overflow: hidden;
}

body.dark .bm-training .bm-training__hero {
    background-image:
        linear-gradient(135deg, rgba(14, 165, 233, 0.30) 0%, rgba(56, 189, 248, 0.18) 42%, rgba(26, 29, 33, 0.92) 100%),
        url("../images/bg_top_all_course.svg");
}

@media (max-width: 991px) {
    .bm-training .bm-training__hero {
        background-size: auto 100%, 120% auto;
        background-position: center, center;
    }
}

.bm-training .bm-training__hero-content {
    padding: 1.2rem 1.4rem;
}

.bm-training .bm-training__hero-title {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.bm-training .bm-training__hero-subtitle {
    opacity: 0.88;
}

.bm-training .bm-training__catalog {
    border: 1px solid var(--bm-border);
    box-shadow: var(--bm-shadow-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
}

body.dark .bm-training .bm-training__catalog {
    background: linear-gradient(180deg, rgba(26, 29, 33, 0.94), rgba(26, 29, 33, 0.86));
}

.bm-training .bm-training__section-header span {
    font-size: 1.05rem !important;
    letter-spacing: -0.01em;
}

.bm-training .bm-training__grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 16px !important;
}

.bm-training #all_courses_list .card {
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-lg);
    box-shadow: var(--bm-shadow-sm);
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
    overflow: hidden;
}

.bm-training #all_courses_list .card:hover {
    transform: translateY(-3px);
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: var(--bm-shadow-lg);
}

.bm-training #all_courses_list .card .img_title img {
    height: 170px;
    object-fit: cover;
    width: 100%;
    display: block; /* removes inline-image baseline gap */
    margin-bottom: -1px; /* prevent 1px seam with card body */
}

.bm-training #all_courses_list .subject_blur {
    background: rgba(2, 132, 199, 0.65);
    backdrop-filter: blur(8px);
}

.bm-training #all_courses_list .card .img_title {
    overflow: hidden;
    border-bottom: 1px solid var(--bm-border);
    background: rgba(15, 23, 42, 0.03);
}

.bm-training #all_courses_list .card .card-body {
    padding: 14px 14px 12px;
}

.bm-training #all_courses_list .card-title {
    font-size: 0.95rem !important;
    line-height: 1.35;
    min-height: 2.5em;
}

.bm-training #all_courses_list .primary_btn {
    border-radius: 999px !important;
    box-shadow: 0 10px 18px rgba(14, 165, 233, 0.22);
}

.bm-training #all_courses_list .primary_btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(14, 165, 233, 0.32);
}

.bm-training .bm-training__sidepanel {
    border: 1px solid var(--bm-border);
    box-shadow: var(--bm-shadow-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
    border-radius: var(--bm-radius-lg);
    overflow: hidden;
}

body.dark .bm-training .bm-training__sidepanel {
    background: linear-gradient(180deg, rgba(26, 29, 33, 0.92), rgba(26, 29, 33, 0.84));
}

.bm-training .bm-training__sidepanel .head_content {
    margin-bottom: 10px;
}

.bm-training .bm-training__sidepanel .title_content {
    position: relative;
    padding-left: 12px;
}

.bm-training .bm-training__sidepanel .title_content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0ea5e9, #0284c7);
}

.bm-training .bm-training__sidepanel .title_content > span {
    font-size: 0.95rem !important;
    letter-spacing: -0.01em;
}

.bm-training .bm-training__sidepanel-content + .bm-training__sidepanel-content {
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

body.dark .bm-training .bm-training__sidepanel-content + .bm-training__sidepanel-content {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.bm-training .bm-training__pager .pager {
    justify-content: center;
}

/* Started courses list makeover */
.bm-training .bm-training__sidepanel .enrolled_Courses {
    max-height: 620px;
    overflow-y: auto;
    padding-right: 2px;
}

.bm-training .bm-training__sidepanel .enrolled_Courses .item_content {
    padding-top: 8px !important;
}

.bm-training .bm-training__sidepanel .enrolled_Courses .items_list {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    padding: 10px 8px !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

body.dark .bm-training .bm-training__sidepanel .enrolled_Courses .items_list {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
}

.bm-training .bm-training__sidepanel .enrolled_Courses .items_list:hover {
    transform: translateY(-1px);
    background: rgba(14, 165, 233, 0.08);
    box-shadow: var(--bm-shadow-sm);
}

.bm-training .bm-training__sidepanel .enrolled_Courses .item_img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.bm-training .bm-training__sidepanel .enrolled_Courses .item_img .mdi {
    font-size: 24px !important;
    color: var(--main-primary) !important;
}

.bm-training .bm-training__sidepanel .enrolled_Courses .item_text .fs-13 {
    font-size: 0.88rem !important;
    line-height: 1.35;
}

/* ------------------------------------------------------------------ */
/* Course Create page (frontend/views/course/create.php)              */
/* ------------------------------------------------------------------ */
.bm-course-create .bm-course-create__shell {
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-lg);
    box-shadow: var(--bm-shadow-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
}

body.dark .bm-course-create .bm-course-create__shell {
    background: linear-gradient(180deg, rgba(26, 29, 33, 0.94), rgba(26, 29, 33, 0.86));
}

/* Compact, centered create form */
.bm-course-create .teachers_list.bm-course-create__shell {
    max-width: 980px;
    margin: 0 auto;
}

.bm-course-create .lists_teachers.p-4 {
    padding: 1.15rem !important;
}

.bm-course-create .bm-course-create__head {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(14, 165, 233, 0.18);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.10) 0%, rgba(59, 130, 246, 0.06) 100%);
}

.bm-course-create .bm-course-create__title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-color2);
}

.bm-course-create .bm-course-create__subtitle {
    font-size: 0.88rem;
    color: var(--text-color);
}

.bm-course-create .addcourse .input_field {
    margin-bottom: 4px;
}

.bm-course-create .addcourse .input_field > label,
.bm-course-create .addcourse .control-label {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-color) !important;
}

.bm-course-create .addcourse .form-control,
.bm-course-create .addcourse textarea,
.bm-course-create .addcourse input[type="text"],
.bm-course-create .addcourse input[type="number"] {
    border-radius: 12px !important;
    border: 1px solid var(--bm-border) !important;
    background: var(--bm-surface) !important;
    box-shadow: var(--bm-shadow-sm);
    min-height: 40px;
    padding: 8px 10px;
}

.bm-course-create .addcourse textarea.form-control,
.bm-course-create .addcourse textarea {
    min-height: 92px;
}

.bm-course-create .addcourse .form-control:focus,
.bm-course-create .addcourse textarea:focus {
    border-color: var(--main-primary) !important;
    box-shadow: 0 0 0 0.2rem var(--bm-accent-soft) !important;
}

.bm-course-create #course_img_upload_outer .file-upload {
    border-radius: 14px;
    border: 1px dashed rgba(14, 165, 233, 0.35);
    background: rgba(14, 165, 233, 0.04);
    padding: 10px;
}

.bm-course-create #course_img_upload_outer .image-box {
    border-radius: 12px;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bm-course-create #course_img_upload_outer .image-box img {
    max-width: 100%;
    object-fit: cover;
}

.bm-course-create #submit_add_btn {
    border-radius: 12px !important;
    min-height: 42px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 22px rgba(14, 165, 233, 0.24);
}

.bm-course-create #submit_add_btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(14, 165, 233, 0.32);
}

@media (max-width: 991px) {
    .bm-course-create .teachers_list.bm-course-create__shell {
        max-width: 100%;
    }
}

/* ------------------------------------------------------------------ */
/* Course Category page (frontend/views/course-category/index.php)    */
/* ------------------------------------------------------------------ */
.bm-course-category .bm-course-category__shell,
.bm-course-category .bm-course-category__form-shell {
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-lg);
    box-shadow: var(--bm-shadow-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
}

body.dark .bm-course-category .bm-course-category__shell,
body.dark .bm-course-category .bm-course-category__form-shell {
    background: linear-gradient(180deg, rgba(26, 29, 33, 0.94), rgba(26, 29, 33, 0.86));
}

.bm-course-category .bm-course-category__create-btn {
    border-radius: 999px !important;
    font-size: 0.8rem !important;
    padding: 10px 16px !important;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.26);
}

.bm-course-category .bm-course-category__create-btn:hover {
    transform: translateY(-1px);
}

.bm-course-category .bm-course-category__table-wrap {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
}

body.dark .bm-course-category .bm-course-category__table-wrap {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
}

.bm-course-category .bm-course-category__table {
    margin-bottom: 0;
}

.bm-course-category .bm-course-category__table thead tr th {
    background: rgba(14, 165, 233, 0.10);
    border-bottom: 1px solid rgba(14, 165, 233, 0.22);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-color);
}

.bm-course-category .bm-course-category__table tbody tr td {
    vertical-align: middle;
    border-color: rgba(15, 23, 42, 0.06);
}

.bm-course-category .bm-course-category__table tbody tr:nth-child(odd) {
    background: rgba(15, 23, 42, 0.015);
}

body.dark .bm-course-category .bm-course-category__table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.015);
}

.bm-course-category .bm-course-category__table tbody tr:hover {
    background: rgba(14, 165, 233, 0.07);
}

/* Action icons in circle_div */
.bm-course-category .bm-course-category__table .circle_div {
    width: 34px;
    height: 34px;
    border-radius: 10px !important;
    border: 1px solid rgba(14, 165, 233, 0.18);
    box-shadow: var(--bm-shadow-sm);
}

/* Category form section */
.bm-course-category .createform1 .headingform {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-color2);
    padding: 0 0.25rem;
    margin: 0.5rem 0 0.25rem;
}

.bm-course-category .createform1 .addcourse .control-label {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-color);
}

.bm-course-category .createform1 .addcourse .form-control {
    border-radius: 12px !important;
    min-height: 42px;
    border: 1px solid var(--bm-border) !important;
    background: var(--bm-surface) !important;
    box-shadow: var(--bm-shadow-sm);
}

.bm-course-category .createform1 .submitbtn,
.bm-course-category .createform1 .cancelBtn {
    border-radius: 12px !important;
    min-height: 42px;
    font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Notifications page (frontend/views/site/notifications.php)         */
/* ------------------------------------------------------------------ */
.bm-notifications-page .bm-notifications-page__shell {
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-lg);
    box-shadow: var(--bm-shadow-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.84));
}

body.dark .bm-notifications-page .bm-notifications-page__shell {
    background: linear-gradient(180deg, rgba(26, 29, 33, 0.94), rgba(26, 29, 33, 0.86));
}

.bm-notifications-page .bm-notifications-page__toolbar {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bm-notifications-page .bm-notifications-page__filters {
    flex-wrap: wrap;
}

.bm-notifications-page .bm-notifications-page__filter-btn {
    border-radius: 999px !important;
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: var(--bm-shadow-sm);
}

.bm-notifications-page .bm-notifications-page__search-col {
    margin-left: auto;
}

.bm-notifications-page .bm-notifications-page__search-wrap {
    border: 1px solid var(--bm-border);
    border-radius: 12px;
    background: var(--bm-surface);
    box-shadow: var(--bm-shadow-sm);
    overflow: hidden;
}

.bm-notifications-page #studentnotifications-notification_titleSearch {
    border: none !important;
    box-shadow: none !important;
    min-height: 40px;
    padding-left: 10px;
}

.bm-notifications-page .bm-notifications-page__list {
    padding: 8px 4px !important;
}

.bm-notifications-page .q_a_items {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--bm-shadow-sm);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

body.dark .bm-notifications-page .q_a_items {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
}

.bm-notifications-page .q_a_items:hover {
    transform: translateY(-1px);
    box-shadow: var(--bm-shadow-md);
    background: rgba(14, 165, 233, 0.06);
}

.bm-notifications-page .q_a_items h4 {
    font-size: 1rem !important;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.bm-notifications-page .q_a_items .comments__text p {
    color: var(--text-color);
    line-height: 1.5;
}

.bm-notifications-page .q_a_items .item_img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.12);
}

.bm-notifications-page .q_a_items .item_img .mdi {
    color: var(--main-primary) !important;
}

.bm-notifications-page .pagination.-buttons {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

@media (max-width: 991px) {
    .bm-notifications-page .bm-notifications-page__search-col {
        width: 100%;
    }
}

/* ------------------------------------------------------------------ */
/* Login layout (guest)                                               */
/* ------------------------------------------------------------------ */
body.bm-login .main_container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 45%, #e0f2fe 100%) !important;
}

body.dark.bm-login .main_container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c4a6e 100%) !important;
}

body.bm-login .login_img {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 75, 92, 0.16) 0%, rgba(255, 75, 92, 0) 34%),
        linear-gradient(155deg, #0e4f97 0%, #0f61b0 46%, #2f79bf 100%) !important;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.2);
}

body.dark.bm-login .login_img {
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 75, 92, 0.14) 0%, rgba(255, 75, 92, 0) 30%),
        linear-gradient(155deg, #0a386d 0%, #0e4f97 45%, #0f61b0 100%) !important;
}

body.bm-login .left_container {
    max-width: 540px;
    padding: 32px 58px;
    text-align: left;
    position: relative;
    z-index: 2;
}

body.bm-login .left_container .main_text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.bm-login .left_container .login-hero-tag {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.15);
}

body.bm-login .left_container .login-hero-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.24;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.bm-login .left_container .login-hero-subtitle {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

body.bm-login .left_container .login-hero-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 22px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e0f2fe;
}

body.bm-login .left_container .login-hero-highlight .mdi {
    font-size: 1rem;
}

body.bm-login #loginRotateText {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

body.bm-login #loginRotateText.is-changing {
    opacity: 0.15;
    transform: translateY(4px);
}

body.bm-login .left_container .sideimage {
    min-height: 250px;
    position: relative;
}

body.bm-login .left_container .login-hero-image {
    max-width: min(360px, 95%);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 28px rgba(14, 28, 71, 0.3));
    animation: bm-login-image-float 5.5s ease-in-out infinite;
}

body.bm-login .left_container .login-floating-shape {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

body.bm-login .left_container .login-floating-shape.shape-one {
    width: 110px;
    height: 110px;
    top: 20px;
    left: 30px;
    background: rgba(255, 255, 255, 0.2);
    animation: bm-login-shape-drift 6s ease-in-out infinite;
}

body.bm-login .left_container .login-floating-shape.shape-two {
    width: 150px;
    height: 150px;
    right: 24px;
    bottom: 14px;
    background: rgba(12, 74, 110, 0.24);
    animation: bm-login-shape-drift 7.4s ease-in-out infinite reverse;
}

body.bm-login .left_container .login-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.bm-login .left_container .login-metric-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.bm-login .left_container .login-metric-item strong {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

body.bm-login .left_container .login-metric-item span {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.86);
}

@keyframes bm-login-image-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bm-login-shape-drift {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.06);
    }
}

body.bm-login .login_container {
    width: min(460px, calc(100% - 24px)) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.56) !important;
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.20) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 0;
}

body.dark.bm-login .login_container {
    background: rgba(17, 24, 39, 0.93) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
    box-shadow: 0 24px 44px rgba(2, 6, 23, 0.5) !important;
}

body.bm-login .bm-login-box {
    padding: 32px 28px !important;
    width: 100%;
}

body.bm-login .bm-login-box .logo_header .logo {
    width: 70px !important;
}

body.bm-login .bm-login-box .logo_header .logo_text {
    color: var(--main-primary);
    letter-spacing: 0.02em;
}

body.bm-login .bm-login-box .title-h h1 {
    font-size: 1.72rem !important;
    letter-spacing: -0.02em;
    color: #0f172a;
}

body.dark.bm-login .bm-login-box .title-h h1 {
    color: #f8fafc;
}

body.bm-login .bm-login-box .title-h h2 {
    font-size: 0.92rem !important;
    color: #64748b !important;
}

body.dark.bm-login .bm-login-box .title-h h2 {
    color: #cbd5e1 !important;
}

body.bm-login .bm-or-label {
    background: rgba(255, 255, 255, 0.95) !important;
}

body.dark.bm-login .bm-or-label {
    background: rgba(17, 24, 39, 0.93) !important;
}

body.bm-login .bm-input-group {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    position: relative;
    display: flex;
    align-items: center;
    width: 100% !important;
    min-height: 42px;
    box-shadow: none !important;
    transition: none;
}

body.dark.bm-login .bm-input-group {
    border: none !important;
    background: transparent !important;
}

body.bm-login .bm-input-group:focus-within {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.dark.bm-login .bm-input-group:focus-within {
    background: transparent !important;
}

body.bm-login .bm-input-group .input-group-text {
    color: #64748b;
    border: none !important;
    background: transparent !important;
    position: absolute;
    left: 10px;
    top: 21px;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0 !important;
    width: auto;
    pointer-events: none;
}

body.bm-login .bm-input-group .form-control {
    height: 42px;
    font-size: 0.9rem;
    width: 100%;
    padding-left: 38px !important;
    border: 1px solid rgba(148, 163, 184, 0.42) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: none !important;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

body.dark.bm-login .bm-input-group .form-control {
    border-color: rgba(148, 163, 184, 0.30) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

body.bm-login .bm-input-group .form-control::placeholder {
    color: #94a3b8;
}

body.bm-login .bm-input-group .form-control:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14) !important;
    background: #fff !important;
}

body.dark.bm-login .bm-input-group .form-control:focus {
    background: rgba(255, 255, 255, 0.08) !important;
}

body.bm-login .bm-login-box .form-label {
    color: #334155 !important;
    margin-bottom: 0.42rem;
    display: block;
    width: 100%;
    text-align: left !important;
}

body.dark.bm-login .bm-login-box .form-label {
    color: #cbd5e1 !important;
}

body.bm-login .bm-login-box .form-check-input:checked {
    background-color: #0284c7;
    border-color: #0284c7;
}

body.bm-login .bm-forgot-link {
    color: #0284c7 !important;
}

body.bm-login .bm-forgot-link:hover {
    color: #0369a1 !important;
}

body.bm-login .bm-login-box .btn.btn-primary {
    min-height: 50px;
    border-radius: 12px !important;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 24px rgba(14, 165, 233, 0.30) !important;
}

body.bm-login .bm-login-box .btn.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(14, 165, 233, 0.36) !important;
}

body.bm-login .bm-password-toggle-wrap .toggle-password:hover {
    color: #0284c7 !important;
}

body.bm-login .bm-password-toggle-wrap {
    top: 21px !important;
    transform: translateY(-50%) !important;
}

body.bm-login .bm-login-box .help-block-error {
    font-size: 0.74rem !important;
    margin-top: 4px !important;
    position: static !important;
    display: block !important;
    width: 100%;
    text-align: left !important;
}

@media (max-width: 991px) {
    body.bm-login .left_container {
        padding: 22px 28px;
    }

    body.bm-login .left_container .login-hero-title {
        font-size: 1.6rem;
    }

    body.bm-login .left_container .login-metrics {
        grid-template-columns: 1fr;
    }

    body.bm-login .login_container {
        width: min(520px, calc(100% - 20px)) !important;
    }

    body.bm-login .bm-login-box {
        padding: 28px 20px !important;
    }
}

@media (max-width: 575px) {
    body.bm-login .login_container {
        border-radius: 16px !important;
        width: calc(100% - 14px) !important;
    }

    body.bm-login .bm-login-box {
        padding: 24px 14px !important;
    }

    body.bm-login .bm-login-box .title-h h1 {
        font-size: 1.45rem !important;
    }
}

/* ------------------------------------------------------------------ */
/* Global shared component polish (site-wide)                         */
/* ------------------------------------------------------------------ */
body.bm-app .main .teachers_list,
body.bm-app .main .wrapper_second_content,
body.bm-app .main .student_insight,
body.bm-app .main .published_courses {
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-lg);
    background: var(--bm-surface);
    box-shadow: var(--bm-shadow-md);
}

body.bm-app .main .teachers_list .lists_teachers,
body.bm-app .main .wrapper_second_content {
    padding: 1rem !important;
}

body.bm-app .main .head_content {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.dark.bm-app .main .head_content {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.bm-app .main .title_content span {
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    color: var(--text-color2);
}

body.bm-app .main .content_items .items_list {
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

body.dark.bm-app .main .content_items .items_list {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

body.bm-app .main .content_items .items_list:hover {
    transform: translateY(-1px);
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: var(--bm-shadow-sm);
}

body.bm-app .main .card_wrapper .card {
    border-radius: var(--bm-radius-lg);
    border: 1px solid var(--bm-border);
    box-shadow: var(--bm-shadow-sm);
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

body.bm-app .main .card_wrapper .card:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: var(--bm-shadow-lg);
}

body.bm-app .main .titileheader,
body.bm-app .main .title_content {
    position: relative;
}

body.bm-app .main .titileheader span,
body.bm-app .main .title_content > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.bm-app .main .titileheader span::before,
body.bm-app .main .title_content > span::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0ea5e9, #0284c7);
    display: inline-block;
}

body.bm-app .main .form-control,
body.bm-app .main .form-select,
body.bm-app .main .select2-container .select2-selection,
body.bm-app .main input[type="text"],
body.bm-app .main textarea {
    border-radius: 12px !important;
}

body.bm-app .main .primary_btn,
body.bm-app .main .info_btn,
body.bm-app .main .submitbtn,
body.bm-app .main .cancelBtn {
    border-radius: 10px !important;
    transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

body.bm-app .main .primary_btn:hover,
body.bm-app .main .info_btn:hover,
body.bm-app .main .submitbtn:hover,
body.bm-app .main .cancelBtn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

body.bm-app .main .pager__link,
body.bm-app .main .pagination a {
    border-radius: 10px !important;
    transition: transform 0.14s ease, background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

body.bm-app .main .pager__link:hover,
body.bm-app .main .pagination a:hover {
    transform: translateY(-1px);
}

body.bm-app .main .nav-tabs {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    gap: 6px;
}

body.bm-app .main .nav-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    border: 1px solid transparent;
    transition: all 0.14s ease;
}

body.bm-app .main .nav-tabs .nav-link.active {
    border-color: rgba(14, 165, 233, 0.32);
    background: rgba(14, 165, 233, 0.09);
}

@media (prefers-reduced-motion: reduce) {
    body.bm-app .main .content_items .items_list,
    body.bm-app .main .card_wrapper .card,
    body.bm-app .main .primary_btn,
    body.bm-app .main .info_btn,
    body.bm-app .main .submitbtn,
    body.bm-app .main .cancelBtn,
    body.bm-app .main .pager__link,
    body.bm-app .main .pagination a,
    body.bm-app .main .nav-tabs .nav-link {
        transition: none !important;
        transform: none !important;
    }
}

/* ---- Teacher dashboard (site/index) ---- */
.bm-dashboard .bm-teacher-dashboard {
    --bm-t-hero-start: #067bec;
    --bm-t-hero-end: #0558b0;
}

.bm-dashboard .bm-teacher-hero {
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    background: linear-gradient(120deg, var(--bm-t-hero-start) 0%, var(--bm-t-hero-end) 100%);
    color: #fff;
    box-shadow: 0 12px 40px rgba(5, 88, 176, 0.22);
}

.bm-dashboard .bm-teacher-eyebrow {
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
}

.bm-dashboard .bm-teacher-hero-title,
.bm-dashboard .bm-teacher-hero .text_black {
    color: #fff !important;
}

.bm-dashboard .bm-teacher-hero-sub {
    color: rgba(255, 255, 255, 0.88) !important;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.bm-dashboard .bm-teacher-hero-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}

.bm-dashboard .bm-teacher-hero-actions .btn-primary {
    background: #fff;
    border: none;
    color: #0558b0;
    font-weight: 600;
}

.bm-dashboard .bm-teacher-hero-actions .btn-primary:hover {
    background: #f0f6ff;
    color: #033d7a;
}

.bm-dashboard .bm-teacher-hero-actions .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: transparent;
}

.bm-dashboard .bm-teacher-hero-actions .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

.bm-dashboard .bm-teacher-hero-actions .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    background: transparent;
}

.bm-dashboard .bm-teacher-hero-actions .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.bm-dashboard .bm-teacher-hero-illus img {
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.bm-dashboard .bm-teacher-stat {
    border: 1px solid #e3edf8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    padding: 1rem 1.1rem;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.bm-dashboard .bm-teacher-stat:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.bm-dashboard .bm-teacher-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
}

.bm-dashboard .bm-teacher-stat-icon .material-symbols-outlined {
    font-size: 1.4rem;
}

.bm-dashboard .bm-teacher-stat-icon--amber { background: rgba(255, 166, 0, 0.15); color: #b45309; }
.bm-dashboard .bm-teacher-stat-icon--blue  { background: rgba(6, 123, 236, 0.12); color: #0558b0; }
.bm-dashboard .bm-teacher-stat-icon--red   { background: rgba(220, 53, 69, 0.12); color: #b91c1c; }
.bm-dashboard .bm-teacher-stat-icon--green { background: rgba(25, 135, 84, 0.12); color: #0f6c45; }

.bm-dashboard .bm-teacher-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
}

.bm-dashboard .bm-teacher-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.bm-dashboard .bm-teacher-stat-meta {
    line-height: 1.4;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
}

.bm-dashboard .bm-teacher-panel {
    border: 1px solid #e3edf8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.bm-dashboard .bm-teacher-approvals {
    border: 1px solid rgba(247, 122, 39, 0.25);
    background: linear-gradient(180deg, #fffdf9 0%, #fff 100%);
}

.bm-dashboard .bm-teacher-approvals--ok {
    border-color: #e3edf8;
    background: #f8fafc;
}

.bm-dashboard .bm-teacher-badge-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f77a27;
    box-shadow: 0 0 0 0 rgba(247, 122, 39, 0.5);
    animation: bm-teacher-pulse 2s ease-out infinite;
}

@keyframes bm-teacher-pulse {
    0% { box-shadow: 0 0 0 0 rgba(247, 122, 39, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(247, 122, 39, 0); }
    100% { box-shadow: 0 0 0 0 rgba(247, 122, 39, 0); }
}

.bm-dashboard .bm-teacher-approvals-item a {
    color: #067bec;
    text-decoration: none;
    font-weight: 600;
}

.bm-dashboard .bm-teacher-approvals-item a:hover {
    text-decoration: underline;
}

.bm-dashboard .bm-teacher-pending-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bm-dashboard .bm-teacher-pending-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid #e8eef5;
}

.bm-dashboard .bm-teacher-pending-item:first-child {
    padding-top: 0;
}

.bm-dashboard .bm-teacher-pending-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.bm-dashboard .bm-teacher-pending-course {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.bm-dashboard .bm-teacher-pending-meta {
    line-height: 1.4;
}

.bm-dashboard .bm-teacher-reviews {
    border-radius: 14px;
    border: 1px solid #e3edf8;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

/* Teacher dashboard: course activity progress list */
.bm-dashboard .bm-teacher-activity-item:last-child {
    margin-bottom: 0 !important;
}

.bm-dashboard .bm-teacher-activity-bar .progress-bar {
    border-radius: 4px;
    transition: width 0.35s ease;
}

body.dark .bm-dashboard .bm-teacher-activity-bar {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* -------------------------------------------------------------------------- */
/* My Courses — enroll/courses (student learning hub)                         */
/* -------------------------------------------------------------------------- */

.bm-enroll-courses {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.bm-enroll-courses .bm-ec-breadcrumb-list {
    background: transparent;
    padding: 0;
    margin: 0;
}

.bm-enroll-courses .bm-ec-eyebrow {
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #64748b;
    font-size: 0.7rem;
}

.bm-enroll-courses .bm-ec-hero {
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 48%, #f0f7ff 100%);
    border: 1px solid #e2e8f0;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.bm-enroll-courses .bm-ec-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.bm-enroll-courses .bm-ec-stat-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.bm-enroll-courses .bm-ec-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.bm-enroll-courses .bm-ec-ring {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: conic-gradient(#067bec calc(var(--p, 0) * 1%), #e2e8f0 0);
    flex-shrink: 0;
}

.bm-enroll-courses .bm-ec-ring::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e8eef5;
}

.bm-enroll-courses .bm-ec-panel {
    background: #fff;
    border: 1px solid #e3edf8;
    border-radius: 16px;
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.bm-enroll-courses .bm-ec-panel--sidebar {
    position: sticky;
    top: 1rem;
}

.bm-enroll-courses .bm-ec-panel-head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.bm-enroll-courses .bm-ec-panel-body {
    padding: 1rem 1.25rem 1.25rem;
}

.bm-enroll-courses .bm-ec-panel-body.pt-0 {
    padding-top: 0;
}

.bm-enroll-courses .bm-ec-link {
    color: #067bec;
    font-weight: 600;
    text-decoration: none;
}

.bm-enroll-courses .bm-ec-link:hover {
    text-decoration: underline;
}

.bm-enroll-courses .bm-ec-list .bm-ec-card {
    margin-bottom: 0.75rem;
}

.bm-enroll-courses .bm-ec-list .bm-ec-card:last-child {
    margin-bottom: 0;
}

.bm-enroll-courses .bm-ec-card {
    border: 1px solid #e8eef5;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    background: #fff;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.bm-enroll-courses .bm-ec-card:hover {
    border-color: #cfe8fc;
    box-shadow: 0 8px 28px rgba(6, 123, 236, 0.08);
}

.bm-enroll-courses .bm-ec-card--compact {
    padding: 0.85rem 1rem;
}

.bm-enroll-courses .bm-ec-thumb {
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e8eef5;
}

.bm-enroll-courses .bm-ec-thumb--sm {
    max-width: 88px;
    margin: 0 auto;
}

.bm-enroll-courses .bm-ec-thumb--xs {
    max-width: 64px;
    border-radius: 10px;
}

.bm-enroll-courses .bm-ec-thumb-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 2;
}

.bm-enroll-courses .bm-ec-title-link:hover {
    color: #067bec !important;
}

.bm-enroll-courses .bm-ec-avatar {
    object-fit: cover;
    border: 1px solid #e8eef5;
}

.bm-enroll-courses .bm-ec-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: #e8eef5;
}

.bm-enroll-courses .bm-ec-progress-bar .progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #067bec, #3b9eff);
}

.bm-enroll-courses .bm-ec-kicker {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

.bm-enroll-courses .bm-ec-btn-primary {
    background: #067bec;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.45rem 0.9rem;
}

.bm-enroll-courses .bm-ec-btn-primary:hover {
    background: #0558b0;
    color: #fff;
}

.bm-enroll-courses .bm-ec-btn-outline {
    border-radius: 10px;
    font-weight: 600;
    border-color: #067bec;
    color: #067bec;
}

.bm-enroll-courses .bm-ec-btn-outline:hover {
    background: #067bec;
    color: #fff;
    border-color: #067bec;
}

.bm-enroll-courses .bm-ec-badge-waiting {
    background: #fff7ed;
    color: #b45309;
    border: 1px solid #fed7aa;
    font-weight: 600;
}

.bm-enroll-courses .bm-ec-empty {
    padding: 1.25rem 0.5rem;
    text-align: center;
}

.bm-enroll-courses .bm-ec-recent-list .bm-ec-recent-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid #eef2f7;
}

.bm-enroll-courses .bm-ec-recent-list .bm-ec-recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bm-enroll-courses .bm-ec-recent-title:hover {
    color: #067bec !important;
}

.bm-enroll-courses .bm-ec-pager {
    margin-top: 1rem;
    margin-bottom: 0;
    justify-content: center;
}

body.dark .bm-enroll-courses .bm-ec-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

body.dark .bm-enroll-courses .bm-ec-stat-card,
body.dark .bm-enroll-courses .bm-ec-panel,
body.dark .bm-enroll-courses .bm-ec-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark .bm-enroll-courses .h3,
body.dark .bm-enroll-courses .h5,
body.dark .bm-enroll-courses .h6,
body.dark .bm-enroll-courses .text_black,
body.dark .bm-enroll-courses .bm-ec-stat-value {
    color: #f1f5f9 !important;
}

body.dark .bm-enroll-courses .text-muted {
    color: #94a3b8 !important;
}

body.dark .bm-enroll-courses .bm-ec-panel-head {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-bottom-color: #334155;
}

body.dark .bm-enroll-courses .bm-ec-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}
