/* UK London International Award Board - Premium Minimalist Style System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ====================================================================== */
/* DESIGN TOKEN SYSTEM (CSS Custom Properties)                            */
/* ====================================================================== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #EBF3FC;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-input-hover: #fafcfe;
    --bg-input-focus: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-topbar: #ffffff;
    --bg-stat-icon: #EBF3FC;
    --bg-modal-overlay: rgba(34, 34, 34, 0.4);
    --bg-section: #ffffff;

    --text-primary: #222222;
    --text-heading: #222222;
    --text-secondary: #555555;
    --text-label: #222222;
    --text-hint: #777777;
    --text-topbar-icon: #222222;
    --text-sidebar: #222222;

    --border-main: #EBF3FC;
    --border-input: #EBF3FC;
    --border-input-hover: #a6c2e3;
    --border-card: #EBF3FC;

    --shadow-card: 0 4px 12px rgba(34, 34, 34, 0.03);
    --shadow-modal: 0 10px 40px rgba(34, 34, 34, 0.1);
    --shadow-focus: 0 0 0 4px rgba(235, 243, 252, 0.5);

    --nav-active-bg: #EBF3FC;
    --nav-hover-bg: #EBF3FC;
    --nav-active-text: #002F6C;
    --nav-hover-text: #002F6C;

    --btn-primary-bg: #222222;
    --btn-primary-text: #ffffff;

    --btn-edit-bg: #e2eefb;
    --btn-edit-text: #002F6C;
    --btn-delete-bg: #fdf2f0;
    --btn-delete-text: #d4351c;
    --btn-view-bg: #e6f6ee;
    --btn-view-text: #00703c;
}

/* ====================================================================== */
/* DARK THEME                                                              */
/* ====================================================================== */
[data-theme="dark"] {
    --bg-primary: #0f1117;
    --bg-secondary: #161921;
    --bg-card: #1a1d27;
    --bg-input: #1e2130;
    --bg-input-hover: #252838;
    --bg-input-focus: #2a2e3e;
    --bg-sidebar: #111320;
    --bg-topbar: #161921;
    --bg-stat-icon: #1e2a45;
    --bg-modal-overlay: rgba(0, 0, 0, 0.7);
    --bg-section: #1a1d27;

    --text-primary: #e0e4ec;
    --text-heading: #8ab4f8;
    --text-secondary: #9aa5b4;
    --text-label: #b0bec5;
    --text-hint: #6b7685;
    --text-topbar-icon: #8899aa;
    --text-sidebar: #8899aa;

    --border-main: #252838;
    --border-input: #2e3348;
    --border-input-hover: #4a5580;
    --border-card: #252838;

    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-modal: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-focus: 0 0 0 4px rgba(138, 180, 248, 0.15);

    --nav-active-bg: rgba(138, 180, 248, 0.12);
    --nav-hover-bg: rgba(138, 180, 248, 0.06);
    --nav-active-text: #ffffff;
    --nav-hover-text: #ffffff;

    --btn-primary-bg: #3b6cb5;
    --btn-primary-text: #ffffff;

    --btn-edit-bg: rgba(138, 180, 248, 0.15);
    --btn-edit-text: #8ab4f8;
    --btn-delete-bg: rgba(242, 139, 130, 0.15);
    --btn-delete-text: #f28b82;
    --btn-view-bg: rgba(129, 201, 149, 0.15);
    --btn-view-text: #81c784;
}

/* ====================================================================== */
/* CLASSIC THEME (Warm Sepia Tones)                                        */
/* ====================================================================== */
[data-theme="classic"] {
    --bg-primary: #faf8f3;
    --bg-secondary: #f0ebe0;
    --bg-card: #ffffff;
    --bg-input: #faf8f3;
    --bg-input-hover: #f5f0e5;
    --bg-input-focus: #ffffff;
    --bg-sidebar: #2c1e10;
    --bg-topbar: #faf8f3;
    --bg-stat-icon: #f0e6d2;
    --bg-modal-overlay: rgba(44, 30, 16, 0.4);
    --bg-section: #f8f4ed;

    --text-primary: #3c2f1e;
    --text-heading: #5a3e1b;
    --text-secondary: #6d5b45;
    --text-label: #4a3c2a;
    --text-hint: #8a7a65;
    --text-topbar-icon: #6d5b45;
    --text-sidebar: #c8b99a;

    --border-main: #e8ddc8;
    --border-input: #d9cbb0;
    --border-input-hover: #b8a680;
    --border-card: #e8ddc8;

    --shadow-card: 0 4px 12px rgba(44, 30, 16, 0.05);
    --shadow-modal: 0 10px 40px rgba(44, 30, 16, 0.15);
    --shadow-focus: 0 0 0 4px rgba(90, 62, 27, 0.1);

    --nav-active-bg: rgba(200, 185, 154, 0.2);
    --nav-hover-bg: rgba(200, 185, 154, 0.1);

    --btn-primary-bg: #5a3e1b;
    --btn-primary-text: #ffffff;

    --btn-edit-bg: #f4edd2;
    --btn-edit-text: #5c3c10;
    --btn-delete-bg: #f8dfd4;
    --btn-delete-text: #a8200d;
    --btn-view-bg: #e0eed4;
    --btn-view-text: #2f5c10;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px;
    transition: background-color 0.3s, color 0.3s;
}

/* Premium Navigation Header */
.gov-header {
    background-color: #ffffff;
    border-bottom: 2px solid #EBF3FC;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(34, 34, 34, 0.05);
}

.gov-header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Adjust brand logo alignment, spacing and sizing */
.gov-header-container a[href="index.php"] {
    gap: 6px !important;
}

.gov-header-container a[href="index.php"] img {
    max-height: 52px !important;
    transition: transform 0.2s ease;
}

.gov-header-container a[href="index.php"]:hover img {
    transform: scale(1.03);
}


.gov-header-title {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: #222222;
    letter-spacing: -0.5px;
    transition: opacity 0.2s;
}

.gov-header-title:hover {
    opacity: 0.9;
}

.gov-header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gov-header-nav a {
    color: #222222;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.25s ease;
}

.gov-header-nav a:hover {
    opacity: 0.85;
    text-decoration: underline;
    color: #222222;
}

/* Styled button for Sign In & Dashboard */
.gov-header-nav .nav-btn-primary {
    background-color: #222222;
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #222222;
    display: inline-block;
    line-height: 1.2;
    transition: all 0.25s ease;
}

.gov-header-nav .nav-btn-primary:hover {
    background-color: #ffffff;
    color: #222222 !important;
    border-color: #222222;
    text-decoration: none;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(34, 34, 34, 0.15);
}

/* Styled outline button for Sign Out */
.gov-header-nav .nav-btn-outline {
    background-color: transparent;
    color: #222222 !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #222222;
    display: inline-block;
    line-height: 1.2;
    transition: all 0.25s ease;
}

.gov-header-nav .nav-btn-outline:hover {
    background-color: #EBF3FC;
    color: #222222 !important;
    border-color: #222222;
    text-decoration: none;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(235, 243, 252, 0.5);
}


/* Standardized Content Container */
.gov-width-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
}

/* Normalized Bold Typography */
h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 16px;
    margin-top: 36px;
    letter-spacing: -0.3px;
    border-bottom: 1px solid #EBF3FC;
    padding-bottom: 8px;
}

h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

p {
    font-size: 15px;
    margin-bottom: 16px;
    color: #4a4a4a;
}

a {
    color: var(--btn-primary-bg);
    text-decoration: underline;
    transition: color 0.2s;
}

a:hover {
    color: #001f47;
}

/* Corporate Flat List-Style Rows */
.gov-list-group {
    border-top: 1px solid #EBF3FC;
    margin: 20px 0 35px 0;
}

.gov-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #EBF3FC;
    transition: background-color 0.2s, padding-left 0.2s;
}

.gov-list-row:hover {
    background-color: #fafcff;
    padding-left: 10px;
}

.gov-list-key {
    font-weight: 600;
    font-size: 16px;
    color: #002F6C;
}

.gov-list-value {
    font-size: 14px;
    color: #555555;
    text-align: right;
}

.gov-list-action {
    flex-shrink: 0;
    margin-left: 20px;
}

.gov-list-action a {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border: 1.5px solid #002F6C;
    color: #002F6C;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-block;
    border-radius: 4px;
}

.gov-list-action a:hover {
    background-color: #002F6C;
    color: #ffffff;
}

/* Premium Modern Buttons */
.gov-button {
    display: inline-block;
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
    border-radius: 4px;
}

.gov-button:hover {
    filter: brightness(0.85);
}

.gov-button:active {
    transform: scale(0.98);
}

.gov-button-secondary {
    background-color: var(--bg-card);
    color: var(--text-heading);
    border: 1.5px solid var(--border-input);
}

.gov-button-secondary:hover {
    background-color: var(--bg-secondary);
}

/* Sleek Form Controls */
.gov-form-group {
    margin-bottom: 24px;
}

.gov-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-label);
    margin-bottom: 6px;
}

.gov-hint {
    display: block;
    font-size: 13px;
    color: var(--text-hint);
    margin-bottom: 8px;
}

.gov-input, .gov-select, .gov-textarea {
    width: 100%;
    max-width: 480px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 400;
    border: 1.5px solid var(--border-input);
    background-color: var(--bg-input);
    font-family: inherit;
    border-radius: 6px;
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
}

.gov-input:hover, .gov-select:hover, .gov-textarea:hover {
    border-color: var(--border-input-hover);
    background-color: var(--bg-input-hover);
}

.gov-input:focus, .gov-select:focus, .gov-textarea:focus {
    outline: none;
    border-color: var(--text-heading);
    background-color: var(--bg-input-focus);
    box-shadow: var(--shadow-focus);
}

/* Data Tables */
.gov-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.gov-table th {
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid #002F6C;
    padding: 12px 10px;
    text-align: left;
    color: #002F6C;
    background-color: #fafcff;
}

.gov-table td {
    font-size: 14px;
    border-bottom: 1px solid #EBF3FC;
    padding: 16px 10px;
    color: #4a4a4a;
}

.gov-table tr:hover td {
    background-color: #fafcff;
}

/* Rounded Pill Badges */
.gov-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    color: #ffffff;
    background-color: #002F6C;
}

.gov-tag-green {
    background-color: #e3fbeb;
    color: #00703c;
}

.gov-tag-yellow {
    background-color: #fff9e6;
    color: #b07e00;
}

.gov-tag-grey {
    background-color: #f3f2f1;
    color: #555555;
}

/* Notification Banners with Pastel Backgrounds & Solid Left Borders */
.gov-error-banner {
    border-left: 5px solid #d4351c;
    padding: 16px 20px;
    margin-bottom: 25px;
    background-color: #fdf2f0;
}

.gov-error-title {
    font-size: 16px;
    font-weight: 700;
    color: #d4351c;
    margin-bottom: 4px;
}

.gov-success-banner {
    border-left: 5px solid #00703c;
    padding: 16px 20px;
    margin-bottom: 25px;
    background-color: #f1fbf5;
}

.gov-success-title {
    font-size: 16px;
    font-weight: 700;
    color: #00703c;
    margin-bottom: 4px;
}

/* Grid System */
.gov-grid-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.gov-grid-column-two-thirds {
    flex: 0 0 66.6666%;
    max-width: 66.6666%;
    padding: 0 15px;
}

.gov-grid-column-one-third {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .gov-grid-column-two-thirds, .gov-grid-column-one-third {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Split-Screen Login Redesign (Glassmorphism + Side Panel Illustration) */
.login-body {
    background: linear-gradient(135deg, #f5f8fd 0%, #e2eefb 100%);
    height: 100vh;
    min-height: 100vh;
    overflow: hidden !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.login-split-container {
    display: flex;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
}

.login-left-panel {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: transparent;
    height: 100vh;
    overflow-y: auto;
}

.login-right-panel {
    flex: 0 0 50%;
    max-width: 50%;
    background-color: #002F6C;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-left: none;
    height: 100vh;
}

.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 45px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 10px 40px rgba(0, 47, 108, 0.06);
}

.login-logo {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #777777;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #002F6C;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.login-card .gov-form-group {
    margin-bottom: 20px;
}

.login-card .gov-input {
    max-width: 100%;
    border-radius: 6px;
}

.login-card .gov-button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 6px;
    margin-top: 10px;
}

.login-illustration-img {
    max-width: 85%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 47, 108, 0.08));
}

@media (max-width: 960px) {
    .login-right-panel {
        display: none;
    }
    .login-left-panel {
        flex: 0 0 100%;
        max-width: 100%;
        background: linear-gradient(135deg, #f5f8fd 0%, #e2eefb 100%);
    }
}

/* Sidebar App Shell Layout */
.db-layout-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

html:has(body.db-body), body.db-body {
    padding-bottom: 0 !important;
    background-color: var(--bg-secondary) !important;
    height: 100vh !important;
    overflow: hidden !important;
}

.db-sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 99;
    transition: background-color 0.3s, width 0.3s ease;
}

.db-brand {
    padding: 24px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.db-brand-dot {
    width: 10px;
    height: 10px;
    background-color: #002F6C;
    border-radius: 50%;
}

.db-nav-menu {
    list-style: none;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    overflow-y: auto;
}

.db-nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-sidebar);
    opacity: 0.6;
    letter-spacing: 1px;
    margin: 15px 0 5px 10px;
}

.db-nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-sidebar);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.db-nav-item a:hover {
    background-color: var(--nav-hover-bg);
    color: var(--nav-hover-text);
}

.db-nav-item.active a {
    background-color: var(--nav-active-bg);
    color: var(--nav-active-text);
    font-weight: 600;
}

.db-sidebar-footer {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.15);
}

.db-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.db-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--border-main);
}

.db-user-info {
    flex-grow: 1;
    min-width: 0;
}

.db-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sidebar) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-user-role {
    font-size: 11px;
    color: var(--text-sidebar);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.db-main {
    margin-left: 260px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    min-width: 0;
    transition: margin-left 0.3s ease;
}

/* Topbar Header */
.db-topbar {
    height: 70px;
    background-color: var(--bg-topbar);
    border-bottom: 1.5px solid var(--border-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 98;
    transition: background-color 0.3s;
}

.db-topbar .theme-toggle-btn {
    border: 1.5px solid var(--border-main) !important;
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

.db-topbar .theme-toggle-btn:hover {
    background-color: var(--bg-secondary) !important;
}

.db-topbar .db-topbar-icon {
    color: var(--text-primary) !important;
}

.db-search-mock {
    font-size: 14px;
    color: #a3b2c5;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.db-topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.db-topbar-icon {
    position: relative;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-topbar-icon);
}

.db-topbar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 8px;
    height: 8px;
    background-color: #d4351c;
    border-radius: 50%;
}

/* Main Dashboard Panel */
.db-content {
    padding: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex-grow: 1;
    overflow-y: auto;
}

/* Redesigned Cards */
.db-card {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-card);
    transition: background-color 0.3s;
}

.db-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Stats metrics grid */
.db-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.db-stat-card {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, background-color 0.3s;
}

.db-stat-card:hover {
    transform: translateY(-2px);
}

.db-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: var(--bg-stat-icon);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.db-stat-info {
    display: flex;
    flex-direction: column;
}

.db-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
}

.db-stat-label {
    font-size: 13px;
    color: var(--text-hint);
    margin-top: 2px;
}

/* Sidebar Toggle for Mobile & Desktop collapse */
.db-mobile-toggle {
    display: block; /* Always show the hamburger! */
    font-size: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    margin-right: 15px;
}

@media (max-width: 992px) {
    .db-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .db-sidebar.open {
        transform: translateX(0);
    }
    .db-main {
        margin-left: 0 !important;
    }
}

/* Admin Students Directory Management Styles */
.db-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1.5px solid #EBF3FC;
    padding-bottom: 12px;
}

.db-card-header h2 {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.btn-action {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-action:active {
    transform: scale(0.97);
}

.btn-edit {
    background-color: var(--btn-edit-bg);
    color: var(--btn-edit-text);
    margin-right: 6px;
}

.btn-edit:hover {
    filter: brightness(0.92);
}

.btn-delete {
    background-color: var(--btn-delete-bg);
    color: var(--btn-delete-text);
}

.btn-delete:hover {
    filter: brightness(0.92);
}

.btn-view {
    background-color: var(--btn-view-bg);
    color: var(--btn-view-text);
    margin-right: 6px;
}

.btn-view:hover {
    filter: brightness(0.92);
}

/* Modals Overlay */
.db-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-modal-overlay);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.db-modal {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 12px;
    width: 90%;
    max-width: 850px;
    box-shadow: var(--shadow-modal);
    position: relative;
    border: 1.5px solid var(--border-card);
}

.db-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #7f8c8d;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    line-height: 1;
}

.db-modal-close:hover {
    color: #d4351c;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.db-modal .gov-input, .db-modal .gov-select {
    max-width: 100%;
}

.modal-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1.5px solid #EBF3FC;
    padding-top: 20px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .modal-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.btn-view {
    background-color: #fafcfe;
    color: #002F6C;
    border: 1.5px solid #dbe4ef;
    margin-right: 6px;
}

.btn-view:hover {
    background-color: var(--bg-action-view-hover);
    border-color: var(--border-action-view-hover);
}

/* ====================================================================== */
/* THEME DROPDOWN TOGGLE                                                   */
/* ====================================================================== */
.theme-toggle-wrap {
    position: relative;
    display: inline-block;
}

.theme-toggle-btn {
    background: none;
    border: 1.5px solid var(--border-input);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-topbar-icon);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.theme-toggle-btn:hover {
    border-color: var(--text-heading);
    background-color: var(--bg-section);
}

.theme-dropdown {
    display: none;
    position: absolute;
    top: 44px;
    right: 0;
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: 10px;
    box-shadow: var(--shadow-modal);
    min-width: 170px;
    z-index: 200;
    overflow: hidden;
}

.theme-dropdown.open {
    display: block;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.theme-option:hover {
    background-color: var(--nav-hover-bg);
}

.theme-option.active {
    background-color: var(--nav-active-bg);
    color: var(--text-heading);
    font-weight: 600;
}

.theme-option-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

/* ====================================================================== */
/* EXAM ANTI-CHEAT & TEXT SELECTION BLOCK                                 */
/* ====================================================================== */
.exam-terminal-overlay,
.exam-terminal-overlay * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* ====================================================================== */
/* STRIPE ELEMENTS / CARD PAYMENTS STYLING                               */
/* ====================================================================== */
.payment-method-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-tab-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: 2px solid var(--border-input);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-card);
    transition: all 0.2s;
    color: var(--text-primary);
}

.payment-tab-btn.active {
    border-color: #002F6C;
    background-color: rgba(0, 47, 108, 0.04);
    color: #002F6C;
}

.stripe-card-form {
    border: 2px solid #002F6C;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 8px;
    margin-top: 15px;
}

.card-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.card-row-split {
    display: flex;
    gap: 15px;
}

.card-row-split > div {
    flex: 1;
}

.card-brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-hint);
}

.card-brand-icon {
    font-weight: bold;
    padding: 2px 6px;
    border: 1px solid var(--border-input);
    border-radius: 4px;
    font-size: 11px;
    background: var(--bg-secondary);
}

/* ====================================================================== */
/* VERIFICATION PORTAL STYLING                                           */
/* ====================================================================== */
.verify-search-container {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
}

.verify-badge-approved {
    background-color: #00703c;
    color: #ffffff;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 15px;
    display: inline-block;
}

.verify-badge-revoked {
    background-color: #d4351c;
    color: #ffffff;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 15px;
    display: inline-block;
}

/* ====================================================================== */
/* PREMIUM PRINT-FRIENDLY DIPLOMA STYLE                                   */
/* ====================================================================== */
.certificate-container {
    background: #ffffff;
    color: #1e1e1e;
    max-width: 900px;
    margin: 30px auto;
    padding: 60px;
    border: 20px double #bf9000;
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    position: relative;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-align: center;
}

.certificate-seal {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #f1c40f 0%, #d4ac0d 60%, #9a7d0a 100%);
    border-radius: 50%;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 3px dashed #ffffff;
}

.certificate-seal::after {
    content: "LIAB";
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 2px;
}

.certificate-title {
    font-size: 38px;
    color: #0d233a;
    font-family: 'Georgia', serif;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.certificate-subtitle {
    font-size: 15px;
    letter-spacing: 4px;
    color: #7f8c8d;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.certificate-recipient {
    font-size: 32px;
    color: #1a1a1a;
    font-weight: normal;
    margin: 25px 0;
    border-bottom: 2px solid #bf9000;
    display: inline-block;
    padding-bottom: 5px;
    min-width: 300px;
}

.certificate-faculty {
    font-size: 20px;
    font-weight: bold;
    color: #0d233a;
    margin: 15px 0;
}

.certificate-metadata {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
    font-size: 13px;
    color: #555555;
    border-top: 1px solid #eeeeee;
    padding-top: 20px;
}

.certificate-qr {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .gov-header, .db-sidebar, .db-topbar, .print-btn-section, .db-nav-menu, footer {
        display: none !important;
    }
    .certificate-container {
        margin: 0 auto !important;
        box-shadow: none !important;
        border: 20px double #bf9000 !important;
        page-break-inside: avoid !important;
    }
}

/* ====================================================================== */
/* RESPONSIVE DESIGN MEDIA QUERIES FOR TABLET AND MOBILE DEVICES          */
/* ====================================================================== */

/* Global Auto-responsive Tables on mobile */
@media (max-width: 768px) {
    .gov-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Header responsiveness */
@media (max-width: 768px) {
    .gov-header-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 12px 16px;
    }
    .gov-header-nav {
        gap: 15px;
        justify-content: center;
        width: 100%;
    }
    .gov-header-title {
        font-size: 16px;
    }
}

/* List group rows wrapping on mobile */
@media (max-width: 600px) {
    .gov-list-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0;
    }
    .gov-list-value, .gov-list-action {
        align-self: flex-start;
        text-align: left;
        width: 100%;
    }
    .gov-list-action a {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* Grid columns layout fallback */
@media (max-width: 768px) {
    .gov-grid-row {
        flex-direction: column;
    }
    .gov-grid-column-two-thirds, .gov-grid-column-one-third {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        padding: 0 15px;
        border-left: none !important;
        padding-left: 15px !important;
        margin-top: 15px;
    }
}

/* Dashboard general spacing adjustments */
@media (max-width: 992px) {
    .db-content {
        padding: 15px !important;
    }
    .db-topbar {
        padding: 0 15px !important;
    }
    .db-stat-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* Mobile-only branding display rule for split screens */
.mobile-logo-header {
    display: none;
}
@media (max-width: 960px) {
    .mobile-logo-header {
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }
    .mobile-logo-header img {
        max-height: 40px;
        object-fit: contain;
    }
}

/* ====================================================================== */
/* PORTAL CARD GRID & PORTAL CARDS (HOME PAGE REDESIGN)                   */
/* ====================================================================== */
.portal-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.portal-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border-top: 4px solid #002F6C;
}
.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 47, 108, 0.08);
    border-top-color: #cba135; /* Gold top border highlight on hover */
}
.portal-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.portal-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 16px;
}
.portal-card-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 8px 16px;
    background-color: #002F6C;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.portal-card-btn:hover {
    background-color: #cba135;
    color: #ffffff;
    text-decoration: none;
}

/* ====================================================================== */
/* LEGAL CONTENT LAYOUTS (PRIVACY & TERMS)                                */
/* ====================================================================== */
.legal-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    margin-bottom: 40px;
}
.legal-section-title {
    font-size: 20px;
    color: var(--text-heading);
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: 700;
}
.legal-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ====================================================================== */
/* CONTACT CARD SYSTEM                                                    */
/* ====================================================================== */
.contact-info-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 25px;
}
.contact-onboarding-card {
    background: var(--bg-card);
    border: 2px solid #002F6C;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-card);
}
.contact-onboarding-card .gov-input,
.contact-onboarding-card .gov-select,
.contact-onboarding-card .gov-textarea {
    max-width: 100% !important;
    width: 100% !important;
}

/* ====================================================================== */
/* PASSWORD TOGGLE VISIBILITY WRAPPERS & CONTROLS                        */
/* ====================================================================== */
.pw-wrapper {
    position: relative;
    width: 100%;
}
.pw-wrapper .gov-input {
    padding-right: 45px !important;
}
.pw-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    outline: none;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    transition: background-color 0.2s;
}
.pw-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}
[data-theme="dark"] .pw-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}
.pw-toggle-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
}

/* Inline validation error formatting */
.validation-error-msg {
    color: #d4351c;
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 5px;
    display: none;
    line-height: 1.4;
}

/* Collapsed Sidebar Rules (Desktop viewports, > 992px) */
@media (min-width: 993px) {
    .db-layout-container.collapsed .db-sidebar {
        width: 75px;
    }
    .db-layout-container.collapsed .db-main {
        margin-left: 75px;
    }
    .db-layout-container.collapsed .db-brand span {
        display: none;
    }
    .db-layout-container.collapsed .db-brand {
        padding: 15px 0;
        justify-content: center;
    }
    .db-layout-container.collapsed .db-nav-section-title {
        display: none;
    }
    .db-layout-container.collapsed .db-nav-item a {
        padding: 12px 0;
        justify-content: center;
    }
    .db-layout-container.collapsed .db-nav-item .nav-text {
        display: none;
    }
    .db-layout-container.collapsed .db-sidebar-footer {
        padding: 20px 0;
    }
    .db-layout-container.collapsed .db-user-profile {
        justify-content: center;
    }
    .db-layout-container.collapsed .db-user-info {
        display: none;
    }
    .db-layout-container.collapsed .db-sidebar-footer .db-user-avatar {
        margin: 0 auto;
    }
}

/* Stripe Modal Styles */
.stripe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-modal-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.stripe-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-modal);
    border: 1px solid var(--border-main);
    overflow: hidden;
    animation: stripeModalFadeIn 0.3s ease-out;
}

@keyframes stripeModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stripe-modal-header {
    background-color: #ffffff;
    padding: 16px 20px;
    border-bottom: 1.5px solid var(--border-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stripe-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #222222;
    font-weight: 700;
}

.stripe-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #777777;
    cursor: pointer;
    line-height: 1;
}

.stripe-modal-close:hover {
    color: #222222;
}

.stripe-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.stripe-modal-footer {
    padding: 16px 20px;
    border-top: 1.5px solid var(--border-main);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #fafbfc;
}

.stripe-btn-cancel {
    background-color: #ffffff;
    border: 1px solid var(--border-main);
    color: #222222;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.stripe-btn-cancel:hover {
    background-color: #f5f7fa;
}

.stripe-btn-submit {
    background-color: #222222;
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.stripe-btn-submit:hover {
    background-color: #333333;
}

/* Floating WhatsApp CTA Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

/* Tooltip on hover */
.whatsapp-float-btn .whatsapp-tooltip {
    visibility: hidden;
    width: 140px;
    background-color: #333333;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.whatsapp-float-btn .whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #333333;
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Pulse animation */
@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float-btn {
    animation: whatsappPulse 2s infinite;
}

/* Premium Table Scroll Wrapper */
.premium-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 290px);
    border: 1.5px solid var(--border-main);
    border-radius: 8px;
    margin-top: 15px;
    background-color: var(--bg-card);
    transition: border-color 0.3s;
}

/* Let's style the inner tables inside this wrapper to look premium */
.premium-table-wrapper .gov-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    border: none;
}

.premium-table-wrapper .gov-table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--bg-secondary);
    border-bottom: 1.5px solid var(--border-main);
    color: var(--text-heading);
    font-weight: 600;
}

.premium-table-wrapper .gov-table td {
    border-bottom: 1px solid var(--border-main);
    vertical-align: middle;
}

/* Hide scrollbars globally on dashboard content and tables */
.premium-table-wrapper::-webkit-scrollbar,
.db-content::-webkit-scrollbar,
.db-main::-webkit-scrollbar {
    display: none !important;
}

.premium-table-wrapper,
.db-content,
.db-main {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}

/* Premium Responsive Footer */
.gov-footer {
    background-color: var(--bg-card);
    border-top: 1.5px solid var(--border-main);
    margin-top: 60px;
    padding: 50px 0 30px 0;
    width: 100%;
    box-sizing: border-box;
}

.gov-footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 2fr 1fr 1fr;
    gap: 30px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .gov-footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
    }
}

@media (max-width: 576px) {
    .gov-footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}




