@charset "UTF-8";

/* =========================================================
   1. DESIGN TOKENS
========================================================= */
:root {
    /* Radius */
    --dash-radius: 22px;
    --dash-radius-lg: 28px;
    --dash-radius-md: 18px;
    --dash-radius-sm: 14px;
    --dash-radius-pill: 999px;

    /* Shared app surfaces */
    --dash-bg: #f4f7fa;
    --dash-surface: #ffffff;
    --dash-surface-2: #f8fafc;
    --dash-surface-3: #f1f5f9;
    --dash-elevated: #ffffff;
    --dash-elevated-2: #f8fafc;
    --dash-glass: rgba(255, 255, 255, 0.9);

    /* Borders */
    --dash-border: rgba(15, 23, 42, 0.08);
    --dash-border-strong: rgba(15, 23, 42, 0.12);
    --dash-info-border: rgba(15, 23, 42, 0.05);

    /* Text */
    --dash-text: #0f172a;
    --dash-muted: #64748b;
    --dash-link: #198754;
    --dash-link-hover: #157347;

    /* Shadows */
    --dash-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    --dash-shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.06);
    --dash-shadow-strong: 0 18px 42px rgba(15, 23, 42, 0.12);
    --dash-card-glow: rgba(7, 10, 19, 0.08);

    /* Hero */
    --dash-hero-grad-1: #0f172a;
    --dash-hero-grad-2: #198754;
    --dash-hero-grad-3: #20c997;

    /* Dashboard stat */
    --dash-stat-bg: rgba(255, 255, 255, 0.12);
    --dash-stat-border: rgba(255, 255, 255, 0.14);
    --dash-stat-icon-bg: rgba(255, 255, 255, 0.92);
    --dash-stat-icon-color: #0f172a;

    /* Module */
    --dash-module-bg: #ffffff;
    --dash-module-hover-border: rgba(25, 135, 84, 0.18);
    --dash-module-arrow-bg: #f8fafc;
    --dash-module-arrow-border: rgba(15, 23, 42, 0.06);
    --dash-module-arrow-color: #475569;

    /* Section badge */
    --dash-kicker-bg: rgba(25, 135, 84, 0.1);
    --dash-kicker-text: #198754;

    /* States */
    --dash-empty-bg: #fff7ed;
    --dash-empty-border: #fed7aa;
    --dash-empty-text: #9a3412;
    --dash-notice-bg: linear-gradient(135deg, #f8fafc, #ffffff);
    --dash-notice-border: rgba(15, 23, 42, 0.06);

    /* Brand / login */
    --brand-primary: #07a241;
    --brand-primary-dark: #045923;
    --brand-accent: #20c997;
    --brand-dark: #102a0f;
    --brand-muted: #688b64;

    --login-border: rgba(15, 23, 42, 0.08);
    --login-surface: rgba(255, 255, 255, 0.78);
    --login-panel-bg: rgba(255, 255, 255, 0.9);
    --login-shadow: 0 25px 60px rgba(15, 23, 42, 0.14);

    /* Shared brand accents */
    --success-500: #198754;
    --success-400: #20c997;
    --green-soft: #47a447;
    --green-soft-bg: #dff3df;

    /* PC / bootstrap alignment */
    --bs-body-bg: var(--dash-bg);
    --bs-body-bg-rgb: 244, 247, 250;
    --bs-body-color: var(--dash-text);
    --bs-border-color: var(--dash-border);
}

[data-pc-theme="dark"] {
    /* One consistent system-wide dark scale */
    --dash-bg: #0b1220;
    --dash-surface: #121a2a;
    --dash-surface-2: #182235;
    --dash-surface-3: #1f2b40;
    --dash-elevated: #162033;
    --dash-elevated-2: #1b2740;
    --dash-glass: rgba(18, 26, 42, 0.72);

    --dash-border: rgba(148, 163, 184, 0.16);
    --dash-border-strong: rgba(148, 163, 184, 0.24);
    --dash-info-border: rgba(148, 163, 184, 0.1);

    --dash-text: #e5eef7;
    --dash-muted: #94a3b8;
    --dash-link: #34d399;
    --dash-link-hover: #6ee7b7;

    --dash-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    --dash-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.28);
    --dash-shadow-strong: 0 18px 42px rgba(0, 0, 0, 0.45);
    --dash-card-glow: rgba(0, 0, 0, 0.28);

    --dash-hero-grad-1: #020617;
    --dash-hero-grad-2: #065f46;
    --dash-hero-grad-3: #0f766e;

    --dash-stat-bg: rgba(15, 23, 42, 0.34);
    --dash-stat-border: rgba(255, 255, 255, 0.1);
    --dash-stat-icon-bg: rgba(18, 26, 42, 0.78);
    --dash-stat-icon-color: #f8fafc;

    --dash-module-bg: var(--dash-surface);
    --dash-module-hover-border: rgba(52, 211, 153, 0.22);
    --dash-module-arrow-bg: var(--dash-surface-2);
    --dash-module-arrow-border: rgba(148, 163, 184, 0.14);
    --dash-module-arrow-color: #cbd5e1;

    --dash-kicker-bg: rgba(52, 211, 153, 0.12);
    --dash-kicker-text: #34d399;

    --dash-empty-bg: rgba(154, 52, 18, 0.14);
    --dash-empty-border: rgba(251, 146, 60, 0.22);
    --dash-empty-text: #fdba74;
    --dash-notice-bg: linear-gradient(135deg, var(--dash-surface-2), var(--dash-surface));
    --dash-notice-border: rgba(148, 163, 184, 0.1);

    --login-border: rgba(255, 255, 255, 0.08);
    --login-surface: rgba(18, 26, 42, 0.82);
    --login-panel-bg: rgba(18, 26, 42, 0.76);
    --login-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);

    --green-soft-bg: rgba(71, 164, 71, 0.16);

    --bs-body-bg: var(--dash-bg);
    --bs-body-bg-rgb: 11, 18, 32;
    --bs-body-color: var(--dash-text);
    --bs-border-color: var(--dash-border);
}

/* =========================================================
   2. GLOBAL / BODY / UTILITIES
========================================================= */
html,
body {
    min-height: 100vh;
}

body,
.pc-container,
.pcoded-main-container,
.main-content,
.content-wrapper {
    background: var(--dash-bg);
    color: var(--dash-text);
}

.cur-pointer {
    cursor: pointer;
}

.isDisabled {
    pointer-events: none;
    opacity: 0.55;
}

.img-white {
    filter: brightness(0) invert(1);
}

.text-truncate-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.btn-group-xs .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.text-muted {
    color: var(--dash-muted) !important;
}

/* Global fallback for system consistency */
[data-pc-theme="dark"] .bg-white,
[data-pc-theme="dark"] .card,
[data-pc-theme="dark"] .list-group-item,
[data-pc-theme="dark"] .input-group-text,
[data-pc-theme="dark"] .dropdown-menu,
[data-pc-theme="dark"] .modal-content,
[data-pc-theme="dark"] .offcanvas,
[data-pc-theme="dark"] .toast {
    background-color: var(--dash-surface);
    color: var(--dash-text);
    border-color: var(--dash-border);
}

[data-pc-theme="dark"] .bg-light,
[data-pc-theme="dark"] .bg-body,
[data-pc-theme="dark"] .bg-body-tertiary {
    background-color: var(--dash-surface-2) !important;
    color: var(--dash-text) !important;
}

/* =========================================================
   3. DASHBOARD SHELL
========================================================= */
.dashboard-shell {
    padding-bottom: 1.5rem;
}

/* =========================================================
   4. HERO CARD
========================================================= */
.hero-card {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: var(--dash-radius-lg);
    color: #fff;
    background:
            radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 24%),
            linear-gradient(
                    135deg,
                    var(--dash-hero-grad-1) 0%,
                    var(--dash-hero-grad-2) 55%,
                    var(--dash-hero-grad-3) 100%
            );
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

[data-pc-theme="dark"] .hero-card {
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
            radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.16), transparent 18%),
            radial-gradient(circle at 12% 80%, rgba(255, 255, 255, 0.1), transparent 22%);
}

.hero-card .card-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

/* Keep global notifications visible when a shared Smartie modal is active. */
.lobibox-notify-wrapper,
.lobibox-notify-wrapper-large {
    z-index: 10050 !important;
}

.hero-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.profile-avatar {
    width: 94px;
    height: 94px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials-modern {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.hero-avatar-icon {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    color: #fff;
    font-size: 2.35rem;
}

.profile-meta {
    min-width: 0;
    flex: 1 1 0;
}

.profile-meta h3 {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.profile-meta p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.hero-actions .btn {
    padding: 0.8rem 1rem;
    border-radius: 14px;
    font-weight: 600;
}

.hero-actions .btn-light {
    color: #0f172a;
}

.hero-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   5. DASHBOARD STATS
========================================================= */
.dashboard-stat {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--dash-stat-border);
    border-radius: 20px;
    background: var(--dash-stat-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.dashboard-stat .stat-icon {
    display: flex;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: var(--dash-stat-icon-bg);
    color: var(--dash-stat-icon-color);
    font-size: 1.1rem;
}

.dashboard-stat .stat-label {
    margin-bottom: 0.15rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.78);
}

.dashboard-stat .stat-value {
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
}

/* =========================================================
   6. SECTION CARDS / CONTENT BLOCKS
========================================================= */
.section-card {
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow-soft);
}

.section-card .card-header {
    padding: 1.15rem 1.25rem 0;
    border: 0;
    background: transparent;
}

.section-card .card-body {
    padding: 1.15rem 1.25rem 1.25rem;
}

.employment-wrap {
    width: 100%;
}

.employment-wrap .card-body > .row.border-bottom:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--dash-radius-pill);
    background: var(--dash-kicker-bg);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dash-kicker-text);
}

.section-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dash-text);
}

.section-subtitle {
    margin: 0.35rem 0 0;
    line-height: 1.65;
    color: var(--dash-muted);
}

/* =========================================================
   7. INFO STACK
========================================================= */
.info-stack {
    display: grid;
    gap: 0.85rem;
}

.info-item {
    display: flex;
    min-height: 100%;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--dash-info-border);
    border-radius: 18px;
    background: var(--dash-surface-2);
}

.info-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--success-500), var(--success-400));
    box-shadow: 0 10px 20px rgba(25, 135, 84, 0.18);
    font-size: 1rem;
    color: #fff;
}

.info-copy .label {
    margin-bottom: 0.22rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dash-muted);
}

.info-copy .value {
    line-height: 1.55;
    font-weight: 700;
    color: var(--dash-text);
    word-break: break-word;
}

.info-copy .value a {
    text-decoration: none;
    color: var(--dash-link);
}

.info-copy .value a:hover {
    text-decoration: underline;
    color: var(--dash-link-hover);
}

/* =========================================================
   8. MODULE GRID / MODULE CARDS
========================================================= */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.module-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--dash-border);
    border-radius: 22px;
    background: var(--dash-module-bg);
    box-shadow: 0 10px 26px var(--dash-card-glow);
    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            border-color 0.2s ease,
            background 0.2s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: var(--dash-module-hover-border);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

[data-pc-theme="dark"] .module-card:hover {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.module-card a {
    display: block;
    height: 100%;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
}

.module-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.module-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
    font-size: 1.35rem;
    color: #fff;
}

.module-arrow {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dash-module-arrow-border);
    border-radius: 12px;
    background: var(--dash-module-arrow-bg);
    color: var(--dash-module-arrow-color);
}

.module-name {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--dash-text);
}

.module-desc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.2;
    color: var(--dash-muted);
}

/* =========================================================
   9. MODULE ICON TONES
========================================================= */
.tone-emerald .module-icon { background: linear-gradient(135deg, #198754, #20c997); }
.tone-cyan .module-icon { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.tone-indigo .module-icon { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.tone-violet .module-icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.tone-blue .module-icon { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.tone-orange .module-icon { background: linear-gradient(135deg, #ea580c, #fb923c); }
.tone-pink .module-icon { background: linear-gradient(135deg, #db2777, #f472b6); }
.tone-green .module-icon { background: linear-gradient(135deg, #16a34a, #4ade80); }
.tone-sky .module-icon { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.tone-teal .module-icon { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.tone-amber .module-icon { background: linear-gradient(135deg, #d97706, #fbbf24); }
.tone-rose .module-icon { background: linear-gradient(135deg, #e11d48, #fb7185); }
.tone-slate .module-icon { background: linear-gradient(135deg, #334155, #64748b); }
.tone-fuchsia .module-icon { background: linear-gradient(135deg, #c026d3, #e879f9); }
.tone-lime .module-icon { background: linear-gradient(135deg, #65a30d, #a3e635); }
.tone-red .module-icon { background: linear-gradient(135deg, #dc2626, #f87171); }
.tone-gold .module-icon { background: linear-gradient(135deg, #ca8a04, #facc15); }

/* =========================================================
   10. STATES / EMPTY / NOTICE
========================================================= */
.empty-state {
    padding: 1.2rem 1rem;
    border: 1px solid var(--dash-empty-border);
    border-radius: 18px;
    background: var(--dash-empty-bg);
    color: var(--dash-empty-text);
}

.notice-box {
    padding: 1rem;
    border: 1px solid var(--dash-notice-border);
    border-radius: 18px;
    background: var(--dash-notice-bg);
}

.notice-box h6 {
    margin-bottom: 0.45rem;
    font-weight: 800;
    color: var(--dash-text);
}

.notice-box p {
    margin-bottom: 0;
    line-height: 1.65;
    color: var(--dash-muted);
}

/* =========================================================
   11. BUTTON EFFECTS
========================================================= */
.btn-effects {
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-effects:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.btn-effects:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.btn-effects::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: scale(1);
    background: rgba(255, 255, 255, 0.45);
    transition: opacity 0.6s, transform 0.6s;
}

.btn-effects:active::after {
    top: var(--y, 50%);
    left: var(--x, 50%);
    opacity: 1;
    transform: scale(18);
    transition: 0s;
}

.btn-effects:active {
    --x: 50%;
    --y: 50%;
}

/* =========================================================
   12. AUTH / LOGIN LAYOUT
========================================================= */
.auth-main {
    position: relative;
    z-index: 0;
    display: flex;
    min-height: 100vh;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: 32px 14px;
    background: url("../../images/bg/kiu_main.jpg") no-repeat center center;
    background-size: cover;
}

.auth-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
            linear-gradient(135deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.34)),
            linear-gradient(135deg, rgba(7, 162, 65, 0.16), rgba(4, 89, 35, 0.22));
}

.auth-main::after {
    content: "";
    position: absolute;
    top: -100px;
    left: -90px;
    z-index: 0;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(7, 162, 65, 0.16);
    filter: blur(18px);
    pointer-events: none;
}

.auth-main .auth-bg-orb {
    position: absolute;
    right: -120px;
    bottom: -120px;
    z-index: 0;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(74, 193, 66, 0.1);
    filter: blur(20px);
    pointer-events: none;
}

html.auth-page-root,
body.auth-page {
    width: 100%;
    min-height: 100%;
    height: 100%;
    overflow: hidden;
    background: #003b1f;
}

body.auth-page .auth-main {
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    padding: clamp(12px, 2.4vh, 24px) 14px;
}

body.auth-page .auth-main .auth-wrapper,
body.auth-page .auth-main .auth-wrapper.v4,
body.auth-page .auth-main .auth-wrapper .auth-form {
    min-height: 0;
    height: 100%;
}

body.auth-page .auth-main .auth-wrapper .auth-form {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.auth-page .login-card {
    max-height: 100%;
    margin-bottom: 0;
}

.auth-wrapper,
.auth-form,
.login-card,
.auth-main > *:not(.auth-bg-orb) {
    position: relative;
    z-index: 1;
}

.auth-wrapper.v4 {
    width: 100%;
}

.auth-form {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.login-card {
    overflow: hidden;
    border: 1px solid var(--login-border);
    border-radius: 28px;
    background: var(--login-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--login-shadow);
}

.login-showcase {
    position: relative;
    z-index: 0;
    min-height: 100%;
    padding: 3rem 2.5rem;
    isolation: isolate;
    background: linear-gradient(145deg, rgba(7, 162, 65, 0.94), rgba(1, 67, 1, 0.9));
    color: #fff;
}

.login-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
            radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
            radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 22%);
}

.login-showcase h1 {
    margin: 1.1rem 0 0.9rem;
    font-size: clamp(1.7rem, 2.2vw, 2.7rem);
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
}

.login-showcase p {
    max-width: 460px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

.login-feature-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.login-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.login-feature-item i {
    margin-top: 0.15rem;
    font-size: 1.05rem;
    color: #fff;
}

.login-feature-item span {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
}

.login-panel {
    padding: 2.2rem 2rem;
    background: var(--login-panel-bg);
}

.brand-wrap {
    margin-bottom: 1.35rem;
    text-align: center;
}

.brand-logo {
    width: auto;
    height: 72px;
    object-fit: contain;
}

.login-title {
    margin-bottom: 0.35rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.login-subtitle {
    margin-bottom: 0.85rem;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.5;
    color: var(--brand-muted);
}

.login-input-group {
    margin-bottom: 1rem;
}

.login-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
}

.input-icon-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1rem;
    color: #2b2b2b;
}

.modern-form-control {
    height: 46px;
    padding-right: 44px;
    padding-left: 42px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: var(--dash-surface);
    box-shadow: none;
    font-size: 0.97rem;
    color: var(--dash-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.modern-form-control:focus {
    border-color: rgba(7, 162, 65, 0.45);
    box-shadow: 0 0 0 4px rgba(1, 67, 1, 0.15);
    outline: 0;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    transition: background 0.2s ease, color 0.2s ease;
}

.password-toggle-btn:hover {
    background: var(--dash-surface-3);
    color: var(--brand-primary);
}

.login-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.6rem;
}

.login-links a {
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.login-btn {
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    box-shadow: 0 4px 15px rgba(7, 162, 65, 0.22);
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(7, 162, 65, 0.28);
}

.login-btn:disabled {
    opacity: 0.9;
    transform: none;
    box-shadow: 0 4px 15px rgba(7, 162, 65, 0.18);
}

.login-footer-note {
    margin-top: 0.4rem;
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.4;
    color: var(--brand-muted);
}

.version-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--dash-radius-pill);
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
}

/* =========================================================
   13. PAGE LOADER
========================================================= */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 3px;
    background: transparent;
    pointer-events: none;
}

#page-loader .page-loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #07a241, #28a745, #20c997);
    box-shadow: 0 0 6px rgba(25, 135, 84, 0.6);
    transition: width 0.35s ease, opacity 0.4s ease;
}

/* =========================================================
   14. SETTINGS SIDEBAR
========================================================= */
.settings-nav .list-group-item {
    border-left: 3px solid transparent;
    background: transparent;
    font-size: 14px;
    color: var(--dash-text);
    transition: all 0.2s ease;
}

.settings-nav .list-group-item:hover {
    border-left-color: #07a241;
    background: var(--dash-surface-2);
}

.settings-nav .list-group-item.active {
    background: #07a241;
    font-weight: 600;
    color: #fff;
}

.settings-nav .list-group-item.active i {
    color: #fff !important;
}

/* =========================================================
   15. BADGES / PERMISSIONS / ROLE CARDS
========================================================= */
.permission-badge {
    display: inline-block;
    margin: 3px;
    padding: 1px 10px;
    border: 1px solid #07a241;
    border-radius: 12px;
    background: #e8f5e9;
    font-size: 11px;
    color: #075c28;
}

.perm-no {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: var(--dash-surface-2);
    font-size: 12px;
    font-weight: 700;
    color: var(--dash-text);
}

.role-card,
.perm-card,
.role-box {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: var(--dash-surface);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.role-card:hover,
.perm-card:hover {
    background: var(--dash-surface-2);
}

.role-card.is-active {
    border-color: rgba(25, 135, 84, 0.35);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}

.staff-meta {
    padding: 12px;
    border: 1px dashed var(--dash-border-strong);
    border-radius: 10px;
    background: var(--dash-surface-2);
}

.role-perm-badges.is-updating {
    opacity: 0.35;
    transition: opacity 0.15s ease;
}

.role-perm-badges.flash {
    animation: permFlash 0.6s ease;
}

@keyframes permFlash {
    0% { transform: scale(1); }
    35% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

/* =========================================================
   16. MODERN MODULE HERO / CARDS / TILES
========================================================= */
.module-hero {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: var(--dash-radius-lg);
    background: linear-gradient(135deg, var(--dash-hero-grad-1), var(--dash-hero-grad-2), var(--dash-hero-grad-3));
    box-shadow: var(--dash-shadow-strong);
    color: #fff;
}

.module-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
            radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.16), transparent 18%),
            radial-gradient(circle at 12% 80%, rgba(255, 255, 255, 0.1), transparent 22%);
}

.module-hero > .d-flex {
    position: relative;
    z-index: 1;
}

.module-hero .hero-icon {
    display: flex;
    width: 94px;
    height: 94px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    font-size: 2.35rem;
}

.module-hero h4 {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.module-hero .text-white-75 {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86) !important;
}

.module-hero .btn {
    padding: 0.8rem 1rem;
    border-radius: 14px;
    font-weight: 600;
}

.card-modern {
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow-soft);
}

.modern-table,
.module-scope .card-modern .table {
    width: 100%;
}

.modern-table th,
.modern-table td,
.module-scope .card-modern .table th,
.module-scope .card-modern .table td,
.module-scope .card-modern table.dataTable > thead > tr > th,
.module-scope .card-modern table.dataTable > tbody > tr > td {
    min-width: 0;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.modern-table .btn,
.modern-table .badge,
.modern-table .btn-group,
.module-scope .card-modern .table .btn,
.module-scope .card-modern .table .badge,
.module-scope .card-modern .table .btn-group {
    white-space: nowrap;
}

.modern-table .table-actions,
.modern-table .actions-cell,
.module-scope .card-modern .table .table-actions,
.module-scope .card-modern .table .actions-cell {
    max-width: none;
    white-space: nowrap;
}

.modern-table a:not(.btn),
.module-scope .card-modern .table a:not(.btn) {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.action-tile {
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 16px;
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    background: var(--dash-surface);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.action-tile:hover {
    transform: translateY(-4px);
    background: var(--dash-surface-2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.action-icon {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--dash-surface-2);
    font-size: 20px;
}

.action-title {
    font-weight: 700;
    color: var(--dash-text);
}

.action-desc {
    font-size: 13px;
    color: var(--dash-muted);
}

.profile-strip img {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
}

.module-tile.card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--dash-surface) 0%, var(--dash-surface-2) 100%);
    box-shadow:
            0 10px 28px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.module-tile.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #dee2e6, #f8f9fa);
}

.module-tile.card:hover {
    transform: translateY(-6px);
    box-shadow:
            0 20px 45px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 1);
}

.module-tile.card:hover::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.06), transparent 70%);
}

.module-tile .module-icon {
    width: auto;
    height: auto;
    margin-bottom: 6px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 52px;
    line-height: 1;
    color: #495057;
}

.module-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--dash-text);
}

/* =========================================================
   17. FORMS
========================================================= */
.form-group.row.pb-3 {
    padding-bottom: 14px !important;
}

.form-control,
.form-select {
    border-radius: 10px;
    background: var(--dash-surface);
    color: var(--dash-text);
}

.form-control:focus,
.form-select:focus {
    border-color: #ced4da;
    box-shadow: none;
}

.form-control.is-valid,
.form-control.is-invalid,
.form-select.is-valid,
.form-select.is-invalid {
    border-radius: 10px;
}

.input-group {
    overflow: hidden;
    border-radius: 10px;
}

.input-group > .form-control,
.input-group > .form-select,
.input-group-text {
    border-radius: 0;
}

.btn-round {
    border-radius: 999px;
}

.btn-soft {
    border: 1px solid var(--dash-border);
    background: var(--dash-surface-2);
    color: var(--dash-text);
}

.divider-soft {
    margin: 10px 0 14px;
    border-top: 1px dashed var(--dash-border);
}

/* =========================================================
   18. PROFILE PAGE
========================================================= */
.profile-hero {
    overflow: hidden;
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(18, 38, 63, 0.04);
}

.profile-hero-top {
    padding: 18px;
    background: linear-gradient(135deg, #47a447, #47a447cc);
    color: #fff;
}

.profile-hero-bottom {
    padding: 14px 18px;
    background: var(--dash-surface);
}

.avatar-wrap {
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.change-profile .profile-dp {
    display: flex;
    width: 100px;
    height: 100px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
}

.change-profile .profile-dp img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
}

.profile-nav-list {
    overflow: hidden;
    border: 1px solid var(--dash-border);
    border-radius: 14px;
}

.profile-nav-list .list-group-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--dash-border);
    border-left: 3px solid transparent;
    background: transparent;
    font-size: 14px;
    color: var(--dash-text);
}

.profile-nav-list .list-group-item i {
    width: 24px;
    text-align: center;
    font-size: 18px;
    color: var(--green-soft);
}

.profile-nav-list .list-group-item:hover {
    cursor: pointer;
    border-left-color: var(--green-soft);
    background: var(--dash-surface-2);
}

.profile-nav-list .list-group-item.active {
    border-left-color: var(--green-soft);
    background: var(--green-soft);
    font-weight: 700;
    color: #fff;
}

.profile-nav-list .list-group-item.active i {
    color: #fff;
}

.profile-photo-alert {
    padding: 16px 18px;
    border: 1px solid rgba(71, 164, 71, 0.22);
    border-radius: 18px;
    background: var(--green-soft-bg);
}

.profile-photo-wrap {
    flex-shrink: 0;
}

.profile-photo-circle {
    display: flex;
    width: 78px;
    height: 78px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: var(--green-soft);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-initials {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.profile-photo-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--dash-text);
}

.profile-camera-stage {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #f8fafc;
}

.profile-camera-preview,
.profile-camera-stage .camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-camera-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: var(--green-soft-bg);
}

.profile-camera-placeholder .profile-photo-initials {
    display: flex;
    width: 96px;
    height: 96px;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: var(--green-soft);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.camera-support-notice {
    color: #64748b;
    font-size: .8125rem;
    line-height: 1.45;
}

/* =========================================================
   19. CONSOLIDATED DARK MODE OVERRIDES
========================================================= */
[data-pc-theme="dark"] .settings-nav .list-group-item,
[data-pc-theme="dark"] .profile-nav-list .list-group-item {
    color: rgba(255, 255, 255, 0.82);
}

[data-pc-theme="dark"] .settings-nav .list-group-item:hover,
[data-pc-theme="dark"] .profile-nav-list .list-group-item:hover {
    background: var(--dash-surface-2);
}

[data-pc-theme="dark"] .settings-nav .list-group-item.active,
[data-pc-theme="dark"] .profile-nav-list .list-group-item.active {
    background: #07a241;
    color: #fff;
}

[data-pc-theme="dark"] #page-loader .page-loader-bar {
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.75);
}

[data-pc-theme="dark"] .permission-badge {
    border-color: rgba(25, 135, 84, 0.65);
    background: rgba(25, 135, 84, 0.14);
    color: rgba(255, 255, 255, 0.86);
}

[data-pc-theme="dark"] .role-card,
[data-pc-theme="dark"] .perm-card,
[data-pc-theme="dark"] .role-box,
[data-pc-theme="dark"] .card-modern,
[data-pc-theme="dark"] .profile-hero,
[data-pc-theme="dark"] .profile-hero-bottom,
[data-pc-theme="dark"] .action-tile,
[data-pc-theme="dark"] .auth-form .card {
    border-color: var(--dash-border);
    background: var(--dash-surface);
    color: var(--dash-text);
}

[data-pc-theme="dark"] .role-card:hover,
[data-pc-theme="dark"] .perm-card:hover,
[data-pc-theme="dark"] .action-tile:hover {
    background: var(--dash-surface-2);
}

[data-pc-theme="dark"] .role-card.is-active {
    border-color: rgba(25, 135, 84, 0.55);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.18);
}

[data-pc-theme="dark"] .perm-no,
[data-pc-theme="dark"] .staff-meta,
[data-pc-theme="dark"] .btn-soft,
[data-pc-theme="dark"] .action-icon {
    border-color: var(--dash-border);
    background: var(--dash-surface-2);
    color: var(--dash-text);
}

[data-pc-theme="dark"] .isDisabled {
    opacity: 0.45;
}

[data-pc-theme="dark"] .role-perm-badges.is-updating {
    opacity: 0.3;
}

[data-pc-theme="dark"] .module-hero {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

[data-pc-theme="dark"] .module-hero::after {
    background: rgba(255, 255, 255, 0.08);
}

[data-pc-theme="dark"] .module-hero .hero-icon {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-pc-theme="dark"] .card-modern,
[data-pc-theme="dark"] .profile-hero {
    box-shadow: var(--dash-shadow-strong);
}

[data-pc-theme="dark"] .action-tile:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

[data-pc-theme="dark"] .action-title,
[data-pc-theme="dark"] .module-label {
    color: rgba(255, 255, 255, 0.92);
}

[data-pc-theme="dark"] .action-desc,
[data-pc-theme="dark"] .profile-photo-text {
    color: rgba(255, 255, 255, 0.72);
}

[data-pc-theme="dark"] .module-tile.card {
    border-color: var(--dash-border);
    background: linear-gradient(180deg, var(--dash-surface) 0%, var(--dash-surface-2) 100%);
    box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-pc-theme="dark"] .module-tile.card::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

[data-pc-theme="dark"] .module-tile.card:hover {
    box-shadow:
            0 22px 50px rgba(0, 0, 0, 0.62),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-pc-theme="dark"] .module-tile.card:hover::after {
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 70%);
}

[data-pc-theme="dark"] .module-tile .module-icon {
    color: rgba(255, 255, 255, 0.85);
}

[data-pc-theme="dark"] .profile-nav-list {
    border-color: var(--dash-border);
}

[data-pc-theme="dark"] .profile-nav-list .list-group-item {
    border-bottom-color: var(--dash-border);
}

[data-pc-theme="dark"] .profile-photo-alert {
    border-color: rgba(25, 135, 84, 0.25);
    background: rgba(25, 135, 84, 0.14);
}

[data-pc-theme="dark"] .auth-main::before {
    background:
            linear-gradient(135deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.5)),
            linear-gradient(135deg, rgba(7, 162, 65, 0.12), rgba(4, 89, 35, 0.16));
}

[data-pc-theme="dark"] .login-card {
    border-color: var(--login-border);
    background: var(--login-surface);
    box-shadow: var(--login-shadow);
}

[data-pc-theme="dark"] .login-panel {
    background: var(--login-panel-bg);
}

[data-pc-theme="dark"] .login-title {
    color: #f8fafc;
}

[data-pc-theme="dark"] .login-subtitle,
[data-pc-theme="dark"] .login-footer-note {
    color: rgba(226, 232, 240, 0.72);
}

[data-pc-theme="dark"] .login-label {
    color: rgba(226, 232, 240, 0.88);
}

[data-pc-theme="dark"] .input-icon {
    color: rgba(226, 232, 240, 0.65);
}

[data-pc-theme="dark"] .modern-form-control {
    border-color: rgba(148, 163, 184, 0.18);
    background: var(--dash-surface-2);
    color: #f8fafc;
}

[data-pc-theme="dark"] .modern-form-control::placeholder {
    color: rgba(226, 232, 240, 0.45);
}

[data-pc-theme="dark"] .modern-form-control:focus {
    border-color: rgba(52, 211, 153, 0.35);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

[data-pc-theme="dark"] .password-toggle-btn {
    color: rgba(226, 232, 240, 0.7);
}

[data-pc-theme="dark"] .password-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #34d399;
}

[data-pc-theme="dark"] .login-links a {
    color: #86efac;
}

[data-pc-theme="dark"] .login-links a:hover {
    color: #bbf7d0;
}

[data-pc-theme="dark"] .login-btn {
    background: linear-gradient(135deg, #16a34a, #065f46);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

[data-pc-theme="light"] .auth-main::before {
    background: rgba(0, 0, 0, 0.55);
}

[data-pc-theme="light"] .auth-form .card {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
}

/* =========================================================
   20. RESPONSIVE
========================================================= */
@media (min-width: 992px) {
    .hero-card .card-body {
        padding: 2rem;
    }

    .login-panel {
        padding: 3rem 2.7rem;
    }

    .sticky-left {
        position: sticky;
        top: 92px;
    }
}

@media (max-width: 991.98px) {
    .auth-main {
        padding: 24px 12px;
    }

    .login-showcase {
        padding: 2.2rem 1.6rem;
    }

    .login-panel {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-card .card-body {
        padding: 1.2rem;
    }

    .profile-avatar {
        width: 78px;
        height: 78px;
        border-radius: 20px;
    }

    .module-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }

    .auth-main {
        padding: 18px 10px;
    }

    .auth-main::after {
        top: -70px;
        left: -60px;
        width: 240px;
        height: 240px;
    }

    .auth-main .auth-bg-orb {
        right: -90px;
        bottom: -90px;
        width: 260px;
        height: 260px;
    }

    .login-card {
        border-radius: 22px;
    }

    .login-showcase {
        padding: 1.8rem 1.25rem;
    }

    .login-panel {
        padding: 1.5rem 1.1rem;
    }

    .brand-logo {
        height: 62px;
    }

    .login-title {
        font-size: 1.05rem;
    }

    .login-subtitle {
        font-size: 0.72rem;
    }

    .login-showcase h1 {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    .login-showcase p,
    .login-feature-item span {
        font-size: 0.92rem;
    }

    .login-links {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .profile-photo-circle {
        width: 64px;
        height: 64px;
    }

    .profile-photo-initials {
        font-size: 22px;
    }
}

.min-w-0 {
    min-width: 0;
}

.role-card .btn-group-sm > .btn {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.role-card .fw-bold {
    font-size: 0.98rem;
}

@media (max-width: 767.98px) {
    .role-card {
        padding: 12px;
    }

    .role-card .btn-group {
        width: 100%;
    }

    .role-card .btn-group .btn {
        flex: 1 1 auto;
    }
}

/* =========================================================
   ACCESS CONTROL PAGE - DARK MODE FIX
========================================================= */
[data-pc-theme="dark"] .card {
    background: var(--dash-surface) !important;
    border-color: var(--dash-border) !important;
    color: var(--dash-text);
}

[data-pc-theme="dark"] .card-header,
[data-pc-theme="dark"] .card-body,
[data-pc-theme="dark"] .card-footer {
    background: var(--dash-surface) !important;
    color: var(--dash-text);
    border-color: var(--dash-border) !important;
}

[data-pc-theme="dark"] .accordion,
[data-pc-theme="dark"] .accordion-item {
    background: var(--dash-surface) !important;
    border-color: var(--dash-border) !important;
    color: var(--dash-text);
}

[data-pc-theme="dark"] .accordion-header {
    background: transparent !important;
}

[data-pc-theme="dark"] .accordion-button {
    background: var(--dash-surface-2) !important;
    color: var(--dash-text) !important;
    box-shadow: none !important;
    border-color: var(--dash-border) !important;
}

[data-pc-theme="dark"] .accordion-button:not(.collapsed) {
    background: var(--dash-surface-3) !important;
    color: var(--dash-text) !important;
    box-shadow: none !important;
}

[data-pc-theme="dark"] .accordion-button::after {
    filter: brightness(0) invert(0.9);
}

[data-pc-theme="dark"] .accordion-body {
    background: var(--dash-surface) !important;
    color: var(--dash-text);
}

[data-pc-theme="dark"] .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.18);
    color: #8ec5ff;
}

[data-pc-theme="dark"] .btn-outline-primary:hover {
    background: rgba(70, 128, 255, 0.14);
    border-color: rgba(70, 128, 255, 0.35);
    color: #cfe5ff;
}

[data-pc-theme="dark"] #PermissionEditorArea {
    padding: 1rem;
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    background: var(--dash-surface-2);
}

[data-pc-theme="dark"] #permissionsContainer {
    background: transparent;
}

[data-pc-theme="dark"] .no-perms,
[data-pc-theme="dark"] small.text-muted,
[data-pc-theme="dark"] .text-muted {
    color: var(--dash-muted) !important;
}

.accordion-item {
    overflow: hidden;
    border-radius: 14px;
}

.accordion-button {
    font-weight: 700;
}

.accordion-body {
    padding-top: 1rem;
}

:root {
    --app-sidebar-width: 288px;
}

@media (min-width: 1025px) {
    .pc-sidebar:not(.pc-sidebar-hide),
    .pc-sidebar:not(.pc-sidebar-hide) .navbar-wrapper {
        width: var(--app-sidebar-width) !important;
    }

    .pc-sidebar.pc-sidebar-hide,
    .pc-sidebar.pc-sidebar-hide .navbar-wrapper {
        width: 0 !important;
        overflow: hidden !important;
    }

    .pc-sidebar ~ .pc-header {
        left: var(--app-sidebar-width) !important;
    }

    .pc-sidebar ~ .pc-container,
    .pc-sidebar ~ .pc-footer {
        margin-left: var(--app-sidebar-width) !important;
    }

    .navbar-overlay .pc-sidebar:not(.pc-over-menu-active) {
        left: calc(var(--app-sidebar-width) * -1) !important;
    }

    .pc-sidebar.pc-sidebar-hide ~ .pc-header {
        left: 0 !important;
    }

    .pc-sidebar.pc-sidebar-hide ~ .pc-container,
    .pc-sidebar.pc-sidebar-hide ~ .pc-footer {
        margin-left: 0 !important;
    }
}

@media (max-width: 1024px) {
    .pc-sidebar,
    .pc-sidebar .navbar-wrapper {
        width: var(--app-sidebar-width) !important;
    }

    .pc-sidebar {
        left: calc(var(--app-sidebar-width) * -1) !important;
    }

    .pc-sidebar.mob-sidebar-active {
        left: 0 !important;
    }
}

/* Shared Smartie confirmation modal */
#smartieConfirmationModal .modal-content {
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
}

#smartieConfirmationModal .modal-body {
    padding: 1.5rem;
}

.smartie-confirmation-dialog {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.smartie-confirmation-icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 8px;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
    font-size: 1.35rem;
}

#smartieConfirmationModal .modal-header.bg-danger + .modal-body .smartie-confirmation-icon {
    color: var(--bs-danger);
    background: rgba(var(--bs-danger-rgb), 0.1);
}

.smartie-confirmation-message {
    margin: 0;
    color: var(--bs-body-color);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    white-space: pre-line;
}

.smartie-confirmation-help {
    margin: 0.3rem 0 0;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    line-height: 1.45;
}

#smartieConfirmationModal .modal-footer {
    gap: 0.75rem;
    padding: 1rem 1.5rem;
}

#smartieConfirmationModal .modal-footer small:empty {
    display: none;
}
