/* ==========================================================================
   Usha Institute of Computer Education - Strict Light Theme
   Primary Navy: #123B40 / #29426B | Jade/Teal Accent: #087F6A | Gold: #D97706 / #F2B705
   Backgrounds: #FFFFFF / #F8FAFC / #F3F5F9 | Strict Light Mode (No Dark Theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&family=Noto+Sans+Devanagari:wght@400;600;700&display=swap');

:root {
    --bg: 248 250 252;
    --sf: 255 255 255;
    --ink: 18 59 64;
    --mu: 82 94 122;
    --ln: 226 232 240;
    --ls: 148 163 184;
    --ac: 8 127 106;
    --ah: 6 100 83;
    --oa: 255 255 255;
    --tn: 243 245 249;
    --mk: 217 119 6;
    --co: 245 158 11;
    --dp: 18 59 64;
    --dm: 166 178 206;
    color-scheme: light !important;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);

    /* Direct Hex Variables */
    --color-bg: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-ink: #123B40;
    --color-muted: #525E7A;
    --color-line: #E2E8F0;
    --color-line-strong: #94A3B8;
    --color-accent: #087F6A;
    --color-accent-hover: #066453;
    --color-on-accent: #FFFFFF;
    --color-spark: #D97706;
    --color-sticker: #F59E0B;
    --color-deep: #123B40;
    --color-deep-muted: #A6B2CE;
    --color-tint: #F3F5F9;

    /* Semantic Compatibility Aliases */
    --primary-teal: #123B40;
    --secondary-jade: #087F6A;
    --action-green: #087F6A;
    --bg-pale-mint: #F3F5F9;
    --bg-white: #FFFFFF;
    --text-charcoal: #123B40;
    --border-mint-grey: #E2E8F0;
    --text-muted: #525E7A;
    --brand-navy: #123B40;
    --navy-dark: #123B40;
    --space-cadet: #123B40;
    --brand-orange: #087F6A;
    --orange: #087F6A;
    --valid-green: #087F6A;
    --bg-main: #F8FAFC;
    --card-bg: #FFFFFF;
    --paper: #FFFFFF;
    --text-primary: #123B40;
    --text-light: #525E7A;
    --border-color: #E2E8F0;
    --border-light: #F3F5F9;
    --gargoyle-gas: #D97706;
    --gold: #D97706;
    --gold-bright: #F2B705;

    /* Geometry & Spacing (8-point grid) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;

    --radius-card: 18px;
    --radius-input: 10px;
    --radius-btn: 999px;
    --radius: 10px;

    /* Shadows */
    --shadow-subtle: 0 4px 20px -2px rgba(18, 59, 64, 0.06), 0 2px 6px -1px rgba(18, 59, 64, 0.04);
    --shadow-card: 0 4px 20px -2px rgba(18, 59, 64, 0.08), 0 2px 6px -1px rgba(18, 59, 64, 0.05);
    --shadow-hover: 0 12px 28px -12px rgba(8, 127, 106, 0.35);
    --shadow-topbar: 0 2px 10px rgba(18, 59, 64, 0.06);

    /* Typography */
    --font-heading: 'Bricolage Grotesque', 'Noto Sans Devanagari', system-ui, sans-serif;
    --font-ui: 'Hanken Grotesk', 'Noto Sans Devanagari', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --font-hindi: 'Noto Sans Devanagari', sans-serif;

    --trans-fast: 0.18s ease-in-out;
}

/* Strict Light Mode Enforced Globally */
:root, html, body {
    color-scheme: light !important;
}

/* Global Reset & Base */
*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

html {
    scroll-padding-top: calc(90px + env(safe-area-inset-top, 0px));
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: rgb(var(--bg));
    color: rgb(var(--ink));
    font: 400 16px/1.6 "Hanken Grotesk", "Noto Sans Devanagari", system-ui, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px);
    z-index: 60;
    background: rgb(var(--bg));
}

h1, h2, h3, h4, .f, .heading {
    font-family: "Bricolage Grotesque", "Noto Sans Devanagari", system-ui, sans-serif;
    line-height: 1.1;
    margin: 0;
    text-wrap: balance;
    letter-spacing: -0.015em;
    color: rgb(var(--ink));
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 700; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--trans-fast);
}

a:hover {
    color: rgb(var(--ac));
}

p { margin: 0; }
[hidden] { display: none !important; }

/* Accessibility: Keyboard Focus Indicator */
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgb(var(--ac)) !important;
    outline-offset: 3px !important;
}

/* Accessibility: Keyboard Focus Indicator */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand-orange) !important;
    outline-offset: 2px !important;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Layout Architecture
   ========================================================================== */

.app-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-main);
}

/* Collapsible Sidebar */
.sidebar {
    width: 250px;
    min-width: 250px;
    background-color: var(--brand-navy);
    color: #FFFFFF;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: width var(--trans-fast), min-width var(--trans-fast);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.collapsed {
    width: 72px;
    min-width: 72px;
}

.sidebar-brand {
    padding: 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-text {
    overflow: hidden;
    white-space: nowrap;
    transition: opacity var(--trans-fast);
}

.sidebar.collapsed .sidebar-brand-text {
    display: none;
}

.sidebar-brand h2 {
    color: #FFFFFF;
    font-size: 19px;
    margin: 0;
    letter-spacing: 0.5px;
}

.sidebar-brand .sub {
    font-size: 10.5px;
    color: #8E95AA;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: #8E95AA;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--trans-fast);
}

.sidebar-toggle-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 12px 8px;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 3px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #CBD3E6;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--trans-fast);
    white-space: nowrap;
}

.sidebar-menu li a .menu-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-menu li a .menu-label {
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity var(--trans-fast);
}

.sidebar.collapsed .sidebar-menu li a .menu-label {
    display: none;
}

.sidebar-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.sidebar-menu li.active a {
    background: linear-gradient(90deg, rgba(31, 165, 138, 0.35) 0%, rgba(31, 165, 138, 0.12) 100%) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border-left: 4px solid var(--secondary-jade, #1FA58A) !important;
    box-shadow: inset 0 0 10px rgba(31, 165, 138, 0.2);
}

.sidebar-menu li.active a .menu-icon {
    color: #34D399 !important;
    filter: drop-shadow(0 0 3px rgba(52, 211, 153, 0.5));
}

.sidebar-menu li.wizard-item a {
    color: #FFE4D6;
    background: rgba(245, 79, 27, 0.12);
    border: 1px dashed rgba(245, 79, 27, 0.3);
}

.sidebar-menu li.wizard-item a:hover {
    background: rgba(245, 79, 27, 0.22);
    color: #FFFFFF;
}

.sidebar-menu li.wizard-item.active a {
    background: linear-gradient(90deg, rgba(245, 79, 27, 0.45) 0%, rgba(245, 79, 27, 0.18) 100%) !important;
    border-left: 4px solid var(--brand-orange, #F54F1B) !important;
    border-top: 1px solid rgba(245, 79, 27, 0.4) !important;
    border-right: 1px solid rgba(245, 79, 27, 0.4) !important;
    border-bottom: 1px solid rgba(245, 79, 27, 0.4) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

.sidebar-menu li.wizard-item.active a .menu-icon {
    color: #FF8A65 !important;
    filter: drop-shadow(0 0 4px rgba(245, 79, 27, 0.6));
}

.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: #8E95AA;
}

.sidebar.collapsed .sidebar-footer-text {
    display: none;
}

/* Main Content Structure */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Sticky Modern Top Bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-topbar);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    max-width: 600px;
}

.topbar-search-form {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.topbar-search-input {
    width: 100%;
    padding: 7px 12px 7px 34px;
    border-radius: var(--radius-input);
    border: 1px solid var(--border-color);
    background: #F6F7FB;
    font-size: 13px;
    color: var(--brand-navy);
    font-family: var(--font-ui);
    transition: all var(--trans-fast);
}

.topbar-search-input:focus {
    background: #FFFFFF;
    border-color: var(--brand-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 79, 27, 0.15);
}

.topbar-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-body {
    padding: 24px;
    flex-grow: 1;
}

/* ==========================================================================
   Modern Card-Based Components (12px radius, subtle soft shadows)
   ========================================================================== */

.card, .panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--trans-fast);
}

.card:hover, .panel:hover {
    box-shadow: var(--shadow-hover);
}

.card-header, .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.card-header h2, .panel-header h2 {
    font-size: 18px;
    margin: 0;
}

/* Prominent 'Issue Document' Action CTA */
.btn-cta-issue {
    background: var(--brand-orange);
    color: #FFFFFF !important;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: var(--radius-btn);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--brand-orange);
    box-shadow: 0 3px 10px rgba(245, 79, 27, 0.3);
    transition: all var(--trans-fast);
}

.btn-cta-issue:hover {
    background: #DC3E0C;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(245, 79, 27, 0.4);
}

/* ==========================================================================
   Modern KPI Cards on Dashboard
   ========================================================================== */

.kpi-grid, .metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card, .metric-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 18px 20px;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--brand-navy);
    transition: all var(--trans-fast);
}

.kpi-card:hover, .metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.kpi-card.alert-card, .metric-card.alert-card {
    border-top-color: var(--brand-orange);
}

.kpi-label, .metric-label {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.kpi-value, .metric-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: var(--brand-navy);
}

.kpi-subtext {
    font-size: 11.5px;
    color: var(--text-light);
    margin-top: 8px;
}

/* ==========================================================================
   Data Tables with Sticky Headers
   ========================================================================== */

.dense-table-wrapper, .table-responsive {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    background: #FFFFFF;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 24px;
}

.dense-table, .table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
}

.dense-table thead th, .table thead th {
    position: sticky;
    top: 0;
    background-color: #F8FAFC;
    color: var(--brand-navy);
    font-family: var(--font-ui);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px 14px;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    z-index: 10;
}

.dense-table tbody td, .table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
}

.dense-table tbody tr:hover, .table tbody tr:hover {
    background-color: #F8FAFC;
}

.dense-table tbody tr:last-child td, .table tbody tr:last-child td {
    border-bottom: none;
}

.table th.actions, .table td.actions, .dense-table th.actions, .dense-table td.actions, .table-actions {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.table td .btn, .dense-table td .btn {
    flex-shrink: 0;
}

.table td .btn-group, .dense-table td .btn-group {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 4px;
}

/* Filter Bar */
.filter-bar {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-subtle);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: #FFFFFF;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-card);
    margin: 20px 0;
}

.empty-state-icon {
    font-size: 36px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.empty-state-title {
    font-family: var(--font-heading);
    font-size: 19px;
    color: var(--brand-navy);
    margin-bottom: 6px;
}

.empty-state-text {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 440px;
    margin: 0 auto 16px auto;
}

/* ==========================================================================
   Forms & Inputs (8px radius, accessible focus)
   ========================================================================== */

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-navy);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-input);
    font-family: var(--font-ui);
    font-size: 13.5px;
    color: var(--brand-navy);
    transition: all var(--trans-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(245, 79, 27, 0.15);
}

textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-col {
    flex: 1;
}

/* ==========================================================================
   Buttons (8px radius)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--trans-fast);
    text-decoration: none;
    line-height: 1.25;
    white-space: nowrap;
    user-select: none;
}

/* Accessible Action Green for Primary Actions & CTAs (WCAG AA pass 4.94:1) */
.btn-primary {
    background-color: var(--action-green);
    color: #FFFFFF !important;
    border-color: var(--action-green);
    box-shadow: 0 1px 3px rgba(8, 127, 107, 0.25);
}

.btn-primary:hover {
    background-color: #066756;
    border-color: #066756;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

/* Deep Teal for Secondary Actions */
.btn-secondary {
    background-color: var(--primary-teal);
    color: #FFFFFF !important;
    border-color: var(--primary-teal);
}

.btn-secondary:hover {
    background-color: #0B272B;
    border-color: #0B272B;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

/* Danger / Destructive Actions (Revoke, Delete, Reject) */
.btn-danger {
    background-color: #DC2626 !important;
    color: #FFFFFF !important;
    border-color: #DC2626 !important;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover {
    background-color: #B91C1C !important;
    border-color: #B91C1C !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

/* Success / Affirmative Actions (Approve, Confirm) */
.btn-success {
    background-color: #16A34A !important;
    color: #FFFFFF !important;
    border-color: #16A34A !important;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.25);
}

.btn-success:hover {
    background-color: #15803D !important;
    border-color: #15803D !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

/* Warning / Alert Actions */
.btn-warning {
    background-color: #D97706 !important;
    color: #FFFFFF !important;
    border-color: #D97706 !important;
}

.btn-warning:hover {
    background-color: #B45309 !important;
    border-color: #B45309 !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

/* Info Actions */
.btn-info {
    background-color: #0284C7 !important;
    color: #FFFFFF !important;
    border-color: #0284C7 !important;
}

.btn-info:hover {
    background-color: #0369A1 !important;
    border-color: #0369A1 !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

/* Outline with Mint Grey border and Deep Teal text */
.btn-outline {
    background-color: transparent;
    color: var(--primary-teal);
    border-color: var(--border-mint-grey);
}

.btn-outline:hover {
    background-color: var(--bg-pale-mint);
    border-color: var(--secondary-jade);
    color: var(--primary-teal);
}

.btn-outline-danger {
    background-color: transparent;
    color: #DC2626;
    border-color: #FCA5A5;
}

.btn-outline-danger:hover {
    background-color: #FEF2F2;
    border-color: #DC2626;
    color: #991B1B;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--action-green);
    border-color: var(--action-green);
}

.btn-outline-primary:hover {
    background-color: rgba(8, 127, 107, 0.08);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 11.5px;
    gap: 4px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
}

.btn-group, .actions-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn:disabled, .btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #E2E6EF !important;
    border-color: #CBD3E6 !important;
    color: #8E95AA !important;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   Status Badges (Strict Color Semantics)
   ========================================================================== */

.status-pill, .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Green ONLY for Valid */
.status-valid, .badge-success {
    background-color: #E8F5EE;
    color: var(--valid-green, #16A34A);
    border: 1px solid rgba(47, 107, 79, 0.2);
}

/* Orange for Revoked / Failed / Critical Alert */
.status-revoked, .status-failed, .status-rejected, .badge-danger {
    background-color: #FDF0EC;
    color: var(--brand-orange, #DC2626);
    border: 1px solid rgba(245, 79, 27, 0.2);
}

.status-superseded, .status-inactive, .status-dropped, .badge-secondary {
    background-color: #F1F4F9;
    color: #6B7280;
    border: 1px solid #D1D5DB;
}

.status-pending, .badge-warning {
    background-color: #FEF8EC;
    color: #B45309;
    border: 1px solid rgba(180, 83, 9, 0.2);
}

.status-enrolled, .status-active, .badge-info {
    background-color: #EDF2FE;
    color: #1E223D;
    border: 1px solid rgba(30, 34, 61, 0.15);
}

/* ==========================================================================
   Toast Notification System & Alerts
   ========================================================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 14px 18px;
    min-width: 300px;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(30, 34, 61, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: toastSlideIn 0.25s ease-out;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #E8F5EE;
    border-color: rgba(47, 107, 79, 0.3);
    color: var(--valid-green);
}

.alert-error, .alert-danger {
    background-color: #FDF0EC;
    border-color: rgba(245, 79, 27, 0.3);
    color: var(--brand-orange);
}

.alert-warning {
    background-color: #FEF8EC;
    border-color: rgba(180, 83, 9, 0.3);
    color: #B45309;
}

.alert-info {
    background-color: #EDF2FE;
    border-color: rgba(30, 34, 61, 0.2);
    color: var(--brand-navy);
}

/* ==========================================================================
   Skeleton Loaders (Smooth Shimmer Effect)
   ========================================================================== */

.skeleton {
    background: linear-gradient(90deg, #EDF1F7 25%, #F8FAFD 50%, #EDF1F7 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 14px;
}

/* ==========================================================================
   Public Site Layout & Hero (Light, Airy, Truthful)
   ========================================================================== */

.public-navbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.public-brand a {
    display: flex;
    flex-direction: column;
}

.public-brand h1 {
    font-size: 22px;
    color: var(--brand-navy);
    margin: 0;
    letter-spacing: 0.5px;
}

.public-brand p {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 0;
}

.public-nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.public-nav-links a {
    color: var(--brand-navy);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 6px 4px;
}

.public-nav-links a:hover {
    color: var(--secondary-jade);
}

.public-hero-card {
    background: #FFFFFF;
    border: 1px solid var(--border-mint-grey);
    border-radius: var(--radius-card);
    padding: 48px 36px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    border-left: 6px solid var(--secondary-jade);
}

.public-hero-card h1 {
    font-size: 36px;
    color: var(--brand-navy);
    margin-bottom: 12px;
}

.public-hero-card p.truthful-line {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 820px;
    line-height: 1.45;
}

.public-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* Public Course Cards */
.course-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.course-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--trans-fast);
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: #CBD3E6;
}

.course-code-badge {
    background: var(--brand-navy);
    color: #FFFFFF;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

/* Admission Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.step-box {
    background: #F8FAFD;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 18px;
    text-align: left;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-orange);
    margin-bottom: 4px;
}

/* WhatsApp Block */
.wa-block-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 32px;
}

.wa-btn {
    background-color: #25D366;
    color: #FFFFFF !important;
    padding: 10px 20px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--trans-fast);
}

.wa-btn:hover {
    background-color: #1EBE5D;
    color: #FFFFFF !important;
}

/* Floating WhatsApp Quick Contact */
.wa-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    z-index: 1000;
    transition: all var(--trans-fast);
}

.wa-float-btn:hover {
    background-color: #1EBE5D;
    transform: scale(1.03);
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: #F1F4F9;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.lang-btn {
    padding: 4px 9px;
    color: var(--brand-navy);
    font-size: 11px;
    text-decoration: none;
    font-weight: 600;
}

.lang-btn.active {
    background: var(--brand-orange);
    color: #FFFFFF !important;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: var(--brand-orange);
    color: #FFFFFF;
    padding: 8px 14px;
    z-index: 9999;
    font-weight: bold;
    text-decoration: none;
    border-radius: var(--radius-input);
    transition: top 0.2s;
}

.skip-link:focus {
    top: 10px;
    outline: 2px solid var(--brand-navy);
}

/* ==========================================================================
   Public Modern Classes from usha-institute.html (Source of Truth)
   ========================================================================== */

.w {
    max-width: 1200px;
    margin: auto;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.s { padding: 72px 0; }
@media (min-width: 900px) { .s { padding: 96px 0; } }

.alt { background: rgb(var(--tn)); }
.dark { background: rgb(var(--dp)); color: #FFFFFF; }
.dark p, .dark .mu { color: rgb(var(--dm)); }
.mu { color: rgb(var(--mu)); }

.eb {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgb(var(--ac));
    margin-bottom: 12px;
}
.dark .eb { color: rgb(var(--mk)); }

.sh { max-width: 640px; margin-bottom: 40px; }
.sh p { margin-top: 16px; }

.mk {
    background-image: linear-gradient(transparent 58%, rgb(var(--mk)) 58%, rgb(var(--mk)) 92%, transparent 92%);
    background-repeat: no-repeat;
    background-size: 0 100%;
    padding: 0 .12em;
    color: #0E1B3D;
    animation: sw .7s .3s forwards;
}
@keyframes sw { to { background-size: 100% 100%; } }
@keyframes pp { from { opacity: 0; transform: scale(.6); } }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: 600 16px "Hanken Grotesk", sans-serif;
    cursor: pointer;
    background: rgb(var(--ac));
    color: rgb(var(--oa));
    box-shadow: 0 12px 28px -12px rgb(var(--ac)/.55);
    transition: .18s;
    text-decoration: none;
}
.btn:hover { background: rgb(var(--ah)); color: rgb(var(--oa)); }
.btn:active { transform: scale(.97); }

.b2 {
    background: rgb(var(--sf));
    color: rgb(var(--ink));
    border-color: rgb(var(--ls));
    box-shadow: none;
}
.b2:hover {
    background: rgb(var(--tn));
    border-color: rgb(var(--ac));
    color: rgb(var(--ink));
}

.bm {
    background: rgb(var(--mk));
    color: #0E1B3D;
    box-shadow: none;
}
.bm:hover {
    background: #FFFFFF;
    color: #0E1B3D;
}

.sm {
    min-height: 44px;
    padding: 0 20px;
    font-size: 15px;
}

.card {
    background: rgb(var(--sf));
    border: 1px solid rgb(var(--ln));
    border-radius: 18px;
    padding: 24px;
}

.tag {
    display: inline-block;
    background: rgb(var(--tn));
    color: rgb(var(--ac));
    border-radius: 999px;
    padding: 2px 12px;
    font-size: 13px;
    font-weight: 500;
}

.sk {
    display: inline-block;
    background: rgb(var(--co));
    color: #0E1B3D;
    font-weight: 600;
    font-size: 13px;
    border-radius: 999px;
    padding: 3px 14px;
    transform: rotate(-2deg);
}

.g { display: grid; gap: 20px; }
@media (min-width: 700px) {
    .g2, .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .g3 { grid-template-columns: repeat(3, 1fr); }
    .g4 { grid-template-columns: repeat(4, 1fr); }
}

/* Header & Compact Mega Menu */
header.site-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 50;
    background: rgb(var(--bg)/.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(var(--ln));
}

.top {
    background: rgb(var(--dp));
    color: #FFFFFF;
    font-size: 14px;
}
.top .w {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-block: 6px;
    flex-wrap: wrap;
}
.top a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: #FFFFFF;
}

.nv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 16px;
}
.nr {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lg {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.lt {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgb(var(--ink));
    color: rgb(var(--bg));
    display: grid;
    place-items: center;
    font: 700 20px "Bricolage Grotesque", sans-serif;
    overflow: hidden;
}
.lg b { display: block; line-height: 1.2; font-size: 17px; }
.lg small { display: block; font-size: 13px; color: rgb(var(--mu)); font-weight: normal; }

nav.main-nav {
    display: none;
    gap: 4px;
    align-items: center;
}
@media (min-width: 900px) {
    nav.main-nav { display: flex; }
    .hb { display: none !important; }
}

.nl {
    padding: 8px 16px;
    border-radius: 999px;
    font: 500 16px "Hanken Grotesk", sans-serif;
    background: none;
    border: 0;
    cursor: pointer;
    color: inherit;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    text-decoration: none;
}
.nl:hover, .nl.on { color: rgb(var(--ac)); }
.nl.on {
    box-shadow: inset 0 -3px rgb(var(--mk));
    border-radius: 0;
}

.ib {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgb(var(--ls));
    background: rgb(var(--sf));
    color: rgb(var(--ink));
    display: grid;
    place-items: center;
    cursor: pointer;
}

.hs { display: none; }
@media (min-width: 600px) { .hs { display: inline-flex; } }

.mega {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1001;
}
.has.o .mega {
    display: block !important;
}
@media (min-width: 900px) {
    .has:not(.x):hover .mega {
        display: block !important;
    }
}

.mg {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.1fr;
    gap: 20px;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 30px 60px -30px rgb(var(--ink)/.35);
}

.ml {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}
.ml:hover { background: rgb(var(--tn)); }
.ml small {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: rgb(var(--mu));
}

.mi {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgb(var(--tn));
    color: rgb(var(--ac));
    display: grid;
    place-items: center;
}

.pr {
    background: rgb(var(--dp));
    color: #FFFFFF;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.pr p { color: rgb(var(--dm)); }
.ul { text-decoration: underline; font-weight: 600; color: inherit; }

#mm {
    border-top: 1px solid rgb(var(--ln));
    padding: 8px 0 16px;
    max-height: 70vh;
    overflow: auto;
    background: rgb(var(--sf));
}
.mml {
    display: block;
    padding: 10px 0;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}
.mms {
    padding-left: 14px;
    font-weight: 400;
    color: rgb(var(--mu));
}

/* Home Components */
.hero { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
    .hero { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}
.hero .lead { font-size: 19px; max-width: 34rem; margin: 20px 0 28px; }
.bt { display: flex; gap: 12px; flex-wrap: wrap; }

.lc {
    background-image: repeating-linear-gradient(transparent 0 35px, rgb(var(--ln)) 35px 36px);
    box-shadow: 0 30px 60px -30px rgb(var(--ink)/.35);
    padding: 28px;
}
.ck { padding: 0; margin: 8px 0 20px; }
.ck li {
    list-style: none;
    display: flex;
    gap: 12px;
    align-items: center;
    height: 36px;
    font-weight: 500;
}
.ck .tk {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgb(var(--mk));
    color: #0E1B3D;
    display: grid;
    place-items: center;
    animation: pp .3s both;
    animation-delay: inherit;
}
.big { font-size: 2.5rem; font-weight: 800; color: rgb(var(--mk)); display: block; }

.cc { display: flex; flex-direction: column; gap: 12px; }
.ch { display: flex; justify-content: space-between; align-items: center; }
.ca { margin-top: auto; display: flex; gap: 8px; padding-top: 8px; flex-wrap: wrap; }
.cc h3 { font-size: 1.25rem; }

.wi svg { color: rgb(var(--ac)); }
.wi { display: flex; flex-direction: column; gap: 8px; }

.st { counter-increment: n; }
.st::before {
    content: counter(n);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgb(var(--ac));
    color: rgb(var(--oa));
    font: 700 18px "Bricolage Grotesque", sans-serif;
    margin-bottom: 12px;
}
.sts { counter-reset: n; }

details {
    border-bottom: 1px solid rgb(var(--ln));
    padding: 16px 0;
}
summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: rgb(var(--ac)); }
details[open] summary::after { content: "\2013"; }
details p { margin-top: 8px; }

/* Subpage Components */
.ph {
    background: rgb(var(--dp));
    color: #FFFFFF;
    padding: 56px 0;
}
.ph h1 { font-size: clamp(2rem, 5vw, 3rem); color: #FFFFFF; }
.ph p { color: rgb(var(--dm)); margin-top: 12px; max-width: 42rem; }
.ph .cr { font-size: 14px; margin: 0 0 12px; color: rgb(var(--dm)); }
.ph a { text-decoration: underline; color: inherit; }

.cdg { display: grid; gap: 32px; }
@media (min-width: 900px) {
    .cdg { grid-template-columns: 1.6fr 1fr; }
    .stk {
        position: sticky;
        top: calc(110px + env(safe-area-inset-top, 0px));
        align-self: start;
    }
}

.ls { padding: 0; margin: 16px 0 32px; display: grid; gap: 12px; }
.ls li {
    list-style: none;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgb(var(--sf));
    border: 1px solid rgb(var(--ln));
    border-radius: 10px;
    padding: 14px 16px;
}
.ls svg { color: rgb(var(--ac)); flex: none; margin-top: 3px; }

.ir {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgb(var(--ln));
}
.ir span:first-child { color: rgb(var(--mu)); }
.ir span:last-child { text-align: right; font-weight: 600; }

label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
input, select {
    width: 100%;
    min-height: 52px;
    border: 1.5px solid rgb(var(--ls));
    border-radius: 10px;
    padding: 0 14px;
    font: inherit;
    background: rgb(var(--sf));
    color: rgb(var(--ink));
}
.fl { display: grid; gap: 16px; }
pre {
    white-space: pre-wrap;
    font: inherit;
    background: rgb(var(--tn));
    border-radius: 10px;
    padding: 16px;
    margin: 12px 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Site Navigation Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: #ffffff; border-bottom: 1px solid #e2e8f0; width: 100%; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.top-strip { background: #0E1B3D; color: #ffffff; font-size: 13px; font-weight: 500; padding: 7px 16px; }
.top-strip .top-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-strip a { color: #ffffff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.nav-bar { max-width: 1200px; margin: 0 auto; padding: 0 16px; height: 72px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex-shrink: 0; }
.logo-box { width: 44px; height: 44px; min-width: 44px; min-height: 44px; max-width: 44px; max-height: 44px; border-radius: 12px; background: #ffffff; border: 1px solid #cbd5e1; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 3px; flex-shrink: 0; }
.logo-img { width: 38px !important; height: 38px !important; max-width: 38px !important; max-height: 38px !important; object-fit: contain; display: block; }
.brand-text b { display: block; font-size: 18px; font-weight: 800; color: #0f172a; line-height: 1.2; }
.brand-text small { display: block; font-size: 12px; color: #64748b; font-weight: 500; }
.desktop-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 900px) { .desktop-nav { display: flex; } .mobile-btn { display: none !important; } }
.nav-link { padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; color: #334155; transition: all 0.15s ease; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-link:hover, .nav-link.on { color: #F25F22; background: #fff7ed; }
.nav-link.on { font-weight: 700; color: #BE3E06; }
.has-dropdown { position: relative; }
.mega-dropdown { display: none; position: absolute; left: 50%; transform: translateX(-50%); top: 100%; width: 780px; z-index: 1001; padding-top: 8px; }
.has-dropdown:hover .mega-dropdown, .has-dropdown.open .mega-dropdown, .has.o .mega-dropdown { display: block !important; }
.mega-content { background: #ffffff; border-radius: 16px; box-shadow: 0 20px 40px -15px rgba(14,27,61,0.2); border: 1px solid #e2e8f0; padding: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
.mega-content .col-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #F25F22; margin-bottom: 12px; }
.mega-content a { text-decoration: none; display: block; padding: 6px 8px; border-radius: 8px; transition: background 0.15s; }
.mega-content a:hover { background: #f8fafc; }
.mega-content a b { display: block; font-size: 13px; font-weight: 700; color: #0f172a; }
.mega-content a small { display: block; font-size: 11px; color: #64748b; line-height: 1.3; }
.btn-enroll { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; color: #ffffff; background: #F25F22; box-shadow: 0 4px 14px -3px rgba(242,95,34,0.4); transition: background 0.15s; }
.btn-enroll:hover { background: #d94e16; color: #ffffff; }
.mobile-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e2e8f0; background: #f8fafc; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #0f172a; }
#mm[hidden] { display: none !important; }

/* Footer */
footer.site-footer {
    padding: 64px 0 24px;
    background: rgb(var(--dp));
    color: #FFFFFF;
}
.fg { display: grid; gap: 32px; }
@media (min-width: 800px) {
    .fg { grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; }
}
footer.site-footer a {
    display: block;
    color: rgb(var(--dm));
    padding: 3px 0;
    text-decoration: none;
}
footer.site-footer a:hover { color: rgb(var(--mk)); }
.cp {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 14px;
    color: rgb(var(--dm));
}

/* Floating Action Button & Toast */
.fab {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
}
#toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 80;
    background: rgb(var(--ink));
    color: rgb(var(--bg));
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 500;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Public Footer - Deep Navy / Deep (#0B142E) */
.public-footer {
    background: rgb(var(--dp));
    color: rgb(var(--dm));
    padding: 40px 24px 24px 24px;
    border-top: 3px solid rgb(var(--ac));
    margin-top: 48px;
}

.public-footer h3 {
    color: #FFFFFF;
}

.public-footer a {
    color: rgb(var(--dm));
}

.public-footer a:hover {
    color: rgb(var(--mk));
}

/* ==========================================================================
   Verify Document Status Card & Printable Layout
   ========================================================================== */

.verify-container {
    max-width: 720px;
    margin: 32px auto;
    padding: 0 16px;
}

.verify-status-card {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    padding: 32px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.verify-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.verify-icon-valid {
    background-color: #E8F5EE;
    color: var(--valid-green);
    border: 2px solid var(--valid-green);
}

.verify-icon-revoked {
    background-color: #FDF0EC;
    color: var(--brand-orange);
    border: 2px solid var(--brand-orange);
}

.verify-icon-superseded {
    background-color: #FEF8EC;
    color: #D97706;
    border: 2px solid #D97706;
}

.verify-title {
    font-family: var(--font-heading);
    font-size: 26px;
    margin-bottom: 6px;
}

.verify-badge-large {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.verify-badge-valid {
    background: #E8F5EE;
    color: var(--valid-green);
    border: 1px solid var(--valid-green);
}

.verify-badge-revoked {
    background: #FDF0EC;
    color: var(--brand-orange);
    border: 1px solid var(--brand-orange);
}

.verify-badge-superseded {
    background: #FEF8EC;
    color: #D97706;
    border: 1px solid #D97706;
}

.verify-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    text-align: left;
}

.verify-details-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13.5px;
}

.verify-details-table td.lbl {
    font-weight: 600;
    color: var(--text-muted);
    width: 36%;
}

.verify-details-table td.val {
    color: var(--brand-navy);
    font-weight: 500;
}

/* Print Stylesheet */
@media print {
    body {
        background: #FFFFFF !important;
        color: #000000 !important;
    }

    .public-navbar, .public-footer, .wa-float-btn, .btn, .topbar, .sidebar {
        display: none !important;
    }

    .verify-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .verify-status-card {
        border: 1px solid #000000 !important;
        box-shadow: none !important;
        padding: 16px !important;
    }
}

/* ==========================================================================
   Mobile-First Responsiveness (360px viewport check)
   ========================================================================== */

@media (max-width: 860px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100% !important;
        min-width: 100% !important;
        height: auto;
        position: relative;
    }

    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px;
    }

    .sidebar-menu li a {
        padding: 6px 10px;
        font-size: 11.5px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .topbar-left {
        max-width: 100%;
    }

    .topbar-search-form {
        max-width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .public-navbar {
        flex-direction: column;
        gap: 12px;
        padding: 14px 16px;
        text-align: center;
    }

    .public-nav-links {
        justify-content: center;
    }

    .public-hero-card {
        padding: 28px 18px;
    }

    .public-hero-card h1 {
        font-size: 26px;
    }

    .content-body {
        padding: 16px 12px;
    }
}
