.datatable-wrapper.no-header .datatable-container {
    border-top: 1px solid #d9d9d9;
}

.datatable-wrapper.no-footer .datatable-container {
    border-bottom: 1px solid #d9d9d9;
}

.datatable-top,
.datatable-bottom {
    padding: 8px 10px;
}

.datatable-top>nav:first-child,
.datatable-top>div:first-child,
.datatable-bottom>nav:first-child,
.datatable-bottom>div:first-child {
    float: left;
}

.datatable-top>nav:last-child,
.datatable-top>div:not(first-child),
.datatable-bottom>nav:last-child,
.datatable-bottom>div:last-child {
    float: right;
}

.datatable-selector {
    padding: 6px;
}

.datatable-input {
    padding: 6px 12px;
}

.datatable-info {
    margin: 7px 0;
}

/* PAGER */
.datatable-pagination ul {
    margin: 0;
    padding-left: 0;
}

.datatable-pagination li {
    list-style: none;
    float: left;
}

.datatable-pagination li.datatable-hidden {
    visibility: hidden;
}

.datatable-pagination a,
.datatable-pagination button {
    border: 1px solid transparent;
    float: left;
    margin-left: 2px;
    padding: 6px 12px;
    position: relative;
    text-decoration: none;
    color: #333;
    cursor: pointer;
}

.datatable-pagination a:hover,
.datatable-pagination button:hover {
    background-color: #d9d9d9;
}

.datatable-pagination .datatable-active a,
.datatable-pagination .datatable-active a:focus,
.datatable-pagination .datatable-active a:hover,
.datatable-pagination .datatable-active button,
.datatable-pagination .datatable-active button:focus,
.datatable-pagination .datatable-active button:hover {
    background-color: #d9d9d9;
    cursor: default;
}

.datatable-pagination .datatable-ellipsis a,
.datatable-pagination .datatable-disabled a,
.datatable-pagination .datatable-disabled a:focus,
.datatable-pagination .datatable-disabled a:hover,
.datatable-pagination .datatable-ellipsis button,
.datatable-pagination .datatable-disabled button,
.datatable-pagination .datatable-disabled button:focus,
.datatable-pagination .datatable-disabled button:hover {
    pointer-events: none;
    cursor: default;
}

.datatable-pagination .datatable-disabled a,
.datatable-pagination .datatable-disabled a:focus,
.datatable-pagination .datatable-disabled a:hover,
.datatable-pagination .datatable-disabled button,
.datatable-pagination .datatable-disabled button:focus,
.datatable-pagination .datatable-disabled button:hover {
    cursor: not-allowed;
    opacity: 0.4;
}

.datatable-pagination .datatable-pagination a,
.datatable-pagination .datatable-pagination button {
    font-weight: bold;
}

/* TABLE */
.datatable-table {
    max-width: 100%;
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
}

.datatable-table>tbody>tr>td,
.datatable-table>tbody>tr>th,
.datatable-table>tfoot>tr>td,
.datatable-table>tfoot>tr>th,
.datatable-table>thead>tr>td,
.datatable-table>thead>tr>th {
    vertical-align: top;
    padding: 8px 10px;
}

.datatable-table>thead>tr>th {
    vertical-align: bottom;
    text-align: left;
    border-bottom: 1px solid #d9d9d9;
}

.datatable-table>tfoot>tr>th {
    vertical-align: bottom;
    text-align: left;
    border-top: 1px solid #d9d9d9;
}

.datatable-table th {
    vertical-align: bottom;
    text-align: left;
}

.datatable-table th a {
    text-decoration: none;
    color: inherit;
}

.datatable-table th button,
.datatable-pagination-list button {
    color: inherit;
    border: 0;
    background-color: inherit;
    cursor: pointer;
    text-align: inherit;
    font-weight: inherit;
    font-size: inherit;
}

.datatable-sorter,
.datatable-filter {
    display: inline-block;
    height: 100%;
    position: relative;
    width: 100%;
}

.datatable-sorter::before,
.datatable-sorter::after {
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    right: 4px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 0.2;
}


.datatable-sorter::before {
    border-top: 4px solid #000;
    bottom: 0px;
}

.datatable-sorter::after {
    border-bottom: 4px solid #000;
    border-top: 4px solid transparent;
    top: 0px;
}

.datatable-ascending .datatable-sorter::after,
.datatable-descending .datatable-sorter::before,
.datatable-ascending .datatable-filter::after,
.datatable-descending .datatable-filter::before {
    opacity: 0.6;
}

.datatable-filter::before {
    content: "";
    position: absolute;
    right: 4px;
    opacity: 0.2;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-radius: 50%;
    border-top: 10px solid #000;
    top: 25%;
}

.datatable-filter-active .datatable-filter::before {
    opacity: 0.6;
}

.datatable-empty {
    text-align: center;
}

.datatable-top::after,
.datatable-bottom::after {
    clear: both;
    content: " ";
    display: table;
}

table.datatable-table:focus tr.datatable-cursor>td:first-child {
    border-left: 3px blue solid;
}

table.datatable-table:focus {
    outline: solid 1px black;
    outline-offset: -1px;
}

.help-block {
    color: red;
}


/* ============================================================
   ADMIN LAYOUT BEAUTIFICATION
   ============================================================ */

/* ── SIDEBAR ── */
.sidenav.sidenav-dark {
    background: linear-gradient(180deg, #004d00 0%, #003300 60%, #001a00 100%);
    border-right: none;
    box-shadow: 4px 0 15px rgba(0,0,0,0.25);
}

.sidenav.sidenav-dark .sidenav-menu-heading {
    color: rgba(255,215,0,0.55) !important;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    padding-top: 1.5rem;
}

.sidenav.sidenav-dark .nav-link {
    color: rgba(255,255,255,0.78);
    border-radius: 0.375rem;
    margin: 1px 0.5rem;
    padding: 0.55rem 0.75rem;
    transition: background 0.18s, color 0.18s;
}

.sidenav.sidenav-dark .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    text-decoration: none;
}

.sidenav.sidenav-dark .nav-link.active,
.sidenav.sidenav-dark .nav-link[aria-expanded="true"] {
    background: linear-gradient(90deg, rgba(255,215,0,0.18) 0%, rgba(255,215,0,0.06) 100%);
    color: #FFD700;
    font-weight: 600;
    border-left: 3px solid #FFD700;
    padding-left: calc(0.75rem - 3px);
}

.sidenav.sidenav-dark .nav-link .nav-link-icon { color: rgba(255,215,0,0.7); }
.sidenav.sidenav-dark .nav-link:hover .nav-link-icon,
.sidenav.sidenav-dark .nav-link.active .nav-link-icon { color: #FFD700; }

.sidenav.sidenav-dark .sidenav-menu-nested .nav-link {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.65);
    padding-left: 1.75rem;
    border-left: none;
}
.sidenav.sidenav-dark .sidenav-menu-nested .nav-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}
.sidenav.sidenav-dark .sidenav-menu-nested .nav-link.active {
    color: #FFD700;
    background: rgba(255,215,0,0.1);
    border-left: 2px solid #FFD700;
    padding-left: calc(1.75rem - 2px);
    font-weight: 600;
}

.sidenav.sidenav-dark .sidenav-collapse-arrow { color: rgba(255,255,255,0.4); margin-left: auto; }

.sidenav.sidenav-dark .sidenav-footer {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.85rem 1rem;
}
.sidenav.sidenav-dark .sidenav-footer .sidenav-footer-subtitle {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sidenav.sidenav-dark .sidenav-footer .sidenav-footer-title {
    font-size: 0.875rem;
    color: #FFD700;
    font-weight: 600;
}
.sidenav .sidenav-menu::-webkit-scrollbar { width: 4px; }
.sidenav .sidenav-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.sidenav .sidenav-menu::-webkit-scrollbar-track { background: transparent; }

/* ── TOPNAV ── */
.admin-topnav {
    background: linear-gradient(135deg, #003d00 0%, #005700 100%) !important;
    border-bottom: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
    padding: 0 0.75rem;
    min-height: 3.625rem;
}

/* Sidebar toggle button */
.admin-topnav-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.85) !important;
    padding: 0.4rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    cursor: pointer;
}
.admin-topnav-btn:hover { background: rgba(255,255,255,0.12) !important; color: #fff !important; }
.admin-topnav-btn .feather { width: 20px; height: 20px; }

/* Brand */
.admin-brand {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #FFD700 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.admin-brand:hover { opacity: 0.85; }
.admin-brand-icon { color: #FFD700; display: flex; align-items: center; }
.admin-brand-icon .feather { width: 18px; height: 18px; }

/* Search */
.admin-search-wrap {
    position: relative;
    width: 220px;
}
.admin-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    width: 15px;
    height: 15px;
    pointer-events: none;
}
.admin-search-input {
    width: 100%;
    padding: 0.45rem 0.85rem 0.45rem 2.25rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2rem;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: background 0.2s, border-color 0.2s;
}
.admin-search-input::placeholder { color: rgba(255,255,255,0.45); }
.admin-search-input:focus {
    background: rgba(255,255,255,0.18);
    border-color: #FFD700;
}

/* User button */
.admin-user-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.65rem;
    border-radius: 2rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
}
.admin-user-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: #FFD700;
    color: #FFD700;
}
.admin-user-btn::after { display: none !important; } /* hide BS caret */

/* Avatar circle */
.admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #ffa500);
    color: #003300;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.admin-avatar-lg {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.admin-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}
.admin-user-role {
    font-size: 0.7rem;
    color: rgba(255,215,0,0.7);
    line-height: 1.2;
}
.admin-chevron {
    color: rgba(255,255,255,0.5);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Dropdown */
.admin-dropdown {
    border: none !important;
    border-radius: 0.6rem !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18) !important;
    padding: 0.25rem 0;
    min-width: 210px;
    overflow: hidden;
}
.admin-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #f8f9fa;
}
.admin-dropdown-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #212832;
    line-height: 1.3;
}
.admin-dropdown-email {
    font-size: 0.75rem;
    color: #69707a;
}
.admin-dropdown-divider {
    height: 1px;
    background: #e0e5ec;
    margin: 0.25rem 0;
}
.admin-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    color: #363d47;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
    border-radius: 0;
}
.admin-dropdown-item .feather { width: 15px; height: 15px; flex-shrink: 0; }
.admin-dropdown-item:hover { background: #f2f6fc; color: #004d00; }
.admin-dropdown-item-danger { color: #e81500 !important; }
.admin-dropdown-item-danger:hover { background: #fdf1f0 !important; color: #e81500 !important; }

/* ── MAIN CONTENT ── */
#layoutSidenav_content {
    flex: 1;
}

#layoutSidenav_content main,
#layoutSidenav_content .content-main {
    flex: 1;
    min-height: calc(100vh - 3.625rem);
    background-color: #c8d8c8;
    background-image:
        radial-gradient(circle, rgba(0,80,0,0.1) 1px, transparent 1px),
        linear-gradient(160deg, #c8d6e0 0%, #ccd8cc 45%, #c4d4c4 100%);
    background-size: 22px 22px, 100% 100%;
    background-attachment: local;
}

/* ── PAGE HEADER BANNER ── */
.page-header.page-header-dark {
    background: linear-gradient(135deg, #004d00 0%, #006400 40%, #007a00 70%, #228B22 100%) !important;
    position: relative;
    overflow: hidden;
    padding-top: 0.6rem !important;
    padding-bottom: 1.75rem !important;
}

/* Tighten inner content vertical padding for all page-headers */
.page-header .page-header-content {
    padding-top: 0.6rem !important;
    padding-bottom: 0.5rem !important;
}

/* Decorative circles in header */
.page-header.page-header-dark::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,215,0,0.07);
    pointer-events: none;
}
.page-header.page-header-dark::after {
    content: '';
    position: absolute;
    bottom: -60px; left: 30%;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.page-header-title {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.page-header-icon { color: #FFD700 !important; }
.page-header-icon .feather { width: 22px; height: 22px; }
.page-header-subtitle {
    color: rgba(255,255,255,0.75) !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ── Page header pull-up (application profile pages) ── */
.container-xl.mt-n10 {
    margin-top: -2rem !important;
    position: relative;
    z-index: 1;
}

.card {
    border: none !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04) !important;
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06) !important;
}
.card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #eef0f4 !important;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #363d47;
}
.card-body { padding: 1.25rem; }

/* Stat cards icon badges */
.card .rounded.p-2 {
    border-radius: 0.5rem !important;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── TABLES ── */
.table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e0e5ec !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #69707a;
    padding: 0.65rem 0.75rem;
}
.table tbody tr {
    transition: background 0.12s;
}
.table tbody tr:hover {
    background: #f4f8ff !important;
}
.table td {
    vertical-align: middle;
    border-color: #f0f2f5 !important;
    font-size: 0.875rem;
}

/* ── FORM CONTROLS ── */
.form-control, .form-select {
    border-radius: 0.5rem;
    border-color: #d4dae3;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: #006400;
    box-shadow: 0 0 0 3px rgba(0,100,0,0.1);
}

/* ── BUTTONS ── */
.btn-primary {
    background: linear-gradient(135deg, #005200, #007a00) !important;
    border: none !important;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: opacity 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0,100,0,0.3) !important;
}

/* ── NAV TABS ── */
.nav-tabs .nav-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: #69707a;
    border: none;
    padding: 0.5rem 0.85rem;
    border-radius: 0.35rem 0.35rem 0 0;
    transition: color 0.15s, background 0.15s;
}
.nav-tabs .nav-link:hover { color: #004d00; background: #f2f6fc; }
.nav-tabs .nav-link.active {
    color: #004d00;
    font-weight: 700;
    border-bottom: 2px solid #006400;
    background: transparent;
}

/* ── BADGES ── */
.badge {
    border-radius: 0.4rem;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.3em 0.6em;
}

/* ── PROGRESS BARS ── */
.progress {
    border-radius: 2rem;
    background: #e8ecf0;
}
.progress-bar {
    border-radius: 2rem;
}

/* ── FOOTER ── */
.admin-footer {
    background: #ffffff;
    border-top: 1px solid #e0e5ec;
    padding: 0.85rem 0;
    color: #69707a;
    font-size: 0.8rem;
}
.admin-footer a {
    color: #006400;
    text-decoration: none;
}
.admin-footer a:hover { text-decoration: underline; }

/* All modules share the same admin green/gold theme — no overrides needed */


/* ============================================================
   APPLICATION PROFILE FORM STYLES
   ============================================================ */

/* Shared form card wrapper */
.form-wizard-card {
    border: none !important;
    border-radius: 0.85rem !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07) !important;
    overflow: hidden;
}

/* Step badge */
.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #1b5e20;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.28rem 0.85rem;
    border-radius: 2rem;
    border: 1px solid #a5d6a7;
    margin-bottom: 0.5rem;
}
.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2e1a;
    margin-bottom: 0.2rem;
}
.form-section-subtitle {
    font-size: 0.82rem;
    color: #8a94a6;
    margin-bottom: 1.5rem;
}

/* Floating label field group */
.field-group {
    position: relative;
    margin-bottom: 1.25rem;
}
.field-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4a5568;
    margin-bottom: 0.4rem;
}
.field-group .field-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aab4;
    width: 15px;
    height: 15px;
    pointer-events: none;
    /* offset when label is present */
    margin-top: 14px;
}
.field-group.has-icon .form-control,
.field-group.has-icon .form-select,
.field-group.has-icon select.form-control {
    padding-left: 2.4rem !important;
}

/* Enhanced form controls */
.form-control,
.form-select,
select.form-control,
input.form-control,
textarea.form-control {
    height: auto;
    padding: 0.6rem 0.9rem;
    border-radius: 0.5rem !important;
    border: 1.5px solid #dde3ea !important;
    font-size: 0.875rem;
    color: #2d3748;
    background-color: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-shadow: none !important;
}
.form-control:focus,
.form-select:focus,
select.form-control:focus,
input.form-control:focus,
textarea.form-control:focus {
    border-color: #006400 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.1) !important;
    color: #1a2e1a;
}
.form-control::placeholder { color: #b0bac5; }
.form-control:disabled,
.form-control[readonly] {
    background-color: #f0f4f0 !important;
    border-color: #e2e8e2 !important;
    color: #6b7c6b;
    cursor: not-allowed;
}
select.form-control,
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7c8d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.2rem !important;
}

/* Radio group */
.radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.2rem;
}
.radio-pill input[type=radio] { display: none; }
.radio-pill label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.1rem;
    border-radius: 2rem;
    border: 1.5px solid #dde3ea;
    background: #fafbfc;
    color: #4a5568;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}
.radio-pill input[type=radio]:checked + label {
    border-color: #006400;
    background: linear-gradient(135deg, #e8f5e9, #f0fff0);
    color: #1b5e20;
    box-shadow: 0 2px 8px rgba(0,100,0,0.12);
}
.radio-pill label:hover {
    border-color: #86bb86;
    background: #f0fff0;
}

/* Sitting card (O-levels) */
.sitting-form-card {
    border: 1.5px solid #e0eae0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}
.sitting-form-card .sitting-form-header {
    background: linear-gradient(90deg, #004d00, #007a00);
    color: #fff;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.sitting-form-card .sitting-form-header .feather {
    width: 13px; height: 13px; color: #FFD700;
}
.sitting-form-card .sitting-form-body { padding: 1rem; }

/* Add subject button */
.btn-add-subject {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    border: 1.5px dashed #86bb86;
    background: transparent;
    color: #2d6a2d;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-add-subject:hover {
    background: #e8f5e9;
    border-color: #006400;
    border-style: solid;
}

/* Subject row remove */
.btn-remove-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1.5px solid #fca5a5;
    background: #fff;
    color: #dc2626;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.15s;
    flex-shrink: 0;
    margin-top: 28px;
}
.btn-remove-row:hover { background: #fee2e2; }

/* Form action bar */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e8edf2;
    flex-wrap: wrap;
}
.btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    border: 1.5px solid #dde3ea;
    background: #fff;
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.15s;
}
.btn-prev:hover { border-color: #006400; color: #006400; background: #f0fff0; }
.btn-prev.disabled { opacity: 0.45; pointer-events: none; }
.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.75rem;
    border-radius: 2rem;
    border: none;
    background: linear-gradient(135deg, #005200, #007a00);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,100,0,0.25);
    transition: opacity 0.15s, box-shadow 0.15s;
}
.btn-save:hover { opacity: 0.9; box-shadow: 0 5px 16px rgba(0,100,0,0.3); color: #FFD700; }
.btn-skip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    border: 1.5px solid #dde3ea;
    background: #fff;
    color: #6b7c8d;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.15s;
}
.btn-skip:hover { border-color: #aab4be; color: #4a5568; }

/* Photo upload area */
.photo-upload-area {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1.5px dashed #c5d5c5;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
}
.photo-preview-circle {
    width: 90px; height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #006400;
    box-shadow: 0 3px 12px rgba(0,100,0,0.2);
    flex-shrink: 0;
}
.photo-placeholder-circle {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 3px solid #a5d6a7;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #4caf50;
}
.photo-upload-hint {
    font-size: 0.78rem;
    color: #8a94a6;
    margin-top: 0.35rem;
}

/* Password strength visual */
.password-field-wrap { position: relative; }
.password-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a0aab4;
    background: none;
    border: none;
    padding: 0;
    display: flex;
}
.password-toggle:hover { color: #006400; }

/* ── Inline radio pills (personal detail gender field) ── */
.radio-inline-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding-top: 0.1rem;
}
.radio-pill-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 1.1rem;
    border-radius: 2rem;
    border: 1.5px solid #dde3ea;
    background: #fafbfc;
    color: #4a5568;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    margin: 0;
    white-space: nowrap;
    user-select: none;
}
.radio-pill-label input[type="radio"] {
    accent-color: #006400;
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}
.radio-pill-label:has(input[type="radio"]:checked) {
    border-color: #006400;
    background: linear-gradient(135deg, #e8f5e9, #f0fff0);
    color: #1b5e20;
    box-shadow: 0 2px 8px rgba(0, 100, 0, 0.1);
}
.radio-pill-label:hover {
    border-color: #86bb86;
    background: #f0fff0;
}

/* ── Content / Header / Footer spacing ── */
.content-main {
    padding-bottom: 2rem;
}

/* Space between the topnav and the page-header banner */
.page-header.page-header-dark {
    margin-top: 0;
    padding-top: 1.5rem !important;
}

/* Push footer away from last card */
.admin-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* ── Required field marker ── */
.req {
    color: #e81500;
    font-weight: 700;
    margin-left: 2px;
    font-size: 0.85em;
}

/* ============================================================
   FORM FIELD ICONS + VALIDATION STATES
   ============================================================ */

/* Input wrapper with left icon */
.input-icon-wrap {
    position: relative;
}
.input-icon-wrap .input-icon {
    position: absolute;
    left: 0.78rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aab4;
    width: 15px; height: 15px;
    pointer-events: none;
    z-index: 2;
    flex-shrink: 0;
}
.input-icon-wrap .form-control,
.input-icon-wrap select.form-control {
    padding-left: 2.35rem !important;
}

/* Textarea icon sits at top */
.input-icon-wrap.textarea-icon .input-icon {
    top: 0.75rem;
    transform: none;
}
.input-icon-wrap.textarea-icon .form-control {
    padding-left: 2.35rem !important;
}

/* Required asterisk — red, bold */
.req {
    color: #e81500 !important;
    font-weight: 700;
    margin-left: 3px;
    font-size: 0.9em;
}

/* Field legend */
.field-legend {
    font-size: 0.75rem;
    color: #8a94a6;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.field-legend .req { font-size: 0.9rem; }

/* Yii validation states */
.has-error .form-control,
.has-error select.form-control {
    border-color: #e81500 !important;
    background-color: #fff8f8 !important;
}
.has-error .form-control:focus {
    box-shadow: 0 0 0 3px rgba(232,21,0,0.1) !important;
}
.has-success .form-control,
.has-success select.form-control {
    border-color: #00ac69 !important;
}
.has-success .form-control:focus {
    box-shadow: 0 0 0 3px rgba(0,172,105,0.1) !important;
}

/* Error message */
.help-block.help-block-error {
    color: #e81500;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.help-block.help-block-error::before {
    content: '';
    display: inline-block;
    width: 13px; height: 13px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23e81500' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

/* Icon colour changes on validation state */
.has-error  .input-icon { color: #e81500 !important; }
.has-success .input-icon { color: #00ac69 !important; }

/* ============================================================
   APPLICATION PAGES — INFO GRID + STATUS BADGES + ACTION BTNS
   ============================================================ */

.app-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.app-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #f0f2f5;
    flex-wrap: wrap;
}
.app-info-row:last-child { border-bottom: none; }

.app-info-label {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a94a6;
}
.app-info-label .feather { color: #a0aab4; flex-shrink: 0; }

.app-info-value {
    flex: 1;
    font-size: 0.875rem;
    color: #2d3748;
    font-weight: 500;
}

/* Status badges */
.app-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
}
.app-status-badge.success {
    background: rgba(0,172,105,0.12);
    color: #00805a;
    border: 1px solid rgba(0,172,105,0.3);
}
.app-status-badge.warning {
    background: rgba(244,161,0,0.12);
    color: #c07000;
    border: 1px solid rgba(244,161,0,0.3);
}
.app-status-badge.muted {
    background: #f2f6fc;
    color: #69707a;
    border: 1px solid #e0e5ec;
}

/* Action buttons */
.app-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.1rem;
    border-radius: 2rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    border: none;
    transition: opacity 0.15s, box-shadow 0.15s;
}
.app-action-btn.primary {
    background: linear-gradient(135deg, #005200, #007a00);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,100,0,0.2);
}
.app-action-btn.primary:hover {
    opacity: 0.9;
    color: #FFD700 !important;
    box-shadow: 0 4px 14px rgba(0,100,0,0.3);
}
.app-action-btn.secondary {
    background: #fff;
    color: #006400 !important;
    border: 1.5px solid #006400;
}
.app-action-btn.secondary:hover {
    background: #f0fff0;
}

@media (max-width: 576px) {
    .app-info-label { flex: 0 0 140px; font-size: 0.72rem; }
    .app-info-value { font-size: 0.82rem; }
}

/* ============================================================
   AUTH PAGES — LOGIN & REGISTER
   ============================================================ */

/* Full-height split layout */
.auth-page {
    display: flex;
    min-height: 100vh;
}

/* ── Left branding panel ── */
.auth-panel-left {
    flex: 0 0 380px;
    background: linear-gradient(160deg, #003300 0%, #005200 45%, #007a00 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.auth-panel-deco { position: absolute; inset: 0; pointer-events: none; }
.auth-deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,215,0,0.06);
}
.auth-deco-circle-1 { width: 320px; height: 320px; top: -80px;  right: -80px; }
.auth-deco-circle-2 { width: 220px; height: 220px; bottom: -60px; left: -60px; background: rgba(255,255,255,0.04); }
.auth-deco-circle-3 { width: 120px; height: 120px; top: 55%; left: 60%; background: rgba(255,215,0,0.04); }

.auth-brand {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 2.5rem;
}
.auth-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid rgba(255,215,0,0.4);
    padding: 6px;
    background: rgba(255,255,255,0.08);
    margin-bottom: 1rem;
}
.auth-school-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #FFD700;
    letter-spacing: 0.06em;
    line-height: 1.3;
    margin-bottom: 0.3rem;
}
.auth-school-tagline {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
}

/* Step list */
.auth-steps {
    position: relative;
    z-index: 1;
    width: 100%;
}
.auth-step {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 0;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.55);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s;
}
.auth-step:last-child { border-bottom: none; }
.auth-step.active { color: #FFD700; font-weight: 600; }
.auth-step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
}
.auth-step.active .auth-step-num {
    background: rgba(255,215,0,0.2);
    border-color: rgba(255,215,0,0.5);
    color: #FFD700;
}

/* ── Right form panel ── */
.auth-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #f4f7f4;
    background-image: radial-gradient(circle, rgba(0,80,0,0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    overflow-y: auto;
}

.auth-form-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    padding: 2.25rem 2rem;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 1.75rem;
}
.auth-form-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #006400;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 0.85rem;
    box-shadow: 0 3px 12px rgba(0,100,0,0.15);
}
.auth-form-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a2e1a;
    margin: 0 0 0.3rem;
}
.auth-form-sub {
    font-size: 0.82rem;
    color: #8a94a6;
    margin: 0;
}

/* Alert */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
}
.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}
.auth-alert svg { flex-shrink: 0; margin-top: 1px; }

/* Field */
.auth-field {
    margin-bottom: 1.1rem;
}
.auth-field label {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4a5568;
    margin-bottom: 0.4rem;
}
.auth-field label .auth-forgot {
    margin-left: auto;
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    color: #006400;
    text-decoration: none;
}
.auth-field label .auth-forgot:hover { text-decoration: underline; }

.auth-input-wrap {
    position: relative;
}
.auth-input-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aab4;
    pointer-events: none;
    z-index: 2;
}
.auth-input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 2.35rem;
    border: 1.5px solid #dde3ea;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #2d3748;
    background: #fafbfc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.auth-input:focus {
    border-color: #006400;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,100,0,0.1);
}
.auth-input::placeholder { color: #b0bac5; }

/* Eye toggle */
.auth-eye-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #a0aab4;
    display: flex;
    align-items: center;
}
.auth-eye-btn:hover { color: #006400; }

/* Remember me / terms */
.auth-remember { margin-bottom: 1.25rem; }
.auth-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #4a5568;
    cursor: pointer;
}
.auth-checkbox {
    width: 15px; height: 15px;
    accent-color: #006400;
    cursor: pointer;
    flex-shrink: 0;
}

/* Submit button */
.auth-submit-btn {
    width: 100%;
    padding: 0.7rem;
    border-radius: 2rem;
    border: none;
    background: linear-gradient(135deg, #005200, #007a00);
    color: #fff;
    font-size: 0.925rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,100,0,0.25);
    transition: opacity 0.15s, box-shadow 0.15s;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
}
.auth-submit-btn:hover {
    opacity: 0.92;
    box-shadow: 0 5px 18px rgba(0,100,0,0.32);
    color: #FFD700;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: #a0aab4;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8edf2;
}

/* Alt button (secondary) */
.auth-alt-btn {
    display: block;
    text-align: center;
    padding: 0.6rem;
    border-radius: 2rem;
    border: 1.5px solid #006400;
    background: transparent;
    color: #006400;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
}
.auth-alt-btn:hover {
    background: #f0fff0;
    text-decoration: none;
    color: #004d00;
}

/* Yii error under auth inputs */
.auth-field .help-block {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.auth-field .has-error .auth-input {
    border-color: #e81500 !important;
    background: #fff8f8 !important;
}

/* ── Responsive: stack on mobile ── */
@media (max-width: 768px) {
    .auth-page       { flex-direction: column; }
    .auth-panel-left {
        flex: none;
        padding: 1.75rem 1.5rem;
        min-height: auto;
    }
    .auth-steps      { display: none; }
    .auth-brand      { margin-bottom: 0; }
    .auth-logo       { width: 60px; height: 60px; }
    .auth-school-name { font-size: 0.82rem; }
    .auth-panel-right { padding: 1.5rem 1rem; }
    .auth-form-card   { padding: 1.5rem 1.25rem; }
}


/* ============================================================
   MODAL FORM BEAUTIFICATION
   Shared styles for all admin/portal _form.php files loaded
   inside modals. No changes needed to modal shell.
   ============================================================ */

/* ── Form header banner (inside modal) ── */
.mf-header {
    background: linear-gradient(135deg, #002800 0%, #004d00 50%, #006400 100%);
    padding: 1.25rem 1.5rem 1rem;
    margin: -1rem -1rem 1.5rem;   /* bleeds to modal-body edges */
    border-radius: 0.5rem 0.5rem 0 0;
    position: relative;
    overflow: hidden;
}
.mf-header::after {
    content: '';
    position: absolute;
    width: 180px; height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    top: -60px; right: -40px;
    pointer-events: none;
}
.mf-header-icon {
    width: 36px; height: 36px;
    border-radius: 0.5rem;
    background: rgba(255,215,0,0.18);
    border: 1.5px solid rgba(255,215,0,0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.mf-header-icon svg { color: #FFD700; }
.mf-header-eyebrow {
    font-size: 0.62rem;
    color: rgba(255,215,0,0.65);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.15rem;
}
.mf-header-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.1rem;
    line-height: 1.25;
}
.mf-header-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* ── Section divider ── */
.mf-section {
    margin-bottom: 1.25rem;
}
.mf-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: #006400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.mf-section-label::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, #d0e8d0, transparent);
    border-radius: 1px;
}

/* ── Field group ── */
.mf-field {
    margin-bottom: 1rem;
}
.mf-field > label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4a5568;
    margin-bottom: 0.35rem;
}
.mf-field > label .req {
    color: #e81500;
    margin-left: 2px;
}

/* ── Icon input wrap ── */
.mf-input-wrap {
    position: relative;
}
.mf-input-wrap .mf-icon {
    position: absolute;
    left: 0.78rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aab4;
    width: 15px; height: 15px;
    pointer-events: none;
    z-index: 2;
    flex-shrink: 0;
}
.mf-input-wrap.textarea .mf-icon {
    top: 0.75rem;
    transform: none;
}
.mf-input-wrap .form-control,
.mf-input-wrap select.form-control {
    padding-left: 2.35rem !important;
}

/* ── Form controls inside modal forms ── */
.mf-body .form-control,
.mf-body select.form-control,
.mf-body .form-select,
.mf-body textarea.form-control {
    height: auto;
    padding: 0.6rem 0.9rem;
    border-radius: 0.5rem !important;
    border: 1.5px solid #dde3ea !important;
    font-size: 0.875rem;
    color: #2d3748;
    background-color: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-shadow: none !important;
}
.mf-body .form-control:focus,
.mf-body select.form-control:focus,
.mf-body .form-select:focus,
.mf-body textarea.form-control:focus {
    border-color: #006400 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(0,100,0,0.1) !important;
}
.mf-body .form-control::placeholder { color: #b0bac5; }

/* ── Radio pills ── */
.mf-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.1rem;
}
.mf-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    border: 1.5px solid #dde3ea;
    background: #fafbfc;
    color: #4a5568;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.mf-radio-pill input[type=radio] {
    accent-color: #006400;
    width: 14px; height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}
.mf-radio-pill:has(input[type=radio]:checked) {
    border-color: #006400;
    background: linear-gradient(135deg, #e8f5e9, #f0fff0);
    color: #1b5e20;
    box-shadow: 0 2px 8px rgba(0,100,0,0.1);
}
.mf-radio-pill:hover { border-color: #86bb86; background: #f0fff0; }

/* ── Checkbox list ── */
.mf-check-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 180px;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid #dde3ea;
    border-radius: 0.5rem;
    background: #fafbfc;
}
.mf-check-list::-webkit-scrollbar { width: 4px; }
.mf-check-list::-webkit-scrollbar-thumb { background: #c8d8c8; border-radius: 4px; }
.mf-check-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #2d3748;
    font-weight: 500;
    cursor: pointer;
}
.mf-check-item input[type=checkbox] {
    width: 15px; height: 15px;
    accent-color: #006400;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Step progress bar ── */
.mf-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
    background: #f4f8f4;
    border-radius: 0.5rem;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid #e0eae0;
}
.mf-step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    font-size: 0.75rem;
    font-weight: 700;
    color: #a0aab4;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.mf-step.active { color: #006400; }
.mf-step.done   { color: #10b981; }
.mf-step-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #dde3ea;
    color: #69707a;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mf-step.active .mf-step-num {
    background: linear-gradient(135deg, #004d00, #006400);
    color: #FFD700;
}
.mf-step.done .mf-step-num {
    background: linear-gradient(135deg, #065f46, #10b981);
    color: #fff;
}
.mf-step-divider {
    flex: 0 0 20px;
    height: 1.5px;
    background: #dde3ea;
    margin: 0 0.25rem;
}
.mf-step-divider.done { background: #10b981; }

/* ── Form footer ── */
.mf-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 1rem 1.5rem 0.25rem;
    margin: 0 -1rem -0.5rem;
    border-top: 1.5px solid #eaf0ea;
    background: linear-gradient(90deg, #f4f8f4, #fff);
    border-radius: 0 0 0.5rem 0.5rem;
    flex-wrap: wrap;
}
.mf-btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.1rem;
    border-radius: 2rem;
    border: 1.5px solid #dde3ea;
    background: #fff;
    color: #69707a;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.mf-btn-cancel:hover { border-color: #a0aab4; color: #4a5568; background: #f8fafc; }
.mf-btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.1rem;
    border-radius: 2rem;
    border: 1.5px solid #dde3ea;
    background: #fff;
    color: #4a5568;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.mf-btn-prev:hover { border-color: #006400; color: #006400; background: #f0fff0; }
.mf-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.5rem;
    border-radius: 2rem;
    border: none;
    background: linear-gradient(135deg, #005200, #007a00);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,100,0,0.25);
    transition: opacity 0.15s, box-shadow 0.15s;
    text-decoration: none;
}
.mf-btn-save:hover { opacity: 0.9; box-shadow: 0 5px 16px rgba(0,100,0,0.3); color: #FFD700; }
.mf-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.5rem;
    border-radius: 2rem;
    border: none;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(30,64,175,0.2);
    transition: opacity 0.15s;
}
.mf-btn-next:hover { opacity: 0.9; color: #fff; }

/* ── Validation states ── */
.mf-body .has-error .form-control,
.mf-body .has-error select.form-control {
    border-color: #e81500 !important;
    background-color: #fff8f8 !important;
}
.mf-body .has-error .mf-icon { color: #e81500 !important; }
.mf-body .help-block { font-size: 0.73rem; color: #e81500; margin-top: 0.25rem; }

/* ── Dynamic row add/remove ── */
.mf-dynamic-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border: 1.5px solid #e8edf2;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: border-color 0.15s;
}
.mf-dynamic-row:hover { border-color: #c8d8c8; }
.mf-dynamic-row .mf-field { flex: 1; margin-bottom: 0; }
.mf-btn-add-row {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    border: 1.5px dashed #86bb86;
    background: transparent;
    color: #2d6a2d;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 0.5rem;
}
.mf-btn-add-row:hover { background: #e8f5e9; border-style: solid; border-color: #006400; }
.mf-btn-del-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1.5px solid #fca5a5;
    background: #fff;
    color: #dc2626;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.15s;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 0.5rem;
}
.mf-btn-del-row:hover { background: #fee2e2; }


/* ============================================================
   DETAIL VIEW CARDS  (view.php pages)
   ============================================================ */

/* Page wrapper that sits below the green header */
.dv-page {
    padding-bottom: 2.5rem;
}

/* Card shell */
.dv-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    border: 1px solid #eaf0ea;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Card top-bar */
.dv-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1.5px solid #eaf0ea;
    background: linear-gradient(90deg, #f4f8f4, #fff);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.dv-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dv-card-icon {
    width: 32px; height: 32px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #004d00, #00a000);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.dv-card-icon svg { color: #FFD700; }
.dv-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a2e1a;
}
.dv-card-sub {
    font-size: 0.72rem;
    color: #8a94a6;
}
.dv-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Action buttons */
.dv-btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    border: 1.5px solid #d4e0d4;
    background: #fff;
    color: #004d00;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.15s;
}
.dv-btn-edit:hover {
    background: #f0fff0;
    border-color: #006400;
    color: #006400;
}
.dv-btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    border: 1.5px solid #fca5a5;
    background: #fff;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.15s;
}
.dv-btn-delete:hover { background: #fee2e2; border-color: #dc2626; }

/* Card body */
.dv-card-body {
    padding: 0;
}

/* Section label inside card body */
.dv-section {
    padding: 0.75rem 1.5rem 0;
}
.dv-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: #006400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0;
}
.dv-section-label::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, #d0e8d0, transparent);
    border-radius: 1px;
}

/* Field rows */
.dv-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
}
.dv-field {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px dashed #f0f2f5;
}
.dv-field:last-child { border-bottom: none; }
.dv-field-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a94a6;
    margin-bottom: 0.2rem;
}
.dv-field-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a2e1a;
}
.dv-field-value.mono { font-family: monospace; font-size: 0.8rem; color: #5b21b6; }
.dv-field-value.muted { color: #8a94a6; font-weight: 400; }
.dv-field-value.currency { color: #065f46; font-weight: 800; }

/* Status badges */
.dv-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 2rem;
    font-size: 0.68rem;
    font-weight: 700;
}
.dv-badge-success { background: #d1fae5; color: #065f46; }
.dv-badge-warning { background: #fef9ec; color: #92400e; }
.dv-badge-info    { background: #eff6ff; color: #1e40af; }
.dv-badge-purple  { background: #f5f3ff; color: #5b21b6; }

/* Create/Update page wrapper (standalone pages, not modals) */
.crud-page-wrap {
    padding-bottom: 2.5rem;
}
.crud-page-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    border: 1px solid #eaf0ea;
    overflow: hidden;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}
.crud-page-card .mf-header {
    border-radius: 0;
    margin: 0;
}
.crud-page-card .mf-body {
    padding: 1.5rem;
}
.crud-page-card .mf-footer {
    margin: 0 -1.5rem -1.5rem;
}


/* ============================================================
   ADMIN APPLICATION VIEWS — SHARED COMPONENT STYLES
   ============================================================ */

/* ── Admission pipeline flow steps ── */
.flow-steps { display:flex;align-items:flex-start;gap:0;margin-bottom:1.75rem;overflow-x:auto;padding-bottom:0.25rem; }
.flow-step { display:flex;flex-direction:column;align-items:center;flex:1;min-width:90px; }
.flow-step-row { display:flex;align-items:center;width:100%; }
.flow-dot {
    width:36px;height:36px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;font-weight:700;font-size:0.78rem;
    transition:all .2s;border:2px solid #e5e7eb;
    background:#f3f4f6;color:#9ca3af;
}
.flow-dot.done { background:#d1fae5;color:#065f46;border-color:#065f46; }
.flow-dot.active { background:#dbeafe;color:#1e40af;border-color:#1e40af; }
.flow-dot.purple { background:#f5f3ff;color:#5b21b6;border-color:#5b21b6; }
.flow-line { flex:1;height:2px;background:#e0eae0;margin-top:18px;align-self:flex-start;min-width:24px; }
.flow-line.done { background:#10b981; }
.flow-label { font-size:0.68rem;font-weight:600;color:#8a94a6;text-align:center;margin-top:0.4rem;line-height:1.3; }

/* ── Screening cards ── */
.screening-card {
    background:#fff;border-radius:0.85rem;
    border:1px solid #e8edf2;padding:1.25rem;
    margin-bottom:1rem;
}
.screening-card-title {
    font-size:0.72rem;font-weight:800;text-transform:uppercase;
    letter-spacing:0.08em;color:#4a5568;
    margin-bottom:0.85rem;display:flex;align-items:center;gap:0.4rem;
}
.screening-card-step-num {
    width:20px;height:20px;border-radius:50%;
    display:inline-flex;align-items:center;justify-content:center;
    font-weight:800;font-size:0.72rem;flex-shrink:0;
}
.screening-card-step-num.step-1 { background:#dbeafe;color:#1e40af; }
.screening-card-step-num.step-2 { background:#d1fae5;color:#065f46; }

/* ── Outcome button grid (screening result) ── */
.outcome-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:0.6rem; }
.outcome-btn {
    display:flex;flex-direction:column;align-items:center;gap:0.35rem;
    padding:0.75rem 0.5rem;border-radius:0.65rem;
    border:1.5px solid #e0eae0;background:#f8fbf8;
    cursor:pointer;transition:all .15s;
}
.outcome-btn input[type=radio] { display:none; }
.outcome-btn.pass:has(input:checked) { border-color:#065f46;background:#d1fae5;border-width:2px; }
.outcome-btn.fail:has(input:checked) { border-color:#be123c;background:#fee2e2;border-width:2px; }
.outcome-btn.abs:has(input:checked)  { border-color:#92400e;background:#fef9ec;border-width:2px; }
.outcome-btn.pend:has(input:checked) { border-color:#8a94a6;background:#f3f4f6;border-width:2px; }
.outcome-btn-label { font-size:0.72rem;font-weight:700; }
.outcome-btn.pass .outcome-btn-label { color:#065f46; }
.outcome-btn.fail .outcome-btn-label { color:#be123c; }
.outcome-btn.abs  .outcome-btn-label { color:#92400e; }
.outcome-btn.pend .outcome-btn-label { color:#8a94a6; }

/* ── Toggle switch ── */
.toggle-switch { position:relative;display:inline-flex;align-items:center;gap:0.65rem;cursor:pointer; }
.toggle-switch input { display:none; }
.toggle-track {
    width:44px;height:24px;border-radius:12px;
    background:#d1d5db;transition:background .2s;flex-shrink:0;position:relative;
}
.toggle-track::after {
    content:'';position:absolute;width:18px;height:18px;
    border-radius:50%;background:#fff;top:3px;left:3px;
    transition:transform .2s;box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-track { background:#006400; }
.toggle-switch input:checked + .toggle-track::after { transform:translateX(20px); }
.toggle-label { font-size:0.78rem;font-weight:600;color:#4a5568; }

/* ── Blocked / eligibility notice ── */
.blocked-overlay {
    background:#fffbeb;border:1.5px solid #fde68a;
    border-radius:0.75rem;padding:1rem 1.25rem;
    display:flex;align-items:flex-start;gap:0.75rem;
    margin-bottom:1.25rem;
}
.blocked-overlay-title { font-size:0.85rem;font-weight:700;color:#92400e;margin-bottom:0.3rem; }
.blocked-overlay-list { font-size:0.8rem;color:#92400e;margin:0;padding-left:1.1rem; }

/* ── Status info banner (current status strip) ── */
.status-banner {
    display:flex;align-items:center;gap:0.75rem;
    padding:0.85rem 1rem;border-radius:0.65rem;margin-bottom:1.5rem;
}
.status-banner.success { background:#d1fae5;border:1px solid #a7f3d0; }
.status-banner.warning { background:#fef9ec;border:1px solid #fde68a; }
.status-banner.info    { background:#eff6ff;border:1px solid #bfdbfe; }
.status-banner-title { font-size:0.8rem;font-weight:700;margin-bottom:0.2rem; }
.status-banner.success .status-banner-title { color:#065f46; }
.status-banner.warning .status-banner-title { color:#92400e; }
.status-banner.info    .status-banner-title { color:#1e40af; }
.status-banner-sub { font-size:0.73rem;color:#8a94a6; }

/* ── Application preview section (view.php) ── */
.app-preview-section { margin-bottom:1.5rem; }
.app-preview-section-title {
    font-size:0.7rem;font-weight:800;text-transform:uppercase;
    letter-spacing:0.1em;color:#006400;margin-bottom:0.65rem;
    display:flex;align-items:center;gap:0.4rem;
    padding-bottom:0.5rem;border-bottom:2px solid #d4ecd4;
}
.app-preview-row {
    display:flex;align-items:flex-start;padding:0.45rem 0;
    border-bottom:1px dashed #f0f2f5;font-size:0.83rem;gap:0.5rem;
}
.app-preview-row:last-child { border-bottom:none; }
.app-preview-label {
    flex:0 0 160px;color:#8a94a6;font-weight:600;
    font-size:0.73rem;text-transform:uppercase;
    letter-spacing:0.04em;padding-top:1px;
}
.app-preview-value { flex:1;color:#2d3748;font-weight:500;word-break:break-word; }
.app-badge-yes  { background:#d1fae5;color:#065f46;font-size:0.68rem;font-weight:700;padding:0.18rem 0.6rem;border-radius:2rem; }
.app-badge-no   { background:#f3f4f6;color:#6b7280;font-size:0.68rem;font-weight:700;padding:0.18rem 0.6rem;border-radius:2rem; }
.app-badge-mono { font-family:monospace;font-size:0.82rem;color:#5b21b6;font-weight:600; }

/* ── Applicant summary card (inside screening) ── */
.applicant-summary-row {
    display:flex;align-items:flex-start;padding:0.32rem 0;
    border-bottom:1px dashed #f0f2f5;font-size:0.8rem;
}
.applicant-summary-row:last-child { border-bottom:none; }
.applicant-summary-label {
    flex:0 0 78px;color:#8a94a6;font-weight:600;
    font-size:0.7rem;text-transform:uppercase;
}
.applicant-summary-value { flex:1;color:#2d3748;font-weight:500; }

/* ── Admission status radio pills ── */
.status-radio-group { display:flex;flex-wrap:wrap;gap:0.75rem;margin-bottom:0.5rem; }
.status-radio-label {
    display:flex;align-items:center;gap:0.55rem;
    padding:0.65rem 1.1rem;border-radius:0.65rem;
    border:1.5px solid #e0eae0;background:#f8fbf8;
    cursor:pointer;font-size:0.85rem;font-weight:600;color:#4a5568;
    transition:all .15s;
}
.status-radio-label:has(input:checked) { border-color:#006400;background:#f0fff4;color:#006400; }
.status-radio-label input[type=radio]  { accent-color:#006400; }

/* ── App form nav (pill tabs) ── */
.app-form-nav-wrap {
    background:#f4f8f4;border-radius:0.5rem;padding:0.35rem;
    overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.app-form-nav-wrap::-webkit-scrollbar { display:none; }
.app-form-nav-tabs {
    display:flex;flex-wrap:nowrap;list-style:none;
    margin:0;padding:0;gap:2px;min-width:max-content;
}
.app-form-nav-tabs li { flex:0 0 auto; }
.afnav-link {
    display:inline-flex;align-items:center;gap:0.4rem;
    padding:0.45rem 0.85rem;border-radius:0.375rem;
    font-size:0.8rem;font-weight:500;color:#69707a;
    text-decoration:none !important;white-space:nowrap;
    border:1px solid transparent;cursor:pointer;
    transition:background 0.15s,color 0.15s;
}
.afnav-link:hover { background:#e8f5e9;color:#006400;border-color:#c8e6c9; }
.afnav-link.active { background:#006400 !important;color:#fff !important;border-color:#006400; }
.afnav-dot {
    width:20px;height:20px;border-radius:50%;flex-shrink:0;
    display:inline-flex;align-items:center;justify-content:center;
    background:#e0e8e0;font-size:0.68rem;font-weight:800;color:#69707a;
}
.afnav-dot.done { background:#c8f0d8;color:#1b5e20; }
.afnav-link.active .afnav-dot { background:rgba(255,255,255,0.25);color:#fff; }
.afnav-dot .feather { width:11px;height:11px; }
.afnav-label       { display:inline; }
.afnav-label-short { display:none; }

/* ── Admin profile nav (pill tabs) ── */
.admin-profile-nav-wrap {
    background:#f4f8f4;border-radius:0.5rem;padding:0.35rem;
    overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.admin-profile-nav-wrap::-webkit-scrollbar { display:none; }
.admin-profile-nav-tabs {
    display:flex;flex-wrap:nowrap;list-style:none;
    margin:0;padding:0;gap:2px;min-width:max-content;
}
.admin-profile-nav-tabs li { flex:0 0 auto; }
.apnav-link {
    display:inline-flex;align-items:center;gap:0.4rem;
    padding:0.45rem 0.75rem;border-radius:0.375rem;
    font-size:0.8rem;font-weight:500;color:#69707a;
    text-decoration:none !important;white-space:nowrap;
    border:1px solid transparent;cursor:pointer;
    transition:background 0.15s,color 0.15s;
}
.apnav-link:hover { background:#e8f5e9;color:#006400;border-color:#c8e6c9; }
.apnav-link.apnav-active { background:#006400 !important;color:#fff !important;border-color:#006400; }
.apnav-dot {
    width:20px;height:20px;border-radius:50%;flex-shrink:0;
    display:inline-flex;align-items:center;justify-content:center;
    background:#e0e8e0;font-size:0.68rem;font-weight:800;color:#69707a;
    transition:background 0.15s;
}
.apnav-dot.done { background:#c8f0d8;color:#1b5e20; }
.apnav-link.apnav-active .apnav-dot { background:rgba(255,255,255,0.25);color:#fff; }
.apnav-dot .feather { width:11px;height:11px; }
.apnav-label       { display:inline; }
.apnav-label-short { display:none; }

/* ── Admin wrapper (applications _wrapper_start) ── */
.admin-app-wrapper { padding-bottom:2.5rem; }
.admin-app-card { border:none !important;border-radius:1rem !important;box-shadow:0 4px 24px rgba(0,0,0,0.09) !important; }
.admin-app-modal-header {
    background:linear-gradient(135deg,#004d00,#007a00);
    padding:0.85rem 1.25rem;
    display:flex;align-items:center;justify-content:space-between;
    flex-wrap:wrap;gap:0.5rem;
}
.admin-app-modal-avatar {
    width:34px;height:34px;border-radius:50%;
    background:linear-gradient(135deg,#FFD700,#ffa500);
    color:#003300;font-size:0.95rem;font-weight:800;
    display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.admin-app-modal-name { font-size:0.88rem;font-weight:700;color:#fff;line-height:1.2; }
.admin-app-modal-sub  { font-size:0.7rem;color:rgba(255,255,255,0.55); }

/* ── DataTables custom skin for admin tables ── */
.admin-dt-table thead > tr:first-child th {
    background:linear-gradient(135deg,#003300,#005200);
    color:#fff;font-size:0.72rem;font-weight:700;
    text-transform:uppercase;letter-spacing:0.07em;
    padding:0.85rem 0.75rem;border:none;white-space:nowrap;
}
.admin-dt-table thead > tr:first-child th:first-child { border-radius:0.5rem 0 0 0; }
.admin-dt-table thead > tr:first-child th:last-child  { border-radius:0 0.5rem 0 0; }
.admin-dt-table thead > tr.filter-row th {
    background:#f4f8f4;padding:0.4rem 0.5rem;
    border-bottom:2px solid #d0e8d0;
}
.admin-dt-table thead > tr.filter-row .form-control,
.admin-dt-table thead > tr.filter-row .form-select {
    font-size:0.75rem;border:1.5px solid #d4e0d4;border-radius:0.4rem;
    padding:0.25rem 0.5rem;background:#fff;color:#2d3748;min-width:80px;
}
.admin-dt-table thead > tr.filter-row .form-control:focus {
    border-color:#006400;box-shadow:0 0 0 2px rgba(0,100,0,0.1);outline:none;
}
.admin-dt-table tbody tr { transition:background 0.12s; }
.admin-dt-table tbody tr:hover { background:#f4fbf4 !important; }
.admin-dt-table tbody tr:nth-child(even) { background:#fafcfa; }
.admin-dt-table tbody td {
    padding:0.65rem 0.75rem;font-size:0.82rem;
    color:#2d3748;vertical-align:middle;
    border-color:#f0f2f5;white-space:nowrap;
}
/* DataTable pagination */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border:1.5px solid #d4e0d4;border-radius:0.4rem;
    font-size:0.8rem;padding:0.3rem 0.6rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background:linear-gradient(135deg,#004d00,#006400) !important;
    color:#fff !important;border-radius:0.4rem;border:none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background:#f0fff0 !important;color:#006400 !important;border-radius:0.4rem;
}
.dataTables_wrapper .dataTables_info { font-size:0.78rem;color:#8a94a6; }

/* ── Table action buttons (btn-action) ── */
.btn-action {
    font-size:0.7rem;font-weight:600;padding:0.25rem 0.65rem;
    border-radius:0.4rem;border:none;cursor:pointer;
    text-decoration:none;display:inline-flex;
    align-items:center;gap:0.25rem;
    transition:opacity 0.12s,transform 0.12s;
}
.btn-action:hover { opacity:0.85;transform:translateY(-1px); }
.btn-action.primary { background:linear-gradient(135deg,#1e40af,#3b82f6);color:#fff; }
.btn-action.info    { background:linear-gradient(135deg,#0e7490,#22d3ee);color:#fff; }
.btn-action.success { background:linear-gradient(135deg,#065f46,#10b981);color:#fff; }
.btn-action.warning { background:linear-gradient(135deg,#92400e,#f59e0b);color:#fff; }
.btn-action.danger  { background:linear-gradient(135deg,#be123c,#f43f5e);color:#fff; }

/* ── Status/payment badges (DataTable cells) ── */
.badge-screened  { background:#d1fae5;color:#065f46;font-size:0.68rem;font-weight:700;padding:0.25rem 0.65rem;border-radius:2rem; }
.badge-admitted  { background:#d1fae5;color:#065f46;font-size:0.68rem;font-weight:700;padding:0.25rem 0.65rem;border-radius:2rem; }
.badge-pending   { background:#fef9ec;color:#92400e;font-size:0.68rem;font-weight:700;padding:0.25rem 0.65rem;border-radius:2rem; }
.badge-secondary { background:#f3f4f6;color:#6b7280;font-size:0.68rem;font-weight:700;padding:0.25rem 0.65rem;border-radius:2rem; }
.pay-badge-approved { background:#d1fae5;color:#065f46;font-size:0.68rem;font-weight:700;padding:0.25rem 0.65rem;border-radius:2rem; }
.pay-badge-pending  { background:#fef9ec;color:#92400e;font-size:0.68rem;font-weight:700;padding:0.25rem 0.65rem;border-radius:2rem; }

/* ── Screened-by info line ── */
.screened-by-info {
    margin-top:0.75rem;font-size:0.72rem;color:#8a94a6;
    display:flex;align-items:center;gap:0.35rem;
}

/* ── Responsive: mobile adjustments ── */
@media(max-width:768px){
    .afnav-label { display:none; }
    .afnav-label-short { display:inline;font-size:0.65rem;font-weight:600; }
    .afnav-link { flex-direction:column;align-items:center;gap:0.2rem;padding:0.4rem 0.5rem;min-width:50px;text-align:center; }
    .afnav-dot  { width:24px;height:24px; }
    .apnav-label { display:none; }
    .apnav-label-short { display:inline;font-size:0.65rem;font-weight:600; }
    .apnav-link { flex-direction:column;align-items:center;gap:0.2rem;padding:0.4rem 0.5rem;min-width:52px;text-align:center; }
    .apnav-dot  { width:24px;height:24px; }
    .app-preview-label { flex:0 0 120px;font-size:0.7rem; }
    .flow-label { font-size:0.6rem; }
    .flow-dot   { width:28px;height:28px; }
    .status-radio-group { flex-direction:column; }
}


/* ============================================================
   SHARED FORM WIZARD STYLES (application + admin profile forms)
   ============================================================ */

/* ── Wizard card ── */
.form-wizard-card {
    border-radius: 1rem !important;
    border: none !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09) !important;
    overflow: hidden;
}

/* ── Step badge ── */
.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #004d00, #00a000);
    color: #FFD700;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.22rem 0.7rem;
    border-radius: 2rem;
    margin-bottom: 0.85rem;
}

/* ── Section heading inside form ── */
.form-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a2e1a;
    margin-bottom: 0.3rem;
    line-height: 1.25;
}
.form-section-subtitle {
    font-size: 0.83rem;
    color: #8a94a6;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* ── Field group (label + input stack) ── */
.field-group { margin-bottom: 1.1rem; }
.field-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4a5568;
    margin-bottom: 0.35rem;
}
.field-group .form-control {
    border: 1.5px solid #d4e0d4;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #2d3748;
    background: #f8fbf8;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field-group .form-control:focus {
    border-color: #006400;
    box-shadow: 0 0 0 3px rgba(0,100,0,0.1);
    background: #fff;
    outline: none;
}
.field-group .help-block { font-size: 0.75rem; color: #e53e3e; margin-top: 3px; }

/* ── Sitting form cards (O-level) ── */
.sitting-form-card {
    background: #f8faf8;
    border: 1.5px solid #d4e8d4;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
}
.sitting-form-header {
    background: linear-gradient(90deg, #e8f5e9, #f0f7f0);
    padding: 0.65rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1b5e20;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid #d4e8d4;
}
.sitting-form-body { padding: 1rem; }

/* ── Form action bar (save/prev/skip buttons) ── */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8edf2;
}

/* Save / primary CTA */
.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #004d00, #00a000);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.75rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,100,0,0.25);
    transition: opacity 0.15s, box-shadow 0.15s;
}
.btn-save:hover { opacity: 0.88; box-shadow: 0 6px 20px rgba(0,100,0,0.35); color: #fff; }
.btn-save:disabled { opacity: 0.55; cursor: not-allowed; }

/* Previous (ghost) */
.btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    border: 1.5px solid #d1d5db;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.btn-prev:hover  { background: #e5e7eb; color: #1f2937; }
.btn-prev.disabled { opacity: 0.4; pointer-events: none; }

/* Skip (muted) */
.btn-skip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    color: #8a94a6;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    border: 1.5px solid #e0e8e0;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.btn-skip:hover { background: #f8fbf8; color: #4a5568; border-color: #c8d8c8; }

/* ── Radio pill group (gender etc.) ── */
.radio-inline-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.radio-pill-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 2rem;
    border: 1.5px solid #d4e0d4;
    background: #f8fbf8;
    font-size: 0.83rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.15s;
}
.radio-pill-label:has(input:checked) {
    border-color: #006400;
    background: #f0fff4;
    color: #006400;
}
.radio-pill-label input[type=radio] { accent-color: #006400; }

/* ── Field legend ── */
.field-legend {
    font-size: 0.75rem;
    color: #8a94a6;
    margin-bottom: 1rem;
}
.field-legend .req { color: #e53e3e; }

/* ── Input with icon ── */
.input-icon-wrap { position: relative; }
.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9aaba0;
    pointer-events: none;
    width: 14px;
    height: 14px;
    z-index: 2;
}
.input-icon-wrap .form-control { padding-left: 2.2rem; }

/* ── Responsive ── */
@media (max-width: 575px) {
    .form-actions { flex-direction: column-reverse; align-items: stretch; }
    .btn-save, .btn-prev, .btn-skip { width: 100%; justify-content: center; }
    .form-section-title { font-size: 0.95rem; }
}


/* ============================================================
   PHOTO UPLOAD WIDGET (admin + application profile forms)
   ============================================================ */

.drop-zone {
    border: 2px dashed #c5d5c5;
    border-radius: 0.75rem;
    background: #f8faf8;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.drop-zone.dragover { border-color: #006400; background: #e8f5e9; }
.drop-zone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.drop-zone-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: #006400;
}
.photo-preview-wrap {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8faf8;
    border-radius: 0.75rem;
    border: 1.5px solid #e0eae0;
    margin-top: 1rem;
}
.photo-preview-wrap.visible { display: flex; }
.photo-preview-wrap img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #006400;
    box-shadow: 0 4px 14px rgba(0,100,0,0.18);
}
.photo-requirements {
    background: #f0f7f0;
    border: 1px solid #c8dcc8;
    border-radius: 0.6rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #2d6a2d;
}
.photo-requirements ul { margin: 0.35rem 0 0; padding-left: 1.25rem; }
.photo-requirements li { margin-bottom: 0.2rem; }
