:root {
    --project-font-family: 'DM Sans', 'Segoe UI', sans-serif;
    --aps-header-height: 74px;
}

body.aps-body {
    background: #f4f5f7;
    color: #1f2328;
    font-family: var(--project-font-family);
    overflow-y: scroll;
}

body.aps-body button,
body.aps-body input,
body.aps-body select,
body.aps-body textarea {
    font-family: inherit;
}

body.aps-no-scroll {
    overflow: hidden;
}

/* Global Bootstrap de-skin (admin/login) */
body.aps-body .btn,
body.login-page .btn {
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: none;
    transition: all 0.16s ease;
}

body.aps-body .btn:focus,
body.aps-body .btn:active:focus,
body.login-page .btn:focus,
body.login-page .btn:active:focus {
    box-shadow: 0 0 0 0.2rem rgba(51, 74, 43, 0.18);
}

body.aps-body .btn-primary,
body.login-page .btn-primary {
    background: #012a72 !important;
    border-color: #012a72 !important;
    color: #ffffff;
}

body.aps-body .btn-primary:hover,
body.login-page .btn-primary:hover {
    background: #172546;
    border-color: #172546;
    color: #ffffff;
}

body.aps-body .btn-dark,
body.login-page .btn-dark {
    background: #012a72;
    border-color: #012a72;
    color: #ffffff;
}

body.aps-body .btn-dark:hover,
body.login-page .btn-dark:hover {
    background: #011f56;
    border-color: #011f56;
    color: #ffffff;
}

body.aps-body .btn-light,
body.login-page .btn-light {
    background: #eef2f7;
    border-color: #d9e0ea;
    color: #273244;
}

body.aps-body .btn-light:hover,
body.login-page .btn-light:hover {
    background: #e3e9f1;
    border-color: #d1d9e4;
    color: #1f2937;
}

body.aps-body .btn-outline-primary,
body.login-page .btn-outline-primary {
    border-color: #012a72;
    color: #012a72;
}

body.aps-body .btn-outline-primary:hover,
body.login-page .btn-outline-primary:hover {
    background: #012a72;
    color: #ffffff;
}

body.aps-body .btn-outline-danger,
body.login-page .btn-outline-danger {
    border-color: #ef4f4f;
    color: #ef4f4f;
}

body.aps-body .btn-outline-danger:hover,
body.login-page .btn-outline-danger:hover {
    background: #ef4f4f;
    color: #ffffff;
}

body.aps-body .btn-outline-secondary,
body.login-page .btn-outline-secondary {
    border-color: #c8d1de;
    color: #334155;
}

body.aps-body .btn-outline-secondary:hover,
body.login-page .btn-outline-secondary:hover {
    background: #f2f5f9;
    border-color: #b8c3d3;
    color: #0f172a;
}

body.aps-body .btn-sm,
body.login-page .btn-sm {
    border-radius: 10px;
    min-height: 36px;
    padding: 0.375rem 0.75rem;
}

body.aps-body .form-control,
body.aps-body .form-select,
body.login-page .form-control,
body.login-page .form-select {
    border-radius: 14px;
    border: 1px solid #cfd7e4;
    background-color: #ffffff;
    color: #1f2a3a;
    min-height: 46px;
    box-shadow: none;
}

body.aps-body .form-control::placeholder,
body.login-page .form-control::placeholder {
    color: #97a3b6;
    opacity: 1;
}

body.aps-body .form-control:focus,
body.aps-body .form-select:focus,
body.login-page .form-control:focus,
body.login-page .form-select:focus {
    border-color: #8ea0bb;
    box-shadow: 0 0 0 0.2rem rgba(142, 160, 187, 0.2);
}

body.aps-body .form-control.is-invalid,
body.aps-body .form-select.is-invalid,
body.login-page .form-control.is-invalid,
body.login-page .form-select.is-invalid {
    border-color: #ef4f4f;
}

body.aps-body .card,
body.login-page .card {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

body.aps-body .alert,
body.login-page .alert {
    border-radius: 12px;
    border-width: 1px;
}

body.aps-body .badge,
body.login-page .badge {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

body.aps-body .modal-content,
body.login-page .modal-content {
    border-radius: 16px;
    border: 1px solid #dce3ee;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

body.aps-body .modal-header,
body.login-page .modal-header {
    border-bottom-color: #e9edf4;
}

body.aps-body .modal-footer,
body.login-page .modal-footer {
    border-top-color: #e9edf4;
}

body.aps-body .table,
body.login-page .table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: #f6f8fb;
    --bs-table-hover-bg: #f0f4fa;
    color: #1f2937;
}

body.aps-body .table > :not(caption) > * > *,
body.login-page .table > :not(caption) > * > * {
    border-bottom-color: #e9edf4;
}

body.aps-body .btn-close,
body.login-page .btn-close {
    filter: none;
    opacity: 0.6;
}

body.aps-body .btn-close:hover,
body.login-page .btn-close:hover {
    opacity: 0.85;
}

/* Toast close button - white color */
body.aps-body .toast .btn-close,
body.login-page .toast .btn-close,
body.aps-body .text-bg-success .btn-close,
body.aps-body .text-bg-danger .btn-close,
body.aps-body .text-bg-warning .btn-close,
body.aps-body .text-bg-info .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.85;
}

body.aps-body .toast .btn-close:hover,
body.login-page .toast .btn-close:hover {
    opacity: 1;
}

body.aps-body .dropdown-menu,
body.login-page .dropdown-menu {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

body.aps-body .dropdown-item,
body.login-page .dropdown-item {
    border-radius: 8px;
}

.aps-toast-container {
    top: calc(var(--aps-header-height) + 10px);
    z-index: 1105;
}

.aps-toast-message {
    min-width: min(380px, calc(100vw - 24px));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.aps-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.aps-header {
    height: 74px;
    background: #ffffff;
    border-bottom: 1px solid #e7e7e9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.aps-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.aps-menu-toggle {
    width: 48px;
    height: 42px;
    border: 1px solid #9ca3af;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #6b7280;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.aps-menu-toggle:hover {
    background: #f9fafb;
    border-color: #6b7280;
    color: #4b5563;
}

.aps-menu-toggle i,
.aps-menu-toggle svg {
    width: 26px;
    height: 26px;
}

.aps-brand-logo {
    width: 100%;
    height: 65px;
    object-fit: contain;
    background: #fff;
    padding: 5px;
}

.aps-brand-title {
    font-weight: 700;
    font-size: 22px;
    color: #0f1115;
    line-height: 1;
}

.aps-brand-subtitle {
    font-size: 11px;
    color: #81848b;
    margin-top: 2px;
}

.aps-header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.aps-bell {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f2f4f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e7ec;
    position: relative;
    color: #3a3f46;
}

.aps-bell-badge {
    position: absolute;
    top: -2px;
    right: -1px;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    background: #ff8f1f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.aps-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aps-user-dropdown .dropdown-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}

.aps-user-dropdown .dropdown-toggle:focus {
    box-shadow: none;
}

.aps-user-dropdown .dropdown-toggle::after {
    margin-left: 2px;
    color: #6b7280;
}

.aps-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e8ecf2;
    border: 1px solid #d9dfe8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #344054;
}

.aps-user-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1d22;
    line-height: 1.1;
    text-transform: capitalize;
}

.aps-user-role {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
}

.aps-user-dropdown .dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px;
    min-width: 170px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.aps-user-menu-item {
    border: 0;
    background: transparent;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 500;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.aps-user-menu-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.aps-user-menu-item-danger {
    color: #dc2626;
}

.aps-user-menu-item-danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.aps-main {
    display: flex;
    flex: 1 1 auto;
    min-height: calc(100vh - var(--aps-header-height));
}

.aps-sidebar {
    flex: 0 0 280px;
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 20px 14px;
    overflow-y: auto;
    max-height: calc(100vh - var(--aps-header-height));
    scrollbar-gutter: stable;
    transition: width 0.2s ease, flex-basis 0.2s ease, padding 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.aps-sidebar-backdrop {
    display: none;
}

.aps-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aps-nav-item {
    margin-bottom: 8px;
}

.aps-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 14px;
    border-radius: 10px;
    color: #4d5562;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.15s ease;
}

.aps-nav-link:hover {
    background: #f1f5f9;
    color: #233033;
}

.aps-nav-link.active {
    background: #e1eaf7;
    color: #1a2f50;
    font-weight: 600;
}

.aps-nav-link .menu-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7a7f88;
}

.aps-nav-link.active .menu-icon {
    color: #1e3a6e;
}

.aps-nav-parent {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    justify-content: space-between;
}

.aps-nav-parent .menu-left {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.aps-nav-parent .aps-menu-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
    color: #7a7f88;
}

.aps-nav-group.open .aps-nav-parent .aps-menu-arrow {
    transform: rotate(90deg);
}

.aps-submenu {
    list-style: none;
    padding: 4px 0 2px 22px;
    margin: 0;
    display: none;
}

.aps-nav-group.open .aps-submenu {
    display: block;
}

.aps-submenu .aps-sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #5f6773;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 2px;
}

.aps-submenu .aps-sub-link:hover {
    background: #eef2f7;
    color: #2f3944;
}

.aps-submenu .aps-sub-link.active {
    background: #dce8f5;
    color: #1a2f50;
    font-weight: 600;
}

.aps-submenu .aps-sub-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #95a0ad;
    flex: 0 0 8px;
}

.aps-submenu .aps-sub-link.active .aps-sub-dot {
    background: #1e3a6e;
}

.aps-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 24px 26px 18px;
    min-width: 0;
    min-height: calc(100vh - var(--aps-header-height));
}

.aps-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.aps-page-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #16181d;
    line-height: 1.1;
}

.aps-page-subtitle {
    margin: 8px 0 0;
    color: #7d8593;
    font-size: 16px;
}

.aps-create-btn {
    border: 0;
    background: #012a72;
    color: #fff;
    border-radius: 12px;
    padding: 11px 20px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.aps-card {
    border: 1px solid #e8eaee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.aps-sidebar-collapsed .aps-sidebar {
    flex-basis: 94px;
    width: 94px;
}

.aps-sidebar-collapsed .aps-nav-link .menu-text {
    display: none;
}

.aps-sidebar-collapsed .aps-nav-link {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
}

.aps-sidebar-collapsed .aps-nav-link .menu-icon {
    margin: 0;
}

.aps-sidebar-collapsed .aps-nav-parent .aps-menu-arrow {
    display: none;
}

.aps-sidebar-collapsed .aps-submenu {
    display: none !important;
}

@media (min-width: 993px) {
    .aps-layout.aps-sidebar-hidden .aps-sidebar {
        flex-basis: 0;
        width: 0;
        padding-left: 0;
        padding-right: 0;
        border-right-color: transparent;
        overflow: hidden;
    }

    .aps-layout.aps-sidebar-hidden .aps-sidebar .aps-nav-list {
        opacity: 0;
        pointer-events: none;
    }

    .aps-sidebar-collapsed .aps-sidebar:hover {
        flex-basis: 280px;
        width: 280px;
    }

    .aps-sidebar-collapsed .aps-sidebar:hover .aps-nav-link {
        justify-content: flex-start;
        padding-left: 14px;
        padding-right: 14px;
    }

    .aps-sidebar-collapsed .aps-sidebar:hover .aps-nav-link .menu-text {
        display: inline;
    }

    .aps-sidebar-collapsed .aps-sidebar:hover .aps-nav-parent .aps-menu-arrow {
        display: inline-flex;
    }

    .aps-sidebar-collapsed .aps-sidebar:hover .aps-nav-group.open .aps-submenu {
        display: block !important;
    }
}

.aps-footer {
    margin-top: auto;
    padding-top: 18px;
    color: #98a2b3;
    font-size: 14px;
    text-align: center;
}

.masters-card {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.masters-card .card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #edf0f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.masters-card .card-header > :first-child {
    min-width: 0;
}

.masters-card .card-body {
    padding: 16px 20px 18px;
}

.masters-card .form-control,
.masters-card .form-select {
    border-radius: 16px;
    border: 1px solid #cfd7e4;
    min-height: 48px;
    box-shadow: none;
}

.masters-card .table {
    margin-top: 6px;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.masters-card .table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #0f172a;
    border-bottom: 1px solid #e9edf2;
    white-space: nowrap;
}

.masters-card .table tbody td {
    vertical-align: middle;
    white-space: nowrap;
    font-size: 14px;
}

.masters-actions .btn {
    border-radius: 8px;
}

.master-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e8f0fb;
    color: #1a2f50;
    font-weight: 600;
}

.filter-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.filter-pill {
    position: relative;
    flex: 1 1 250px;
    min-width: 220px;
}

.filter-pill-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a97ad;
    pointer-events: none;
}

.filter-pill .form-control,
.filter-pill .form-select {
    padding-left: 42px;
    font-size: 15px;
    color: #344054;
    background-color: #fff;
}

.filter-pill .form-select {
    padding-right: 36px;
    background-position: right 14px center;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.btn-filter-search,
.btn-filter-reset {
    min-height: 46px;
    padding: 0 26px;
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.btn-filter-search {
    background: #012a72;
    border-color: #012a72;
    color: #fff;
}

.btn-filter-search:hover {
    background: #011f56;
    border-color: #011f56;
    color: #fff;
}

.btn-filter-reset {
    background: #fff;
    border: 1px solid #ef4f4f;
    color: #ef4f4f;
}

.btn-filter-reset:hover {
    background: #fff5f5;
    color: #dc2626;
    border-color: #dc2626;
}

.masters-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.masters-per-page {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #334155;
    font-size: 16px;
}

.masters-per-page .form-select {
    width: 92px;
    min-height: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #d7dee9;
    padding-left: 14px;
    padding-right: 34px;
}

.masters-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.masters-page-btn {
    min-width: 44px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #d7dee9;
    background: #fff;
    color: #334155;
    font-weight: 600;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.masters-page-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.masters-page-btn.active {
    background: #012a72;
    border-color: #012a72;
    color: #fff;
}

.masters-page-btn:disabled {
    background: #f8fafc;
    color: #98a2b3;
    border-color: #d7dee9;
    cursor: not-allowed;
}

.dashboard-root {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-create-btn {
    background: #012a72;
    border-radius: 12px;
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 500;
}

.dash-card {
    background: #fff;
    border: 1px solid #e5e8ee;
    border-radius: 20px;
}

.overview-wrap {
    padding: 22px;
}

.dash-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dash-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #121417;
}

.dash-year {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
}

.dash-year .form-select {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #d7dce3;
    min-width: 126px;
}

.metric-box {
    border-radius: 14px;
    padding: 18px;
    min-height: 228px;
    position: relative;
}

.metric-icon {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.metric-title {
    font-size: 15px;
    color: #181c23;
    margin: 4px 0 14px;
    max-width: 82%;
}

.metric-value {
    font-size: 38px;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(31, 41, 55, 0.1);
    color: #4b5563;
    font-size: 14px;
}

.metric-row strong {
    color: #0f172a;
    font-size: 15px;
}

.bg-pink {
    background: #f6e7ed;
}

.bg-cream {
    background: #f4eddd;
}

.bg-green {
    background: #e1eaf7;
}

.bg-purple {
    background: #eee8f5;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-title h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #15181d;
    white-space: nowrap;
}

.section-title span {
    height: 1px;
    flex: 1 1 auto;
    background: #d7dbe2;
}

.session-wrap {
    padding: 18px;
}

.session-grid {
    display: grid;
    grid-template-columns: 410px minmax(0, 1fr);
    gap: 18px;
}

.calendar-box {
    border: 1px solid #dfe3ea;
    border-radius: 14px;
    padding: 14px;
    background: #fcfcfd;
}

.calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mini-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #d8dee6;
    background: #fff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calendar-head strong {
    font-size: 17px;
    color: #171b22;
}

.week-grid,
.day-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
    text-align: center;
}

.week-grid span {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    padding: 6px 0 2px;
}

.day-grid span {
    position: relative;
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #1f2937;
}

.day-muted {
    color: #a3acb8 !important;
}

.day-range {
    background: #9fbfeb;
    color: #1a2f50 !important;
}

.day-dot-blue::after,
.day-dot-purple::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.day-dot-blue::after {
    background: #53b4f5;
}

.day-dot-purple::after {
    background: #9187ed;
}

.session-info {
    border: 1px solid #dfe4eb;
    border-radius: 14px;
    padding: 16px 18px;
    min-height: 338px;
    display: flex;
    flex-direction: column;
}

.session-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #1f2937;
}

.view-link {
    text-decoration: none;
    color: #235db8;
    font-weight: 500;
}

.session-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4a7abf;
    flex: 0 0 12px;
}

.session-name h4 {
    margin: 0;
    font-size: 20px;
    color: #14181f;
    font-weight: 600;
}

.level {
    margin-left: auto;
    background: #daeaf5;
    color: #1e5a8a;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.session-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.session-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #1f2937;
}

.session-foot {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.session-btn {
    min-width: 150px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #1e3a6e;
    background: #fff;
    color: #1a2f50;
    font-size: 16px;
    font-weight: 600;
}

.enroll-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.enroll-card {
    padding: 18px 20px;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.card-head h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.card-head a {
    text-decoration: none;
    color: #235db8;
    font-size: 15px;
    font-weight: 500;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
    color: #111827;
}

.total-row strong {
    font-size: 32px;
}

.bar-item {
    margin-bottom: 20px;
}

.bar-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #111827;
    font-size: 15px;
}

.track {
    height: 7px;
    background: #dfe3e8;
    border-radius: 999px;
    overflow: hidden;
}

.fill {
    height: 100%;
    border-radius: 999px;
    width: 0;
}

.fill-1 {
    background: #a57fe9;
}

.fill-2 {
    background: #ed62b1;
}

.fill-3 {
    background: #4773d4;
}

.donut-wrap {
    position: relative;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.donut-ring {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: conic-gradient(var(--donut-slices, #d7dee8 0% 100%));
    position: relative;
}

.donut-ring::after {
    content: '';
    position: absolute;
    inset: 46px;
    background: #fff;
    border-radius: 50%;
}

.donut-label {
    position: absolute;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.lb-pune {
    color: #3c98a3;
    top: 6px;
    left: 0;
}

.lb-kolkata {
    color: #7b5ccf;
    top: 82px;
    right: 0;
    max-width: 160px;
}

.lb-bihar {
    color: #ec61b0;
    top: 244px;
    right: 0;
    max-width: 160px;
}

.lb-chennai {
    color: #3e69d3;
    bottom: 2px;
    left: 60%;
    transform: translateX(-50%);
    max-width: 180px;
    text-align: center;
}

.lb-lucknow {
    color: #3e69d3;
    bottom: 34px;
    left: 0;
    max-width: 170px;
}

.chart-wrap {
    padding: 18px 20px 22px;
}

.line-chart {
    position: relative;
    padding-left: 52px;
}

.line-chart-canvas {
    padding-left: 0;
    height: 350px;
}

.chart-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.y-axis {
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #6b7280;
    font-size: 14px;
}

.chart-svg {
    width: 100%;
    height: 300px;
    display: block;
}

.x-axis {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    color: #6b7280;
    font-size: 15px;
    margin-top: 2px;
    padding-left: 52px;
}

.x-axis span {
    text-align: center;
}

.audit-card {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.audit-card .card-body {
    padding: 18px 20px;
}

.audit-filter .form-control,
.audit-filter .form-select {
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid #cfd7e4;
    box-shadow: none;
}

.audit-filter .btn {
    min-height: 46px;
    border-radius: 12px;
    padding: 0 20px;
    font-weight: 600;
}

.audit-filter-actions {
    display: flex;
    gap: 8px;
}

.audit-btn-search,
.audit-btn-reset {
    min-height: 48px;
    border-radius: 20px;
    padding: 0 24px;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.audit-btn-search {
    background: #012a72;
    border: 1px solid #012a72;
    color: #ffffff;
}

.audit-btn-search:hover {
    background: #011f56;
    border-color: #011f56;
    color: #ffffff;
}

.audit-btn-search:focus,
.audit-btn-reset:focus {
    box-shadow: none;
}

.audit-btn-reset {
    background: #ffffff;
    border: 1px solid #ef4f4f;
    color: #ef4f4f;
}

.audit-btn-reset:hover {
    background: #fff5f5;
    border-color: #dc2626;
    color: #dc2626;
}

.audit-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #0f172a;
    border-bottom: 1px solid #e9edf2;
    white-space: nowrap;
}

.audit-table tbody td {
    vertical-align: middle;
    font-size: 14px;
}

.audit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    text-transform: uppercase;
}

.audit-badge-created {
    background: #e1eaf7;
    color: #1e4a7f;
}

.audit-badge-updated {
    background: #e6f0ff;
    color: #1f4fb5;
}

.audit-badge-deleted {
    background: #fde9e9;
    color: #bf2a2a;
}

.audit-badge-restored {
    background: #f4edff;
    color: #6b3cc7;
}

.audit-field-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f3f4f6;
    color: #334155;
    font-size: 11px;
    padding: 4px 9px;
    line-height: 1;
    margin-right: 4px;
    margin-bottom: 4px;
}

.audit-summary {
    font-size: 14px;
    color: #64748b;
}

.audit-empty {
    padding: 28px 12px;
    color: #94a3b8;
    text-align: center;
}

.audit-action-btn {
    min-width: 78px;
}

.audit-action-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.audit-json-box {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.5;
    max-height: 280px;
    overflow: auto;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.audit-json-meta {
    font-size: 14px;
}

.audit-delete-icon {
    width: 56px;
    height: 56px;
    background: #fdecef;
    color: #dc3545;
    font-size: 22px;
    font-weight: 700;
}

.rbac-card {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.rbac-card .card-body {
    padding: 18px 20px;
}

.rbac-filter .form-control,
.rbac-filter .form-select {
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid #cfd7e4;
    box-shadow: none;
}

.rbac-summary {
    font-size: 14px;
    color: #64748b;
}

.rbac-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #0f172a;
    border-bottom: 1px solid #e9edf2;
    white-space: nowrap;
}

.rbac-table tbody td {
    vertical-align: middle;
    font-size: 14px;
}

.rbac-empty {
    padding: 28px 12px;
    color: #94a3b8;
    text-align: center;
}

.rbac-permission-table th {
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rbac-permission-table td {
    font-size: 14px;
}

.rbac-sub-module-row td:first-child {
    background: #fafbfc;
}

.rbac-module-indent {
    display: inline-block;
    width: 14px;
    color: #94a3b8;
}

.rbac-role-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}

.login-page,
.login-page button,
.login-page input,
.login-page select,
.login-page textarea {
    font-family: var(--project-font-family);
}

.login-page .captcha-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
}

.login-page .captcha-card {
    display: block;
    border: 1px solid #cfd7ea;
    border-radius: 10px;
    padding: 3px;
    background: #f7f9ff;
    flex: 0 0 38%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.login-page .captcha-image {
    display: block;
    width: 100%;
    height: 36px;
    border-radius: 7px;
}

.login-page .captcha-refresh-wrap {
    flex: 0 0 22%;
    min-width: 96px;
}

.login-page .captcha-refresh-btn {
    border: 1px solid #cfd7ea;
    background: #eef2f7;
    color: #0f172a;
    width: 100%;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.login-page .captcha-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.login-page .captcha-input {
    height: 44px;
}

.login-page .captcha-refresh-btn:hover {
    background: #e4eaf4;
    border-color: #c9d3e5;
}

.login-page .login-brand-logo {
    /* width: 32px; */
    /* height: 32px; */
    object-fit: contain;
    /* border-radius: 6px; */
    /* border: 1px solid #e5e7eb; */
    background: #fff;
    /* padding: 2px; */
}

/* Modern Login Page Styling */
.login-page {
    background: linear-gradient(135deg, #f6f8fb 0%, #eef2f7 100%);
    min-height: 100vh;
}

.login-page .auth-box {
    padding: 20px;
}

.login-page .card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.login-page .card-body {
    padding: 40px;
}

.login-page .auth-brand {
    text-align: center;
}

.login-page .auth-brand img {
    max-height: 80px;
    margin-bottom: 15px;
}

.login-page .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.login-page .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.login-page .form-control:focus {
    border-color: #012a72;
    box-shadow: 0 0 0 4px rgba(1, 42, 114, 0.1);
    background: #fff;
}

.login-page .btn-dark {
    background: #012a72;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 42, 114, 0.3);
}

.login-page .btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 42, 114, 0.4);
}

.login-page .captcha-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.login-page .captcha-refresh-btn {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-weight: 600;
}

.login-page .captcha-refresh-btn:hover {
    border-color: #012a72;
    background: #012a72;
    color: #fff;
}

.login-page .form-check-input:checked {
    background-color: #012a72;
    border-color: #012a72;
}

.login-page .text-muted {
    color: #6b7280 !important;
    font-size: 14px;
}

.login-page .alert {
    border-radius: 12px;
    border: none;
}

.welcome-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f6f8fb 0%, #eef2f7 100%);
    font-family: var(--project-font-family);
    color: #0f172a;
}

.welcome-shell {
    width: min(560px, calc(100% - 40px));
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
    padding: 28px;
    text-align: center;
}

.welcome-shell h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
}

.welcome-shell p {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 16px;
}

.welcome-actions {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.welcome-btn {
    text-decoration: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.welcome-btn-primary {
    background: #012a72;
    color: #fff;
}

.welcome-btn-primary:hover {
    background: #011f56;
    color: #fff;
}

.welcome-btn-outline {
    background: #fff;
    color: #0f172a;
    border-color: #cbd5e1;
}

.welcome-btn-outline:hover {
    background: #f8fafc;
    color: #0f172a;
}

.welcome-foot {
    margin-top: 16px;
    color: #94a3b8;
    font-size: 13px;
}

.blend-hard-light {
    mix-blend-mode: hard-light;
}

.blend-plus-darker {
    mix-blend-mode: plus-darker;
}

@media (max-width: 1200px) {
    .aps-brand-title {
        font-size: 20px;
    }

    .aps-user-name {
        font-size: 14px;
    }

    .aps-user-role {
        font-size: 12px;
    }

    .aps-nav-link {
        font-size: 15px;
    }

    .aps-page-title {
        font-size: 22px;
    }

    .aps-page-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 1199px) {
    .session-grid {
        grid-template-columns: 1fr;
    }

    .enroll-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .aps-header {
        padding: 0 12px;
    }

    .aps-brand {
        gap: 8px;
    }

    .aps-brand-logo {
        height: 52px;
    }

    .aps-header-right {
        gap: 10px;
    }

    .aps-user-name {
        font-size: 14px;
    }

    .aps-main {
        display: block;
        position: relative;
    }

    .aps-sidebar {
        position: fixed;
        top: var(--aps-header-height);
        left: 0;
        height: calc(100vh - var(--aps-header-height));
        width: min(320px, 86vw);
        max-height: none;
        transform: translateX(-100%);
        z-index: 1040;
        border-right: 1px solid #e5e7eb;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: auto;
        transition: transform 0.22s ease;
    }

    .aps-layout.aps-sidebar-open .aps-sidebar {
        transform: translateX(0);
    }

    .aps-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: var(--aps-header-height) 0 0 0;
        background: rgba(15, 23, 42, 0.32);
        opacity: 0;
        pointer-events: none;
        border: 0;
        z-index: 1035;
        transition: opacity 0.22s ease;
    }

    .aps-layout.aps-sidebar-open .aps-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .aps-sidebar-collapsed .aps-sidebar {
        flex-basis: 280px;
        width: 280px;
    }

    .aps-sidebar-collapsed .aps-nav-link .menu-text {
        display: inline;
    }

    .aps-content {
        padding: 16px 14px 14px;
        min-height: calc(100vh - var(--aps-header-height));
    }

    .aps-page-header {
        margin-bottom: 12px;
    }

    .masters-card .card-header,
    .masters-card .card-body,
    .audit-card .card-body,
    .rbac-card .card-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .filter-toolbar {
        gap: 10px;
    }

    .filter-pill {
        flex: 1 1 100%;
        min-width: 0;
    }

    .filter-actions {
        width: 100%;
    }

    .filter-actions .btn {
        flex: 1 1 calc(50% - 5px);
    }

    .masters-list-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .masters-per-page {
        width: 100%;
        justify-content: flex-start;
    }

    .masters-pagination {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .audit-filter-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .audit-filter-actions .btn {
        flex: 1 1 calc(50% - 4px);
    }

    .rbac-card .d-flex.gap-2 {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .aps-toast-container {
        right: 0;
        left: 0;
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .aps-toast-message {
        min-width: 100%;
    }

    .aps-user .text-start {
        display: none;
    }

    .aps-bell,
    .aps-user-avatar {
        width: 36px;
        height: 36px;
    }

    .masters-card .card-header .btn,
    .masters-card .card-header a.btn {
        width: 100%;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-actions .btn {
        width: 100%;
    }

    .audit-filter-actions {
        flex-direction: column;
    }

    .audit-filter-actions .btn {
        width: 100%;
        flex: 1 1 auto;
    }

    .dash-year {
        width: 100%;
        justify-content: space-between;
    }

    .dash-year .form-select {
        min-width: 0;
        width: 130px;
    }

    .section-title h3 {
        white-space: normal;
    }

    .card-head {
        flex-wrap: wrap;
        gap: 8px;
    }

    .session-foot {
        justify-content: stretch;
    }

    .session-btn {
        width: 100%;
        min-width: 0;
    }

    .overview-wrap,
    .session-wrap,
    .enroll-card,
    .chart-wrap {
        padding: 16px;
    }

    .dash-head h2 {
        font-size: 26px;
    }

    .section-title h3 {
        font-size: 22px;
    }

    .session-name {
        flex-wrap: wrap;
    }

    .level {
        margin-left: 0;
    }

    .session-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .login-page .captcha-row {
        max-width: 100%;
        gap: 8px;
    }

    .login-page .captcha-card {
        flex: 0 0 38%;
    }

    .login-page .captcha-refresh-wrap {
        flex: 0 0 24%;
    }
}

/* =============================================
   Pagination Styling
   ============================================= */
body.aps-body .pagination {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    flex-wrap: wrap !important;
}

body.aps-body .pagination .page-item {
    display: inline-flex !important;
}

body.aps-body .pagination .page-item .page-link {
    min-width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    border: 1px solid #d7dee9 !important;
    background: #fff !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
}

body.aps-body .pagination .page-item .page-link:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.aps-body .pagination .page-item.active .page-link {
    background: #012a72 !important;
    border-color: #012a72 !important;
    color: #fff !important;
}

body.aps-body .pagination .page-item.disabled .page-link {
    background: #f8fafc !important;
    color: #98a2b3 !important;
    border-color: #d7dee9 !important;
    cursor: not-allowed !important;
}

body.aps-body .pagination .page-item:first-child .page-link,
body.aps-body .pagination .page-item:last-child .page-link {
    padding: 0 16px !important;
    gap: 6px !important;
}

/* Hide any extra text/spans inside pagination that might be showing */
body.aps-body .pagination > li > span:not(.page-link) {
    display: none !important;
}

/* Fix for Laravel's default pagination wrapper - hide the "Showing X to Y of Z results" text */
body.aps-body .audit-pagination-wrap [role="navigation"] {
    display: flex !important;
    justify-content: flex-start !important;
}

body.aps-body .audit-pagination-wrap [role="navigation"] > .d-flex,
body.aps-body .audit-pagination-wrap [role="navigation"] > div:first-child {
    display: none !important;
}

body.aps-body .audit-pagination-wrap .pagination {
    margin: 0 !important;
}

/* =============================================
   Bootstrap Success → Green (Default)
   ============================================= */
