/* ============================================
   NURSINGSMS DESIGN SYSTEM - CSS VARIABLES
   ============================================ */

:root {
    /* PRIMARY COLOR PALETTE */
    --primary-green: #22863a;
    --primary-green-light: #28a745;
    --primary-green-dark: #1a6929;
    --primary-green-bg: #e6f7ed;
    --primary-green-hover: #1e7e34;

    /* SECONDARY COLORS */
    --secondary-blue: #4299e1;
    --secondary-blue-light: #63b3ed;
    --secondary-blue-dark: #2c5282;
    --secondary-blue-bg: #ebf8ff;

    /* SEMANTIC COLORS */
    --success: #48bb78;
    --success-bg: #f0fff4;
    --success-dark: #38a169;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --warning-dark: #d97706;
    --danger: #e53e3e;
    --danger-bg: #fff5f5;
    --danger-dark: #c53030;
    --info: #4299e1;
    --info-bg: #ebf8ff;
    --info-dark: #2c5282;

    /* GRAYSCALE */
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-400: #a0aec0;
    --gray-500: #718096;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --gray-900: #171923;

    /* SIDEBAR */
    --sidebar-width: 260px;
    --sidebar-bg: #22863a;
    --sidebar-hover: #1a6929;
    --sidebar-active: #28a745;
    --sidebar-text: rgba(255, 255, 255, 0.9);
    --sidebar-text-active: #ffffff;

    /* LAYOUT */
    --topbar-height: 70px;
    --content-padding: 30px;

    /* TYPOGRAPHY */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 22px;
    --font-size-3xl: 28px;

    /* SPACING */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 30px;

    /* BORDER RADIUS */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* SHADOWS */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.15);

    /* TRANSITIONS */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* BACKWARD-COMPATIBLE ALIASES */
    --primary: var(--primary-green);
    --secondary: var(--primary-green-light);
    --accent: var(--primary-green-bg);
    --bg: var(--gray-50);
    --card: #ffffff;
    --text: var(--gray-800);
    --muted: var(--gray-500);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--primary-green-bg);
    color: var(--primary-green-dark);
}

body {
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--text);
}

.bg-app {
    background: var(--bg);
}

.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #3ea45f 0%, #2f8f57 100%);
    color: #fff;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(3px);
}

.main-wrapper {
    overflow-x: hidden;
}

.shadow-soft {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.info-banner {
    background: #eaf4ff;
    border: 1px solid #60a5fa;
    color: #1e3a8a;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
}

.btn-gradient {
    color: #fff;
    border: none;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.btn-gradient:hover {
    color: #fff;
    filter: brightness(0.95);
}

.form-control,
.form-select {
    border: 1px solid #d8e4dc;
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.2);
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f5e9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.stats-card {
    border-radius: 16px;
    padding: 1rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-student { background: linear-gradient(135deg, #66bb6a, #2e7d32); }
.card-course { background: linear-gradient(135deg, #81c784, #388e3c); }
.card-revenue { background: linear-gradient(135deg, #43a047, #1b5e20); }
.card-admission { background: linear-gradient(135deg, #a5d6a7, #4caf50); }

.login-card {
    width: 100%;
    max-width: 430px;
    border: 0;
    border-radius: 16px;
}

/* Modern dashboard redesign */
.dashboard-topbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e8eeeb;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.topbar-search {
    background: #f8faf9;
    border: 1px solid #e2e8e5;
    border-radius: 999px;
    padding: 6px 12px;
    min-width: 320px;
}

.topbar-search .form-control {
    background: transparent;
    min-width: 220px;
}

.topbar-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5ebe8;
}

.profile-pill {
    background: #fff;
    border: 1px solid #e7ece9;
    border-radius: 999px;
    padding: 4px 10px 4px 4px;
}

.dashboard-card {
    border: 0;
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.metric-card {
    color: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);
}

.metric-green { background: linear-gradient(135deg, #16a34a, #22c55e); }
.metric-blue { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.metric-purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.metric-orange { background: linear-gradient(135deg, #ea580c, #fb923c); }

.metric-label {
    margin-bottom: 8px;
    font-size: 0.88rem;
    opacity: 0.9;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.metric-note,
.metric-trend {
    opacity: 0.95;
    font-size: 0.82rem;
}

@media (max-width: 991.98px) {
    .sidebar {
        width: 100%;
        min-height: auto;
    }

    .topbar-search {
        min-width: 0;
        width: 100%;
    }
}


.btn-action-view,
.btn-action-edit,
.btn-action-delete {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-action-view {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
}

.btn-action-edit {
    color: #198754;
    background: rgba(25, 135, 84, 0.12);
}

.btn-action-delete {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.12);
}

.btn-action-view:hover,
.btn-action-edit:hover,
.btn-action-delete:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
}

.table thead th {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    border-bottom-width: 1px;
}

.table tbody td {
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.03);
}

.applicant-wizard-card .wizard-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.applicant-wizard-card .wizard-step {
    border: 1px solid #d7e3db;
    border-radius: 999px;
    text-align: left;
    padding: 10px 14px;
    color: #4b5563;
    background: #fff;
}

.applicant-wizard-card .wizard-step.active {
    border-color: #0d6efd;
    color: #fff;
    background: #0d6efd;
}

.applicant-wizard-card .tab-pane {
    min-height: 360px;
}

[data-auth-panel] {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.table-card {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 10px;
}
.table-card .table { margin-bottom: 0; }

.auto-generated-label { font-weight: 600; color: #334155; font-size: .85rem; display:block; }
.form-label { margin-bottom: .35rem; }

/* Academic reports analytics UI */
.report-hero {
    border-radius: 24px;
    padding: 1.6rem;
    color: #fff;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.25), transparent 28%), linear-gradient(135deg, #166534 0%, #16a34a 48%, #38bdf8 100%);
    box-shadow: 0 18px 40px rgba(22, 101, 52, 0.18);
}

.report-hero h3 {
    font-weight: 800;
}

.report-hero-subtitle,
.breadcrumb-light,
.breadcrumb-light a,
.breadcrumb-light .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.86);
}

.report-hero-icon {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    background: rgba(255,255,255,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(4px);
}

.report-action-bar,
.report-filter-card,
.report-results-card {
    overflow: hidden;
}

.report-action-bar {
    background: linear-gradient(180deg, #ffffff, #f8fbf9);
}

.report-filter-card::before,
.report-results-card::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #38bdf8, #a855f7);
}

.academic-filter-field {
    animation: reportFilterIn 0.2s ease both;
}

@keyframes reportFilterIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.report-metric {
    min-height: 132px;
}

.report-empty-icon {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    background: linear-gradient(135deg, rgba(34,197,94,0.14), rgba(56,189,248,0.16));
    font-size: 2rem;
}

#academicReportTable_wrapper .dt-buttons .btn {
    border-radius: 999px;
    margin-right: .35rem;
}

#academicReportTable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
}

@media (max-width: 767.98px) {
    .report-hero { padding: 1.2rem; }
    .report-hero-icon { width: 56px; height: 56px; font-size: 1.5rem; }
    .report-action-bar .btn,
    .report-action-bar .btn-group { width: 100%; }
    .report-action-bar .btn-group .btn { width: 50%; }
}

.sms-alert-popup {
    border-radius: 24px !important;
    padding: 1.5rem !important;
}

.swal2-container {
    z-index: 20000 !important;
}

/* Consistent form and table presentation */
.form-label {
    font-weight: 600;
    color: #334155;
    font-size: .875rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.field-label-icon {
    font-size: .95rem;
}

.form-control,
.form-select,
.select2-container--bootstrap-5 .select2-selection {
    min-height: 42px;
}

textarea.form-control {
    min-height: 96px;
}

.form-control::placeholder,
textarea.form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.form-check {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 42px;
}

.table .serial-column {
    width: 72px;
    white-space: nowrap;
}

.ui-action-group,
.table td:last-child {
    white-space: nowrap;
}

.btn-action-view,
.btn-action-edit,
.btn-action-delete,
.btn-action-default {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-action-default {
    color: #ca8a04;
    background: rgba(250, 204, 21, 0.16);
}

.btn-action-default:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
}

@media (max-width: 767.98px) {
    form.row > [class*="col-"] {
        width: 100%;
    }

    form.row .btn {
        width: 100%;
    }
}

.table .bulk-select-column {
    width: 52px;
    white-space: nowrap;
}

.table .bulk-select-column .form-check-input,
.table .serial-column + .bulk-select-column .form-check-input {
    margin: 0;
}

/* ============================================
   NURSINGSMS UI/UX TRANSFORMATION OVERRIDES
   ============================================ */

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--gray-700);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container-fluid {
    padding: 0;
}

.bg-app {
    background: var(--gray-50);
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content,
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    overflow-x: hidden;
    transition: margin-left var(--transition-base);
}

.content-area {
    padding: var(--content-padding);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    transition: width var(--transition-base), transform var(--transition-base);
}

.sidebar-header {
    padding: var(--spacing-2xl) var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 20px;
    flex-shrink: 0;
}

.sidebar-brand h1 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0 0 2px 0;
    color: white;
}

.sidebar-brand p {
    font-size: var(--font-size-xs);
    opacity: 0.8;
    margin: 0;
}

.sidebar-nav {
    padding: var(--spacing-lg) 0;
}

.nav-section-title {
    padding: var(--spacing-md) var(--spacing-xl) var(--spacing-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.68;
    color: white;
}

.sidebar .nav-link,
.sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
    border-radius: 0;
    font-size: var(--font-size-base);
}

.sidebar .nav-link i,
.sidebar .nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar .nav-link:hover,
.sidebar .nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
    transform: none;
}

.sidebar .nav-link.active,
.sidebar .nav-link[aria-expanded="true"],
.sidebar .nav-item.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
    border-left-color: white;
    font-weight: 600;
}

.sidebar .collapse .nav-link {
    padding-left: calc(var(--spacing-xl) + var(--spacing-lg));
    font-size: var(--font-size-sm);
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: var(--spacing-md) 0;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

#appSidebar.sidebar-collapsed {
    width: 88px;
}

#appSidebar.sidebar-collapsed .nav-text,
#appSidebar.sidebar-collapsed .sidebar-brand,
#appSidebar.sidebar-collapsed .nav-section-title,
#appSidebar.sidebar-collapsed .nav-divider,
#appSidebar.sidebar-collapsed .bi-chevron-down {
    display: none !important;
}

#appSidebar.sidebar-collapsed .nav-link {
    justify-content: center;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

#appSidebar.sidebar-collapsed .nav-link i {
    margin-right: 0 !important;
}

body.sidebar-is-collapsed .main-content,
body.sidebar-is-collapsed .main-wrapper {
    margin-left: 88px;
}

/* Top bar */
.top-bar,
.dashboard-topbar {
    background: white;
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--content-padding);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 900;
    border-radius: 0 !important;
}

.page-title-section {
    flex: 1;
}

.page-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 2px 0;
}

.page-subtitle {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin: 0;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.icon-button {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--gray-600);
}

.icon-button:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.icon-button .badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    cursor: pointer;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: background var(--transition-base);
}

.user-menu:hover {
    background: var(--gray-100) !important;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--font-size-base);
}

.user-info {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-800);
}

.user-role {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

/* Breadcrumb */
.breadcrumb-custom,
.breadcrumb {
    background: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-sm);
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.breadcrumb-custom a,
.breadcrumb a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-custom a:hover,
.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--secondary-blue-dark);
}

.breadcrumb-custom .separator {
    margin: 0 var(--spacing-sm);
    color: var(--gray-400);
}

.breadcrumb-custom strong {
    color: var(--gray-700);
}

/* Cards */
.card,
.dashboard-card,
.table-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-2xl);
    overflow: hidden;
    border: none;
}

.card-header {
    padding: var(--spacing-xl) var(--spacing-2xl);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--primary-green);
}

.card-body {
    padding: var(--spacing-2xl);
}

.card-footer {
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.stat-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border-top: 3px solid transparent;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card.green { border-top-color: var(--success); }
.stat-card.blue { border-top-color: var(--secondary-blue); }
.stat-card.yellow { border-top-color: var(--warning); }
.stat-card.red { border-top-color: var(--danger); }

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-md);
}

.stat-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card.green .stat-icon { background: var(--success-bg); color: var(--success); }
.stat-card.blue .stat-icon { background: var(--secondary-blue-bg); color: var(--secondary-blue); }
.stat-card.yellow .stat-icon { background: var(--warning-bg); color: var(--warning); }
.stat-card.red .stat-icon { background: var(--danger-bg); color: var(--danger); }

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.stat-change {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled),
.btn-success:hover:not(:disabled) {
    background: var(--success-dark);
    border-color: var(--success-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

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

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-300);
    border-color: var(--gray-300);
}

.btn-outline,
.btn-outline-secondary {
    background: transparent;
    border-color: var(--gray-300);
    color: var(--gray-600);
}

.btn-outline:hover:not(:disabled),
.btn-outline-secondary:hover:not(:disabled) {
    border-color: var(--gray-400);
    background: var(--gray-50);
    color: var(--gray-700);
}

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

.btn-danger:hover:not(:disabled) {
    background: var(--danger-dark);
    border-color: var(--danger-dark);
}

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

.btn-info:hover:not(:disabled) {
    background: var(--info-dark);
    border-color: var(--info-dark);
}

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

.btn-warning:hover:not(:disabled) {
    background: var(--warning-dark);
    border-color: var(--warning-dark);
}

.btn-sm {
    padding: 6px 12px;
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: var(--font-size-lg);
}

.btn-icon,
.btn-action-view,
.btn-action-edit,
.btn-action-delete,
.btn-action-default {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-icon.edit,
.btn-action-edit { background: var(--secondary-blue-bg); color: var(--secondary-blue); }
.btn-icon.delete,
.btn-action-delete { background: var(--danger-bg); color: var(--danger); }
.btn-icon.view,
.btn-action-view { background: var(--info-bg); color: var(--info); }

.btn-icon.edit:hover,
.btn-action-edit:hover { background: var(--secondary-blue); color: white; }
.btn-icon.delete:hover,
.btn-action-delete:hover { background: var(--danger); color: white; }
.btn-icon.view:hover,
.btn-action-view:hover { background: var(--info); color: white; }

.action-buttons,
.ui-action-group {
    display: flex;
    gap: var(--spacing-sm);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table thead {
    background: var(--gray-50);
}

.table th,
.table thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

.table td,
.table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: var(--font-size-base);
    color: var(--gray-700);
    vertical-align: middle;
}

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

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

.table td strong {
    color: var(--gray-800);
    font-weight: 600;
}

.table .text-center { text-align: center; }
.table .text-right { text-align: right; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    white-space: nowrap;
}

.badge i {
    font-size: var(--font-size-base);
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-secondary { background: var(--gray-200); color: var(--gray-700); }
.badge-primary { background: var(--primary-green-bg); color: var(--primary-green); }

/* Forms */
.form {
    max-width: 100%;
}

.form-group {
    margin-bottom: var(--spacing-xl);
}

.form-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
}

.required {
    color: var(--danger);
    font-size: 16px;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--gray-200);
    color: var(--gray-600);
    border-radius: 50%;
    cursor: help;
    transition: all var(--transition-base);
}

.tooltip-icon:hover {
    background: var(--secondary-blue);
    color: white;
}

.form-control,
.form-select,
.select2-container--bootstrap-5 .select2-selection {
    width: 100%;
    min-height: 44px;
    padding: 12px 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    background-color: white;
    color: var(--gray-700);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-control:disabled,
.form-select:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

.form-control.is-invalid,
.form-select.is-invalid { border-color: var(--danger); }
.form-control.is-valid,
.form-select.is-valid { border-color: var(--success); }

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-help {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    padding-top: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--gray-200);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.input-addon {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    font-size: var(--font-size-base);
    color: var(--gray-600);
    font-weight: 600;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check label {
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

/* Alerts */
.alert {
    display: flex;
    align-items: start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
    border-left: 4px solid;
}

.alert i:first-child {
    font-size: 20px;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
    font-size: var(--font-size-base);
    line-height: 1.5;
}

.alert-content strong {
    display: block;
    margin-bottom: 4px;
}

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 20px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

.alert-success { background: var(--success-bg); color: var(--success-dark); border-color: var(--success); }
.alert-info { background: var(--info-bg); color: var(--info-dark); border-color: var(--info); }
.alert-warning { background: var(--warning-bg); color: var(--warning-dark); border-color: var(--warning); }
.alert-danger { background: var(--danger-bg); color: var(--danger-dark); border-color: var(--danger); }

/* SweetAlert */
.swal-modern,
.sms-alert-popup {
    border-radius: var(--radius-lg) !important;
    padding: var(--spacing-3xl) !important;
}

.swal-title {
    font-size: var(--font-size-2xl) !important;
    font-weight: 700 !important;
    color: var(--gray-800) !important;
}

.swal-icon {
    border-width: 3px !important;
}

.swal2-icon.swal2-success { border-color: var(--success) !important; color: var(--success) !important; }
.swal2-icon.swal2-error { border-color: var(--danger) !important; color: var(--danger) !important; }
.swal2-icon.swal2-warning { border-color: var(--warning) !important; color: var(--warning) !important; }
.swal2-actions { gap: var(--spacing-md) !important; }

/* Responsive utilities */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
}

.hide-desktop { display: none !important; }

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .hide-desktop { display: initial !important; }

    .stack-mobile {
        flex-direction: column;
    }

    .stats-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        transform: translateX(-100%);
        z-index: 1050;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content,
    .main-wrapper,
    body.sidebar-is-collapsed .main-content,
    body.sidebar-is-collapsed .main-wrapper {
        margin-left: 0;
    }

    .top-bar,
    .dashboard-topbar {
        padding-left: 70px;
        padding-right: var(--spacing-lg);
    }

    .content-area {
        padding: var(--spacing-xl);
    }

    .page-subtitle,
    .search-box {
        display: none;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Academic structure action tooltip refinements */
.btn-icon {
    position: relative;
}

.btn-icon.edit,
.btn-action-edit {
    background: var(--warning-bg);
    color: var(--warning);
}

.btn-icon.edit:hover,
.btn-action-edit:hover {
    background: var(--warning);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-icon.view:hover,
.btn-action-view:hover {
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.btn-icon.delete:hover,
.btn-action-delete:hover {
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.btn-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: var(--gray-800);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    z-index: 20;
}

.btn-icon[data-tooltip]:hover::after,
.btn-icon[data-tooltip]:focus::after {
    opacity: 1;
}

/* Consistent breadcrumb navigation */
.breadcrumb-custom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-link,
.breadcrumb-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
}

.breadcrumb-link:hover {
    background: #ebf8ff;
    text-decoration: none;
}

.breadcrumb-separator {
    color: #a0aec0;
    margin: 0 4px;
    font-weight: 400;
}

.breadcrumb-current {
    color: #2d3748;
    font-weight: 600;
}

.breadcrumb-current i {
    color: #22863a;
}

/* Native/select2 dropdown reliability */
select.form-control,
select.form-select {
    appearance: auto;
    cursor: pointer;
}

.select2-container--bootstrap-5 .select2-selection {
    min-height: 48px;
}

/* Sidebar consistency refinements: full-row targets, persistent long-menu UX */
.sidebar {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.sidebar-header {
    flex-shrink: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: var(--spacing-lg) 0;
}

.sidebar .nav-link {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-md);
    margin: 0;
    padding: 11px var(--spacing-xl);
    border-left: 3px solid transparent;
    border-radius: 0;
    line-height: 1.25;
    color: var(--sidebar-text);
    transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.sidebar .nav-link > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar .nav-link .nav-text {
    min-width: 0;
    flex: 1 1 auto;
    white-space: normal;
}

.sidebar .nav-link i,
.sidebar .nav-icon-text {
    width: 22px;
    min-width: 22px;
    margin-right: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
}

.sidebar .sidebar-toggle {
    justify-content: space-between;
}

.sidebar .sidebar-toggle .bi-chevron-down {
    width: 16px;
    min-width: 16px;
    margin-left: auto;
    transition: transform var(--transition-base);
}

.sidebar .sidebar-toggle:not(.collapsed) .bi-chevron-down {
    transform: rotate(180deg);
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus,
.sidebar .nav-link.active,
.sidebar .nav-link[aria-expanded="true"] {
    width: 100%;
    color: var(--sidebar-text-active);
    transform: none;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
    background: var(--sidebar-hover);
}

.sidebar .nav-link.active,
.sidebar .nav-link[aria-expanded="true"] {
    background: var(--sidebar-active);
    border-left-color: #fff;
    font-weight: 600;
}

.sidebar .sidebar-submenu {
    width: 100%;
}

.sidebar .sidebar-submenu .nav-link,
.sidebar .collapse .nav-link {
    width: 100%;
    min-height: 40px;
    padding: 10px var(--spacing-xl) 10px calc(var(--spacing-xl) + var(--spacing-lg));
    font-size: var(--font-size-sm);
    border-left: 3px solid transparent;
}

.sidebar .sidebar-submenu .nav-link i,
.sidebar .sidebar-submenu .nav-icon-text {
    width: 20px;
    min-width: 20px;
    font-size: 16px;
}

.nav-section-title {
    width: 100%;
    margin: var(--spacing-xs) 0 0;
    padding: var(--spacing-md) var(--spacing-xl) var(--spacing-sm);
}

.nav-divider {
    width: 100%;
    margin: var(--spacing-md) 0;
}

#appSidebar.sidebar-collapsed .sidebar-submenu .nav-link,
#appSidebar.sidebar-collapsed .collapse .nav-link,
#appSidebar.sidebar-collapsed .nav-link {
    justify-content: center;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

#appSidebar.sidebar-collapsed .nav-link > span:first-child {
    justify-content: center;
    flex: 0 0 auto;
}

/* ============================================
   MODERN ROLE-BASED NURSINGSMS DASHBOARDS
   ============================================ */
.nursing-dashboard {
    --dash-bg: #f6f8fb;
    --dash-card: rgba(255, 255, 255, .92);
    --dash-border: rgba(148, 163, 184, .18);
    --dash-text: #0f172a;
    --dash-muted: #64748b;
    --dash-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    --dash-shadow-soft: 0 10px 24px rgba(15, 23, 42, .06);
    color: var(--dash-text);
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(1.25rem, 3vw, 2rem);
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(255,255,255,.22), transparent 24%),
        linear-gradient(135deg, #0f766e 0%, #2563eb 48%, #7c3aed 100%);
    box-shadow: 0 24px 60px rgba(37, 99, 235, .22);
}

.dashboard-role-finance .dashboard-hero { background: linear-gradient(135deg, #047857, #0891b2 52%, #1d4ed8); }
.dashboard-role-student .dashboard-hero { background: linear-gradient(135deg, #7c3aed, #2563eb 48%, #06b6d4); }
.dashboard-role-lecturer .dashboard-hero { background: linear-gradient(135deg, #1d4ed8, #4f46e5 48%, #9333ea); }
.dashboard-role-clinical .dashboard-hero { background: linear-gradient(135deg, #be123c, #7c3aed 52%, #0f766e); }
.dashboard-role-academic .dashboard-hero { background: linear-gradient(135deg, #1e40af, #0f766e 52%, #16a34a); }

.hero-glow { position: absolute; border-radius: 999px; filter: blur(4px); opacity: .32; background: #fff; }
.hero-glow-one { width: 220px; height: 220px; right: 16%; top: -90px; }
.hero-glow-two { width: 170px; height: 170px; right: -35px; bottom: -70px; }
.hero-icon {
    display: grid; place-items: center; width: 62px; height: 62px; border-radius: 22px;
    background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(12px);
    font-size: 1.9rem;
}
.dashboard-kicker { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.72); font-weight: 800; }
.hero-title { font-size: clamp(1.7rem, 4vw, 2.75rem); line-height: 1.05; font-weight: 850; letter-spacing: -.04em; }
.hero-subtitle { max-width: 820px; color: rgba(255,255,255,.8); font-size: 1.02rem; }
.hero-pill {
    display: inline-flex; align-items: center; gap: .25rem; padding: .5rem .75rem; border-radius: 999px;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.9); font-size: .82rem;
}
.hero-actions-card {
    padding: 1.15rem; border-radius: 24px; background: rgba(15, 23, 42, .2); border: 1px solid rgba(255,255,255,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12); backdrop-filter: blur(16px);
}
.quick-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.quick-action-tile {
    display: flex; align-items: center; gap: .6rem; min-height: 54px; padding: .75rem; border-radius: 18px;
    color: #fff; text-decoration: none; font-weight: 750; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.18);
    transition: transform .18s ease, background .18s ease;
}
.quick-action-tile:hover { color: #fff; transform: translateY(-2px); background: rgba(255,255,255,.22); }
.quick-action-tile i { font-size: 1.15rem; }

.nursing-metric {
    display: block; height: 100%; min-height: 190px; padding: 1.15rem; border-radius: 24px; text-decoration: none; color: var(--dash-text);
    background: var(--dash-card); border: 1px solid var(--dash-border); box-shadow: var(--dash-shadow-soft); position: relative; overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nursing-metric::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--metric-a), var(--metric-b)); }
.nursing-metric::after { content: ''; position: absolute; right: -38px; bottom: -44px; width: 128px; height: 128px; border-radius: 999px; background: var(--metric-soft); }
.nursing-metric:hover { transform: translateY(-4px); box-shadow: var(--dash-shadow); border-color: rgba(37,99,235,.2); color: var(--dash-text); }
.metric-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; position: relative; z-index: 1; }
.metric-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: var(--metric-soft); color: var(--metric-a); font-size: 1.35rem; }
.metric-progress-label { font-size: .78rem; color: var(--dash-muted); font-weight: 800; }
.metric-number { position: relative; z-index: 1; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 850; letter-spacing: -.04em; }
.metric-label { position: relative; z-index: 1; font-weight: 850; color: #334155; }
.metric-note { position: relative; z-index: 1; color: var(--dash-muted); font-size: .84rem; min-height: 38px; }
.metric-progress { position: relative; z-index: 1; height: 7px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.metric-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--metric-a), var(--metric-b)); }
.metric-blue, .quick-blue { --metric-a:#2563eb; --metric-b:#06b6d4; --metric-soft:#dbeafe; }
.metric-emerald, .metric-green, .quick-green { --metric-a:#059669; --metric-b:#22c55e; --metric-soft:#dcfce7; }
.metric-purple, .metric-violet, .quick-purple { --metric-a:#7c3aed; --metric-b:#a855f7; --metric-soft:#ede9fe; }
.metric-orange, .metric-amber, .quick-orange { --metric-a:#f97316; --metric-b:#f59e0b; --metric-soft:#ffedd5; }
.metric-rose, .metric-pink, .quick-rose { --metric-a:#e11d48; --metric-b:#f43f5e; --metric-soft:#ffe4e6; }
.metric-cyan, .metric-teal, .quick-teal { --metric-a:#0891b2; --metric-b:#14b8a6; --metric-soft:#ccfbf1; }
.metric-indigo { --metric-a:#4f46e5; --metric-b:#2563eb; --metric-soft:#e0e7ff; }

.dashboard-card {
    border: 1px solid var(--dash-border); border-radius: 24px; background: var(--dash-card); box-shadow: var(--dash-shadow-soft);
    padding: 1.15rem; transition: transform .18s ease, box-shadow .18s ease;
}
.dashboard-card:hover { transform: translateY(-2px); box-shadow: var(--dash-shadow); }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.card-heading h5 { margin: 0; font-weight: 850; letter-spacing: -.02em; color: #0f172a; }
.card-heading p { margin: .25rem 0 0; color: var(--dash-muted); font-size: .84rem; }
.chart-type-badge { padding: .35rem .55rem; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .68rem; font-weight: 850; }
.chart-frame { height: 310px; }
.chart-frame-sm { height: 245px; }
.compact-chart-card .chart-frame { height: 230px; }
.dashboard-empty { min-height: 170px; display: grid; place-items: center; align-content: center; gap: .55rem; color: #94a3b8; text-align: center; }
.dashboard-empty i { font-size: 2rem; }
.dashboard-empty.small { min-height: 120px; }

.widget-list, .announcement-stack, .timeline-list, .calendar-mini-list { display: grid; gap: .72rem; }
.widget-row {
    display: flex; align-items: center; gap: .72rem; padding: .72rem; border-radius: 18px; background: #f8fafc; border: 1px solid rgba(226,232,240,.9);
}
.widget-row-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 12px; background: #e0f2fe; color: #0284c7; }
.widget-row-body { min-width: 0; flex: 1; }
.widget-row-body strong { display: block; color: #1e293b; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-row-body small { display: block; color: var(--dash-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-status { max-width: 95px; padding: .32rem .5rem; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; color: #475569; font-size: .72rem; font-weight: 800; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-dot { width: 10px; height: 10px; border-radius: 999px; background: #22c55e; box-shadow: 0 0 0 6px rgba(34,197,94,.12); margin-top: .4rem; }
.announcement-item { padding: .9rem; border-radius: 18px; background: #f8fafc; border-left: 4px solid #2563eb; }
.announcement-item span { display: inline-block; font-size: .68rem; font-weight: 850; text-transform: uppercase; color: #2563eb; margin-bottom: .35rem; }
.announcement-item strong { display: block; color: #0f172a; }
.announcement-item p { margin: .25rem 0 0; color: var(--dash-muted); font-size: .83rem; }
.priority-urgent, .priority-high { border-left-color: #e11d48; }
.priority-urgent span, .priority-high span { color: #e11d48; }
.timeline-item { display: grid; grid-template-columns: 18px 1fr; gap: .65rem; }
.timeline-item > span { width: 11px; height: 11px; border-radius: 999px; background: #2563eb; margin-top: .32rem; box-shadow: 0 0 0 5px #dbeafe; }
.timeline-item strong { color: #0f172a; }
.timeline-item p { margin: .1rem 0; color: #475569; font-size: .86rem; }
.timeline-item small { color: #94a3b8; }
.calendar-mini-item { display: flex; align-items: center; gap: .8rem; padding: .75rem; border-radius: 18px; background: #f8fafc; }
.calendar-date { display: grid; place-items: center; flex: 0 0 54px; height: 54px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); }
.calendar-date span { font-size: .65rem; text-transform: uppercase; font-weight: 800; line-height: 1; }
.calendar-date strong { font-size: 1.2rem; line-height: 1; }
.calendar-mini-item small { display: block; color: var(--dash-muted); }

@media (max-width: 991.98px) {
    .dashboard-hero { border-radius: 22px; }
    .quick-action-grid { grid-template-columns: 1fr; }
    .chart-frame { height: 260px; }
}
@media (max-width: 575.98px) {
    .hero-icon { width: 52px; height: 52px; border-radius: 18px; font-size: 1.45rem; }
    .nursing-metric { min-height: 172px; }
    .widget-row { align-items: flex-start; }
    .widget-status { max-width: 80px; }
}

/* Solid compact admin dashboard cards inspired by classic school dashboards */
.dashboard-role-admin .dashboard-hero {
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    border: 1px solid rgba(226, 232, 240, .9);
}
.dashboard-role-admin .hero-title { font-size: clamp(1.35rem, 2vw, 1.85rem); color: #172033; }
.dashboard-role-admin .hero-subtitle { color: #64748b; font-size: .95rem; }
.dashboard-role-admin .dashboard-kicker { color: #16a34a; }
.dashboard-role-admin .hero-icon { width: 48px; height: 48px; border-radius: 14px; background: #ecfdf5; color: #15803d; border-color: #bbf7d0; font-size: 1.35rem; }
.dashboard-role-admin .hero-pill { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
.dashboard-role-admin .hero-actions-card { background: #f8fafc; border-color: #e2e8f0; box-shadow: none; }
.dashboard-role-admin .hero-actions-card h5 { color: #172033; }
.dashboard-role-admin .quick-action-tile { min-height: 44px; border-radius: 10px; background: #fff; color: #334155; border-color: #e2e8f0; box-shadow: 0 2px 8px rgba(15, 23, 42, .04); }
.dashboard-role-admin .quick-action-tile:hover { color: #15803d; background: #f0fdf4; }
.dashboard-role-admin .dashboard-metrics .row { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
.dashboard-role-admin .nursing-metric {
    min-height: 118px;
    padding: 1rem 1.15rem;
    border-radius: 10px;
    color: #fff;
    border: 0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}
.dashboard-role-admin .nursing-metric::before { display: none; }
.dashboard-role-admin .nursing-metric::after { width: 96px; height: 96px; right: -18px; bottom: -32px; background: rgba(255, 255, 255, .12); }
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n+1) .nursing-metric { background: linear-gradient(135deg, #8b2bbd, #c026d3); }
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n+2) .nursing-metric { background: linear-gradient(135deg, #ef4444, #f97316); }
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n+3) .nursing-metric { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n) .nursing-metric { background: linear-gradient(135deg, #0891b2, #38bdf8); }
.dashboard-role-admin .metric-icon { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .78); }
.dashboard-role-admin .metric-number { color: #fff; font-size: 1.65rem; }
.dashboard-role-admin .metric-label,
.dashboard-role-admin .metric-note,
.dashboard-role-admin .metric-progress-label { color: rgba(255, 255, 255, .9); }
.dashboard-role-admin .metric-note { min-height: auto; margin-bottom: .75rem !important; }
.dashboard-role-admin .metric-progress { height: 4px; background: rgba(255, 255, 255, .24); }
.dashboard-role-admin .metric-progress span { background: rgba(255, 255, 255, .9); }


/* 2026 admin dashboard + login refresh */
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n+1) .nursing-metric { background: linear-gradient(135deg,#1db954,#22c55e); }
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n+2) .nursing-metric { background: linear-gradient(135deg,#1d8cd8,#38bdf8); }
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n+3) .nursing-metric { background: linear-gradient(135deg,#6d28d9,#a855f7); }
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n) .nursing-metric { background: linear-gradient(135deg,#f97316,#fb923c); }
.login-modern-body{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#e8edf2;}
.login-modern-wrap{width:min(92vw,820px);display:flex;justify-content:center;}
.login-card-modern{width:min(100%,780px);border-radius:28px;border-top:18px solid #22a06b;padding:2.2rem 2.4rem;background:#f8fafc;}
.login-logo-placeholder{width:120px;height:120px;border-radius:50%;background:#5d6669;color:#fff;display:grid;place-items:center;margin:-4.5rem auto 1.2rem;font-weight:700;}

.app-brand-logo{max-width:34px;max-height:34px;object-fit:contain}.hero-brand-logo{width:34px;height:34px;object-fit:contain}.login-logo-img{width:120px;height:120px;object-fit:contain;display:block;margin:-4.5rem auto 1.2rem;}
.dataTables_wrapper .dataTables_length select{background-image:none!important;padding:.25rem 1.75rem .25rem .55rem!important;min-height:34px}.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{margin-bottom:.35rem}.dataTables_wrapper .row{--bs-gutter-y:.35rem}.dataTables_wrapper .dataTables_paginate .paginate_button{padding:.2rem .55rem!important;margin:0 .08rem!important}.table td,.table th{vertical-align:middle}.btn.btn-sm{padding:.28rem .58rem;font-size:.79rem;}

.header-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%;}

/* Academic module print and responsive helpers */
@media print {
    @page { margin: 15mm; size: A4; }
    body { background: #fff !important; margin: 0 !important; }
    body * { visibility: hidden !important; }
    #transcript-doc,
    #transcript-doc * { visibility: visible !important; }
    #transcript-doc {
        position: absolute !important;
        inset: 0 auto auto 0 !important;
        box-shadow: none !important;
        border: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .no-print,
    .sidebar,
    .mobile-menu-toggle,
    .navbar,
    .breadcrumb,
    button,
    a[href] { display: none !important; }
}

@media (max-width: 768px) {
    .score-cell { width: 64px; font-size: 12px; }
}

#academic-toast-container {
    max-width: calc(100vw - 2rem);
    right: 1rem;
    top: 1rem;
}

/* Phase dashboard unification: institutional green executive dashboards */
.nursing-dashboard { --dash-bg: #f8fafc; }
.dashboard-hero,
.dashboard-role-finance .dashboard-hero,
.dashboard-role-student .dashboard-hero,
.dashboard-role-lecturer .dashboard-hero,
.dashboard-role-clinical .dashboard-hero,
.dashboard-role-academic .dashboard-hero {
    background:
        radial-gradient(circle at 10% 10%, rgba(220, 252, 231, .22), transparent 26%),
        linear-gradient(135deg, #14532d 0%, #166534 52%, #16a34a 100%);
    box-shadow: 0 24px 60px rgba(22, 101, 52, .24);
}
.dashboard-role-admin .dashboard-hero {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .07);
}
.admin-kpi-board { margin-top: -.25rem; }
.admin-kpi-tile {
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    overflow: hidden;
    padding: 1.15rem;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #166534, #16a34a);
    box-shadow: 0 16px 32px rgba(22, 101, 52, .18);
    transition: transform .18s ease, box-shadow .18s ease;
}
.admin-kpi-tile::after {
    content: '';
    position: absolute;
    width: 118px;
    height: 118px;
    right: -34px;
    bottom: -38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
}
.admin-kpi-tile:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 20px 40px rgba(22, 101, 52, .25); }
.admin-kpi-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.16); font-size: 1.25rem; }
.admin-kpi-label { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; opacity: .86; font-weight: 800; }
.admin-kpi-tile strong { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1; letter-spacing: -.04em; }
.admin-kpi-tile small { color: rgba(255,255,255,.84); position: relative; z-index: 1; }
.admin-kpi-progress { margin-top: auto; height: 5px; border-radius: 999px; background: rgba(255,255,255,.22); overflow: hidden; position: relative; z-index: 1; }
.admin-kpi-progress span { display: block; height: 100%; border-radius: inherit; background: rgba(255,255,255,.92); }
.admin-kpi-board .col-sm-6:nth-child(2) .admin-kpi-tile { background: linear-gradient(135deg, #047857, #34d399); }
.admin-kpi-board .col-sm-6:nth-child(3) .admin-kpi-tile { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.admin-kpi-board .col-sm-6:nth-child(4) .admin-kpi-tile { background: linear-gradient(135deg, #15803d, #84cc16); }
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n+1) .nursing-metric,
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n+2) .nursing-metric,
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n+3) .nursing-metric,
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n) .nursing-metric {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}
.dashboard-role-admin .nursing-metric::before { display: block; background: linear-gradient(90deg, #16a34a, #86efac); }
.dashboard-role-admin .nursing-metric::after { background: #ecfdf5; opacity: .9; }
.dashboard-role-admin .metric-icon { background: #dcfce7; color: #15803d; }
.dashboard-role-admin .metric-number { color: #0f172a; }
.dashboard-role-admin .metric-label { color: #334155; }
.dashboard-role-admin .metric-note,
.dashboard-role-admin .metric-progress-label { color: #64748b; }
.dashboard-role-admin .metric-progress { background: #e5e7eb; }
.dashboard-role-admin .metric-progress span { background: linear-gradient(90deg, #16a34a, #86efac); }

.module-dashboard {
    color: #0f172a;
}
.module-dashboard-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 1.35rem;
    background: linear-gradient(135deg, #14532d, #166534 55%, #16a34a);
    color: #fff;
    box-shadow: 0 18px 45px rgba(22, 101, 52, .22);
}
.module-dashboard-hero::after { content: ''; position: absolute; width: 220px; height: 220px; right: -80px; top: -110px; border-radius: 999px; background: rgba(255,255,255,.13); }
.module-dashboard-hero h4 { font-weight: 850; letter-spacing: -.03em; }
.module-dashboard-hero p { color: rgba(255,255,255,.78); }
.module-dashboard-hero .btn { background: #fff; border-color: #fff; color: #166534; font-weight: 700; }
.module-kpi-card {
    height: 100%;
    min-height: 136px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}
.module-kpi-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #16a34a, #86efac); }
.module-kpi-card::after { content: ''; position: absolute; width: 96px; height: 96px; right: -34px; bottom: -42px; border-radius: 999px; background: #ecfdf5; }
.module-kpi-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: #dcfce7; color: #15803d; font-size: 1.15rem; margin-bottom: .65rem; }
.module-kpi-card small { display:block; color:#64748b; font-weight:700; text-transform:uppercase; letter-spacing:.06em; font-size:.72rem; }
.module-kpi-card strong { display:block; color:#0f172a; font-size: clamp(1.45rem, 3vw, 2rem); line-height:1.1; letter-spacing:-.04em; position:relative; z-index:1; }
.module-panel { border: 1px solid #e5e7eb; border-radius: 20px; background: #fff; box-shadow: 0 12px 26px rgba(15,23,42,.06); }
.module-panel .table thead { background: #f8fafc; color: #64748b; text-transform: uppercase; font-size: .74rem; letter-spacing: .05em; }

/* Module dashboards use the same colorful card language as the main workspace dashboard. */
.module-dashboard .module-kpi-card {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #166534, #22c55e);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .14);
}
.module-dashboard .module-kpi-card::before { background: rgba(255, 255, 255, .82); left: 1rem; right: 1rem; top: auto; bottom: 1.35rem; height: 5px; border-radius: 999px; }
.module-dashboard .module-kpi-card::after { background: rgba(255, 255, 255, .18); width: 116px; height: 116px; right: -34px; bottom: -38px; }
.module-dashboard .module-kpi-icon { background: rgba(255, 255, 255, .16); color: #fff; }
.module-dashboard .module-kpi-card small,
.module-dashboard .module-kpi-card strong,
.module-dashboard .module-kpi-card .text-muted { color: #fff !important; }
.module-dashboard .module-kpi-card small { opacity: .86; }
.module-dashboard .module-kpi-card .text-muted { opacity: .86; }
.module-dashboard .row > [class*="col-"]:nth-child(4n+1) .module-kpi-card { background: linear-gradient(135deg, #166534, #16a34a); }
.module-dashboard .row > [class*="col-"]:nth-child(4n+2) .module-kpi-card { background: linear-gradient(135deg, #047857, #34d399); }
.module-dashboard .row > [class*="col-"]:nth-child(4n+3) .module-kpi-card { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.module-dashboard .row > [class*="col-"]:nth-child(4n+4) .module-kpi-card { background: linear-gradient(135deg, #15803d, #84cc16); }


/* Dashboard UI alignment with the institution command center reference. */
.dashboard-topbar {
    background: #fff !important;
    min-height: 68px;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}
.dashboard-topbar .page-title { font-size: 1.1rem; font-weight: 850; color: #0f172a; }
.dashboard-topbar .page-subtitle { color: #94a3b8; }
.dashboard-topbar .icon-button { border-color: #e5e7eb; background: #f8fafc; color: #334155; }
.dashboard-topbar .icon-button:hover { background: #ecfdf5; color: #15803d; }
.dashboard-hero,
.dashboard-role-admin .dashboard-hero,
.dashboard-role-finance .dashboard-hero,
.dashboard-role-student .dashboard-hero,
.dashboard-role-lecturer .dashboard-hero,
.dashboard-role-clinical .dashboard-hero,
.dashboard-role-academic .dashboard-hero,
.module-dashboard-hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.12), transparent 28%),
        linear-gradient(135deg, #064e3b 0%, #15803d 50%, #0f9f8f 100%) !important;
    color: #fff !important;
    box-shadow: 0 18px 38px rgba(6, 78, 59, .18) !important;
}
.dashboard-role-admin .hero-title,
.dashboard-role-admin .hero-subtitle,
.dashboard-role-admin .dashboard-kicker { color: #fff; }
.dashboard-role-admin .hero-icon,
.dashboard-hero .hero-icon { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.25); }
.dashboard-role-admin .hero-pill { background: rgba(255,255,255,.13); color: rgba(255,255,255,.92); border-color: rgba(255,255,255,.22); }
.dashboard-role-admin .hero-actions-card { background: transparent; border: 0; box-shadow: none; }
.dashboard-role-admin .hero-actions-card h5,
.dashboard-role-admin .hero-actions-card p { color: #fff !important; }
.dashboard-role-admin .quick-action-tile { background: rgba(255,255,255,.94); color: #0f172a; border: 0; min-height: 56px; border-radius: 14px; }
.dashboard-role-admin .quick-action-tile:hover { color: #15803d; background: #fff; }
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n+1) .nursing-metric,
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n+2) .nursing-metric,
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n+3) .nursing-metric,
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n) .nursing-metric,
.dashboard-role-admin .admin-kpi-tile,
.nursing-dashboard .nursing-metric {
    border: 0;
    color: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .13);
}
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n+1) .nursing-metric,
.nursing-dashboard .dashboard-metrics .col-sm-6:nth-child(4n+1) .nursing-metric,
.dashboard-role-admin .admin-kpi-board .col-sm-6:nth-child(4n+1) .admin-kpi-tile { background: linear-gradient(135deg, #15803d, #22c55e); }
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n+2) .nursing-metric,
.nursing-dashboard .dashboard-metrics .col-sm-6:nth-child(4n+2) .nursing-metric,
.dashboard-role-admin .admin-kpi-board .col-sm-6:nth-child(4n+2) .admin-kpi-tile { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n+3) .nursing-metric,
.nursing-dashboard .dashboard-metrics .col-sm-6:nth-child(4n+3) .nursing-metric,
.dashboard-role-admin .admin-kpi-board .col-sm-6:nth-child(4n+3) .admin-kpi-tile { background: linear-gradient(135deg, #6d28d9, #a855f7); }
.dashboard-role-admin .dashboard-metrics .col-sm-6:nth-child(4n) .nursing-metric,
.nursing-dashboard .dashboard-metrics .col-sm-6:nth-child(4n) .nursing-metric,
.dashboard-role-admin .admin-kpi-board .col-sm-6:nth-child(4n) .admin-kpi-tile { background: linear-gradient(135deg, #c2410c, #f97316); }
.nursing-dashboard .nursing-metric::before,
.dashboard-role-admin .nursing-metric::before { background: rgba(255,255,255,.86); left: 1rem; right: 1rem; top: auto; bottom: 1.15rem; height: 5px; border-radius: 999px; }
.nursing-dashboard .nursing-metric::after,
.dashboard-role-admin .nursing-metric::after { background: rgba(255,255,255,.14); opacity: 1; }
.nursing-dashboard .metric-icon,
.dashboard-role-admin .metric-icon { background: rgba(255,255,255,.16); color: #fff; }
.nursing-dashboard .metric-number,
.nursing-dashboard .metric-label,
.nursing-dashboard .metric-note,
.nursing-dashboard .metric-progress-label,
.dashboard-role-admin .metric-number,
.dashboard-role-admin .metric-label,
.dashboard-role-admin .metric-note,
.dashboard-role-admin .metric-progress-label { color: rgba(255,255,255,.94); }
.nursing-dashboard .metric-progress,
.dashboard-role-admin .metric-progress { background: rgba(255,255,255,.24); }
.nursing-dashboard .metric-progress span,
.dashboard-role-admin .metric-progress span { background: rgba(255,255,255,.92); }
.dashboard-card,
.module-panel { border-radius: 18px; border-color: #e5e7eb; box-shadow: 0 10px 24px rgba(15,23,42,.07); }
.dashboard-hero .dashboard-kicker,
.dashboard-hero .hero-title,
.dashboard-hero .hero-subtitle,
.module-dashboard-hero h1,
.module-dashboard-hero h2,
.module-dashboard-hero h3,
.module-dashboard-hero h4,
.module-dashboard-hero p,
.module-dashboard-hero small,
.module-dashboard-hero span:not(.btn):not(.badge) {
    color: #fff !important;
}
.module-dashboard .module-kpi-card,
.academic-office-dashboard .module-kpi-card {
    min-height: 132px;
}
.module-dashboard .module-kpi-card::before,
.academic-office-dashboard .module-kpi-card::before {
    content: '';
    position: absolute;
}
.module-dashboard .module-kpi-card strong,
.academic-office-dashboard .module-kpi-card strong {
    font-size: 1.85rem;
    line-height: 1;
}
.module-dashboard .row > [class*="col-"]:nth-child(4n+1) .module-kpi-card,
.academic-office-dashboard .row > [class*="col-"]:nth-child(4n+1) .module-kpi-card { background: linear-gradient(135deg, #2f8f3a, #47b955) !important; }
.module-dashboard .row > [class*="col-"]:nth-child(4n+2) .module-kpi-card,
.academic-office-dashboard .row > [class*="col-"]:nth-child(4n+2) .module-kpi-card { background: linear-gradient(135deg, #f24a2e, #ff6b3a) !important; }
.module-dashboard .row > [class*="col-"]:nth-child(4n+3) .module-kpi-card,
.academic-office-dashboard .row > [class*="col-"]:nth-child(4n+3) .module-kpi-card { background: linear-gradient(135deg, #07897d, #16b3a4) !important; }
.module-dashboard .row > [class*="col-"]:nth-child(4n) .module-kpi-card,
.academic-office-dashboard .row > [class*="col-"]:nth-child(4n) .module-kpi-card { background: linear-gradient(135deg, #0d9ad7, #23b4ef) !important; }
