﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --color-primary: #2a2776;
    /* Deep Twilight */
    --color-secondary: #dd421b;
    /* Burnt Tangerine */
    --color-accent: #ff9f1c;
    /* Amber Glow */
    --color-dark: #011627;
    /* Ink Black */
    --color-light: #fdfffc;
    /* Porcelain */
    --color-gray-100: #f8f9fa;
    --color-gray-200: #e9ecef;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 0px;
    --header-height: 70px;

    /* Bootstrap Overrides (Primary colors mapping) */
    --bs-primary: var(--color-primary);
    --bs-secondary: var(--color-secondary);
    --bs-warning: var(--color-accent);
    --bs-dark: var(--color-dark);
    --bs-light: var(--color-light);
    --bs-body-bg: #f4f6f9;
    --bs-body-color: var(--color-dark);
    --bs-font-sans-serif: var(--font-body);
}

body {
    font-family: var(--font-body);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Custom Utilities */
.bg-deep-twilight {
    background-color: var(--color-primary) !important;
    color: white !important;
}

.bg-burnt-tangerine {
    background-color: var(--color-secondary) !important;
    color: white !important;
}

.bg-amber-glow {
    background-color: var(--color-accent) !important;
    color: white !important;
}

.text-deep-twilight {
    color: var(--color-primary) !important;
}

.text-burnt-tangerine {
    color: var(--color-secondary) !important;
}

.text-amber-glow {
    color: var(--color-accent) !important;
}

/* Wrapper & Shell */
.app-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-primary);
    color: white;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
}

.app-sidebar.collapsed {
    margin-left: calc(var(--sidebar-width) * -1);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-header a {
    color: white;
    text-decoration: none;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-menu li {
    padding: 0.25rem 1rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-menu a i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 10px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu .header {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 1rem 0.5rem 1rem;
    font-weight: 700;
}

/* Treeview Dropdown Menu */
.sidebar-menu .treeview-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 1rem;
}

.sidebar-menu .treeview-menu.show {
    display: block;
}

.sidebar-menu .treeview-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Content Area */
.app-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Important for flex children truncating */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Top Navbar */
.app-header {
    height: var(--header-height);
    background-color: var(--color-light);
    border-bottom: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    z-index: 1030;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.sidebar-toggle:hover {
    color: var(--color-secondary);
}

.app-main {
    padding: 2rem;
    flex-grow: 1;
    overflow-y: auto;
}

/* Custom Card */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--color-gray-200);
    padding: 1.25rem 1.5rem;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    font-family: var(--font-heading);
    font-weight: 600;
}

.card-title {
    margin-bottom: 0;
    color: var(--color-dark);
}

.card-body {
    padding: 1.5rem;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid var(--color-gray-200);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(18, 15, 103, 0.1);
}

.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    font-family: var(--font-heading);
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: #0d0b4d;
    border-color: #0d0b4d;
    box-shadow: 0 4px 12px rgba(18, 15, 103, 0.2);
}

.btn-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: #b53413;
    border-color: #b53413;
    box-shadow: 0 4px 12px rgba(221, 66, 27, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        height: 100vh;
        left: 0;
    }

    .app-sidebar.collapsed {
        left: calc(var(--sidebar-width) * -1);
        margin-left: 0;
    }

    /* Overlay when sidebar is open on mobile */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1035;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

/* Global Loader Overlay */
.global-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.global-loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(42, 39, 118, 0.1);
    /* Primary color low opacity */
    border-top: 5px solid var(--color-secondary);
    /* Accent color */
    border-radius: 50%;
    animation: spin-ring 1s cubic-bezier(0.55, 0.085, 0.68, 0.53) infinite;
    margin-bottom: 1rem;
}

.loader-text {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
    letter-spacing: 1px;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes spin-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ============================================================
   FONT UTILITY (referenced in views as .font-heading)
   ============================================================ */
.font-heading {
    font-family: var(--font-heading) !important;
}

/* ============================================================
   PAGE HEADER (breadcrumb + page title area in top navbar)
   ============================================================ */
.page-header-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-header-bar .page-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    line-height: 1.2;
}

.page-header-bar .breadcrumb {
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
    background: transparent;
}

.page-header-bar .breadcrumb-item a {
    color: var(--color-primary);
    text-decoration: none;
}

.page-header-bar .breadcrumb-item.active {
    color: #6c757d;
}

.page-header-bar .breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: #ccc;
}

/* ============================================================
   SIDEBAR — Active item left-border accent
   ============================================================ */
.sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    position: relative;
    box-shadow: inset 4px 0 0 var(--color-accent);
}

.sidebar-menu a:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(2px);
}

.sidebar-menu li {
    padding: 0.15rem 1rem;
}

.sidebar-menu .header {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 1.25rem 1.25rem 0.4rem;
    font-weight: 700;
}

/* ============================================================
   EMPTY STATE — For tables with zero records
   ============================================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #adb5bd;
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.4rem;
}

.empty-state-text {
    font-size: 0.875rem;
    color: #adb5bd;
}

/* ============================================================
   FLASH MESSAGE ALERTS — Styled inline alerts for flash data
   ============================================================ */
.flash-success {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background-color: #d1e7dd;
    border: 1px solid #a3cfbb;
    border-left: 4px solid #0f5132;
    border-radius: 8px;
    color: #0f5132;
    font-weight: 500;
    margin-bottom: 1rem;
}

.flash-error {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background-color: #f8d7da;
    border: 1px solid #f1aeb5;
    border-left: 4px solid #842029;
    border-radius: 8px;
    color: #842029;
    font-weight: 500;
    margin-bottom: 1rem;
}

.flash-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background-color: #fff3cd;
    border: 1px solid #ffe69c;
    border-left: 4px solid #664d03;
    border-radius: 8px;
    color: #664d03;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* ============================================================
   ADMIN TABLE ENHANCEMENTS
   ============================================================ */
.table {
    font-size: 0.875rem;
}

.table thead th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--color-gray-200);
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.table tbody tr {
    border-bottom: 1px solid #f0f2f5;
    transition: background-color 0.15s ease;
}

.table tbody tr:hover {
    background-color: #f8f9ff;
}

.table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    color: var(--color-dark);
}

/* ============================================================
   DATATABLES — Theme-consistent overrides
   ============================================================ */
div.dataTables_wrapper div.dataTables_filter input {
    border-radius: 8px;
    border: 1px solid var(--color-gray-200);
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

div.dataTables_wrapper div.dataTables_filter input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(42, 39, 118, 0.1);
}

div.dataTables_wrapper div.dataTables_length select {
    border-radius: 8px;
    border: 1px solid var(--color-gray-200);
    padding: 0.4rem 0.5rem;
    font-size: 0.875rem;
}

div.dataTables_wrapper div.dataTables_info {
    font-size: 0.8rem;
    color: #6c757d;
    padding-top: 0.85rem;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    font-size: 0.85rem !important;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button.current,
div.dataTables_wrapper div.dataTables_paginate .paginate_button.current:hover {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button:hover {
    background: rgba(42, 39, 118, 0.08) !important;
    border-color: transparent !important;
    color: var(--color-primary) !important;
}

/* DataTable Buttons */
.dt-buttons .btn,
div.dataTables_wrapper .dt-button {
    background-color: var(--color-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.45rem 1rem !important;
    font-family: var(--font-heading) !important;
    font-weight: 500 !important;
    font-size: 0.8rem !important;
    margin-right: 0.35rem !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
}

.dt-buttons .btn:hover,
div.dataTables_wrapper .dt-button:hover {
    background-color: #1d1a5e !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(42, 39, 118, 0.2) !important;
}

/* ============================================================
   CARD HEADER — Consistent action area
   ============================================================ */
.card-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.card-header-actions .card-title-block .card-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.15rem;
    font-weight: 400;
}

/* ============================================================
   BADGE IMPROVEMENTS
   ============================================================ */
.badge {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.35em 0.65em;
}

/* ============================================================
   BUTTON GROUP IMPROVEMENTS
   ============================================================ */
.btn-sm {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.app-footer {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid var(--color-gray-200);
    text-align: center;
    font-size: 0.8rem;
    color: #adb5bd;
}

footer.app-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

footer.app-footer a:hover {
    color: var(--color-secondary);
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
#scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(42, 39, 118, 0.3);
}

#scroll-top-btn.show {
    opacity: 1;
    pointer-events: auto;
}

#scroll-top-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

/* ============================================================
   TRANSITION-ALL UTILITY
   ============================================================ */
.transition-all {
    transition: all 0.3s ease;
}

/* ============================================================
   TABLE CARD WRAPPER — Consistent spacing
   ============================================================ */
.table-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-gray-200);
    background: white;
    border-radius: 12px 12px 0 0;
}

.table-card-header h3,
.table-card-header h4 {
    margin-bottom: 0.15rem;
}

.table-card-body {
    padding: 0;
}

/* ============================================================
   SIDEBAR USER PROFILE — Avatar initials fallback
   ============================================================ */
.avatar-initials {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 159, 28, 0.2);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.avatar-initials-sm {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(42, 39, 118, 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ============================================================
   SIDEBAR ICON UTILITIES
   Replaces inline style="font-size: 0.8rem" on chevrons
   and style="font-size: 0.5rem" on sub-menu dots
   ============================================================ */
.sidebar-chevron {
    font-size: 0.8rem;
}

.sidebar-dot {
    font-size: 0.5rem;
}

/* ============================================================
   FLASH MESSAGE ICON SIZE
   Replaces inline style="font-size: 1.1rem" on flash icons
   ============================================================ */
.flash-icon {
    font-size: 1.1rem;
}

/* ============================================================
   ICON SIZES — replaces style="font-size: 3rem"
   ============================================================ */
.icon-xl {
    font-size: 3rem;
}

.icon-2xl {
    font-size: 3.5rem;
}

.icon-lg {
    font-size: 1.5rem;
}

.icon-sm {
    font-size: 0.85rem;
}

/* ============================================================
   FORM CARD FOOTER — consistent save-button row
   Replaces ad-hoc card-footer / box-footer patterns
   ============================================================ */
.form-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid var(--color-gray-200);
    border-radius: 0 0 12px 12px;
    margin-top: 1.5rem;
}

/* ============================================================
   FEE DIVIDER — replaces style="border-top: 2px dotted red"
   in payment table rows
   ============================================================ */
.fee-divider {
    border-top: 2px dotted #dc3545 !important;
}

/* ============================================================
   SELECT OPTION:DISABLED — global rule to replace per-file
   <style> blocks in all apply/ views
   ============================================================ */
select option:disabled {
    color: #fff;
    font-weight: 700;
    background-color: #ff6d6d;
}

/* ============================================================
   FORM SECTION VARIANTS
   ============================================================ */
.form-section {
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* Read-only section (greyed bg) */
.form-section-readonly {
    background-color: #f8f9fa;
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Editable section (white bg) */
.form-section-edit {
    background-color: #ffffff;
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Section heading inside form-section */
.form-section-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-gray-200);
    padding-bottom: 0.6rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================================
   ALERT INFO PANEL — replaces BS3 panel-danger "info" panels
   used in apply/ views (honours display, papers list)
   ============================================================ */
.info-panel {
    background-color: #f0f4ff;
    border: 1px solid #d0daff;
    border-left: 4px solid var(--color-primary);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.info-panel-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.info-panel-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px dashed #d0daff;
    font-size: 0.9rem;
    color: var(--color-dark);
}

.info-panel-item:last-child {
    border-bottom: none;
}

.info-panel-item .item-label {
    font-weight: 600;
    color: var(--color-primary);
    min-width: 90px;
}

/* ============================================================
   WARNING NOTICE — replaces raw <strong>Alert!</strong> inline
   ============================================================ */
.form-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background-color: #fff8e6;
    border: 1px solid #ffe4a0;
    border-left: 4px solid var(--color-accent);
    border-radius: 8px;
    font-size: 0.875rem;
    color: #664d03;
    margin-bottom: 1.25rem;
}

/* ============================================================
   FORM CONTROL — remove shadow-none requirement from views,
   make shadow-none the default for consistency
   ============================================================ */
.form-control,
.form-select {
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(42, 39, 118, 0.12) !important;
}

/* ============================================================
   READ-ONLY FIELD STYLING
   ============================================================ */
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
    background-color: #f8f9fa;
    color: #6c757d;
    opacity: 1;
    cursor: not-allowed;
}

/* ============================================================
   FORM ERROR MESSAGE — standardised small error below field
   ============================================================ */
.field-error {
    font-size: 0.78rem;
    color: #dc3545;
    margin-top: 0.25rem;
    display: block;
}

/* ============================================================
   CARD HEADER — standard form page header
   ============================================================ */
.form-page-header {
    padding: 1.25rem 1.5rem;
    background: white;
    border-bottom: 1px solid var(--color-gray-200);
}

.form-page-header h3,
.form-page-header h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.form-page-header .subtitle {
    font-size: 0.82rem;
    color: #6c757d;
    margin: 0;
}

/* ============================================================
   AGREEMENT CHECKBOX ROW
   ============================================================ */
.form-agree-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--color-dark);
}

.form-agree-row input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* ============================================================
   PASSWORD TOGGLE BUTTON — replaces login.php inline style
   ============================================================ */
.btn-pw-toggle {
    border-radius: 0 10px 10px 0 !important;
    border-left: none !important;
    border-color: #e5e7eb !important;
    border-width: 1.5px !important;
    background: white;
    color: #9ca3af;
    transition: color 0.2s;
}

.btn-pw-toggle:hover {
    color: var(--color-primary);
    border-color: var(--color-primary) !important;
}
/* ============================================================
   MISC UTILITIES
   ============================================================ */
.cursor-pointer { cursor: pointer !important; }
.max-w-480 { max-width: 480px !important; }
.max-w-640 { max-width: 640px !important; }
.badge-new { font-size: 0.6rem !important; }
/* ============================================================
   JQUERY UI DATEPICKER Z-INDEX FIX
   ============================================================ */
.ui-datepicker {
    z-index: 9999 !important;
}