@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f7f8fb;
    --bg-accent: #eaf3ff;
    --card: #ffffff;
    --text: #1f2933;
    --muted: #6b7280;
    --accent: #2d89ef;
    --accent-dark: #1f6fd0;
    --border: #e5e7eb;
    --table-head-bg: #eaf4ff;
    --table-head-text: #1d4f91;
    --table-head-border: #cfe1fb;
    --shadow: 0 14px 34px rgba(31, 41, 51, 0.08);
    --sidebar-start: #0f9af0;
    --sidebar-end: #2674ff;
    --surface-soft: #f5f9ff;
    --surface-accent: #eef6ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(45, 137, 239, 0.12), transparent 32%),
        radial-gradient(circle at bottom left, rgba(124, 77, 255, 0.08), transparent 28%),
        linear-gradient(180deg, var(--bg-accent) 0%, var(--bg) 42%, #f8fbff 100%);
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.card {
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(229, 231, 235, 0.92);
}

input,
button {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

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

.login-page-shell {
    background:
        radial-gradient(circle at top left, rgba(45, 137, 239, 0.18), transparent 36%),
        radial-gradient(circle at bottom right, rgba(124, 77, 255, 0.12), transparent 32%),
        linear-gradient(135deg, #f3f8ff 0%, #f8fbff 56%, #eef4fb 100%);
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.login-panel {
    width: min(460px, 100%);
    padding: 34px 32px 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #2674ff);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.brand-kicker {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 12px;
    color: var(--muted);
}

.login-title {
    margin: 0;
    font-size: 30px;
    letter-spacing: 0.4px;
}

.login-subtitle {
    margin: 0 0 18px;
    color: var(--muted);
}

.login-tip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f4f8fe;
    border: 1px solid rgba(45, 137, 239, 0.14);
    color: #334155;
}

.login-tip span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.login-alert {
    margin-bottom: 16px;
}

.login-form .form-group:last-of-type {
    margin-bottom: 18px;
}

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

.login-page-shell label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.login-page-shell input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
}

.login-page-shell input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 137, 239, 0.15);
}

.login-page-shell .btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #2674ff);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.4px;
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-page-shell .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-dark), #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.28);
}

.login-page-shell .alert {
    background: #fdecea;
    color: #b42318;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid rgba(180, 35, 24, 0.2);
}

.login-alert--success {
    background: #ecfdf3;
    color: #166534;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(22, 101, 52, 0.18);
}

.soft-metric {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f7fbff, #f3f8fe);
    border: 1px solid rgba(45, 137, 239, 0.1);
}

.soft-metric small {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

.soft-metric strong {
    font-size: 16px;
    color: var(--text);
}

.placeholder-panel {
    border-radius: 20px;
    border: 1px dashed rgba(31, 75, 122, 0.24);
}

.sia-app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sia-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(229, 231, 235, 0.92);
    backdrop-filter: blur(10px);
}

.sia-topbar__brand,
.sia-topbar__user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sia-topbar__logo {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent), #2674ff);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.sia-topbar__eyebrow,
.sia-section__kicker,
.sia-hero__kicker,
.sia-sidebar__kicker {
    margin: 0 0 4px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 700;
}

.sia-topbar__title {
    margin: 0;
    font-size: 20px;
}

.sia-topbar__identity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.sia-topbar__identity span {
    color: var(--muted);
    font-size: 13px;
}

.sia-topbar__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #1d4f91;
    background: #f5f9ff;
    border: 1px solid rgba(45, 137, 239, 0.14);
    font-weight: 700;
}

.sia-main-shell {
    width: min(1300px, calc(100% - 32px));
    margin: 28px auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    flex: 1;
}

.sia-sidebar__card,
.sia-hero,
.sia-section,
.sia-info-card {
    padding: 22px;
}

.sia-sidebar__nav {
    display: grid;
    gap: 10px;
}

.sia-sidebar__link {
    display: block;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, #fbfdff, #f4f9ff);
    border: 1px solid rgba(45, 137, 239, 0.1);
}

.sia-sidebar__link strong,
.sia-sidebar__link span {
    display: block;
}

.sia-sidebar__link strong {
    margin-bottom: 4px;
    font-size: 14px;
}

.sia-sidebar__link span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.sia-sidebar__link.is-active {
    border-color: rgba(45, 137, 239, 0.24);
    box-shadow: 0 14px 24px rgba(31, 41, 51, 0.08);
}

.sia-content {
    display: grid;
    gap: 20px;
}

.sia-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 280px;
    gap: 20px;
    align-items: start;
}

.sia-hero h2,
.sia-section h3 {
    margin: 0 0 10px;
}

.sia-hero p,
.sia-module-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.sia-hero__stats {
    display: grid;
    gap: 12px;
}

.sia-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.sia-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 999px;
    background: #f4f8fe;
    border: 1px solid rgba(45, 137, 239, 0.14);
    font-size: 13px;
    font-weight: 700;
    color: #24496d;
}

.sia-metric-grid,
.sia-module-grid,
.sia-profile-grid {
    display: grid;
    gap: 16px;
}

.sia-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sia-info-card {
    display: grid;
    gap: 8px;
}

.sia-info-card small,
.sia-profile-item small {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sia-info-card strong,
.sia-profile-item strong {
    font-size: 18px;
}

.sia-info-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.sia-section__heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

.sia-section__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.sia-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sia-module-card {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff, #f3f8fe);
    border: 1px solid rgba(45, 137, 239, 0.12);
    display: grid;
    gap: 12px;
}

.sia-module-card__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.sia-module-card__head strong {
    font-size: 16px;
}

.sia-module-card__head span {
    color: #1d4f91;
    font-size: 12px;
    font-weight: 700;
}

.sia-module-card a {
    color: #1d4f91;
    text-decoration: none;
    font-weight: 700;
}

.sia-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sia-profile-item {
    padding: 16px;
    border-radius: 16px;
    background: #fbfdff;
    border: 1px solid rgba(229, 231, 235, 0.92);
    display: grid;
    gap: 8px;
}

.sia-footer {
    margin-top: auto;
    padding: 18px 28px 28px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-size: 13px;
}

.sia-footer strong,
.sia-footer span {
    display: block;
}

.sia-footer__meta {
    text-align: right;
}

@media (max-width: 1100px) {
    .sia-main-shell,
    .sia-hero,
    .sia-metric-grid,
    .sia-module-grid,
    .sia-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sia-topbar,
    .sia-topbar__user,
    .sia-section__heading,
    .sia-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .sia-topbar__identity {
        align-items: flex-start;
    }

    .sia-footer__meta {
        text-align: left;
    }
}

/* AdminLTE-inspired refresh */
body {
    font-family: "Manrope", "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #2c3b47;
    background:
        linear-gradient(180deg, rgba(234, 243, 255, 0.72), rgba(247, 248, 251, 0.96)),
        var(--bg);
}

.container-fluid {
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
}

.card {
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(31, 41, 51, 0.07);
    border: 1px solid rgba(222, 226, 230, 0.92);
}

.login-page-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(45, 137, 239, 0.14), transparent 30%),
        linear-gradient(180deg, #eef5ff 0%, #f6f8fb 52%, #eef3f9 100%);
}

.portal-shell {
    padding: 28px 0;
}

.portal-login-layout {
    min-height: calc(100vh - 56px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 380px;
    gap: 24px;
    align-items: stretch;
}

.portal-hero {
    padding: 2rem 2.25rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96)),
        #fff;
}

.portal-links {
    background: #fff;
    overflow: hidden;
}

.portal-links__inner {
    padding: 1.75rem;
}

.portal-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.875rem;
    border-radius: 999px;
    background: rgba(45, 137, 239, 0.12);
    color: #1d4f91;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.portal-title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    color: #22313f;
}

.portal-subtitle {
    margin: 0 0 1.25rem;
    color: #5f6f7d;
    max-width: 62ch;
    font-size: 0.98rem;
    line-height: 1.75;
}

.login-tip {
    padding: 1rem 1.125rem;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #f4f8fe, #eff5fd);
    border: 1px solid rgba(45, 137, 239, 0.12);
    margin-bottom: 1.25rem;
}

.login-tip span {
    font-size: 0.9rem;
    color: #3b4b59;
}

.login-form {
    margin-top: 1.25rem;
}

.login-page-shell label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #314250;
    margin-bottom: 0.45rem;
}

.login-page-shell input {
    min-height: 46px;
    border-radius: 0.75rem;
    border: 1px solid #d9e1ea;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(31, 41, 51, 0.03);
}

.login-page-shell .btn-primary {
    min-height: 48px;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, var(--accent), #1f6fd0);
    box-shadow: 0 0.5rem 1rem rgba(45, 137, 239, 0.22);
}

.portal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.portal-info-box.soft-metric,
.info-box.soft-metric {
    min-height: 94px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #f7faff, #edf4fd);
    border: 1px solid rgba(45, 137, 239, 0.1);
}

.portal-links h2 {
    margin: 0 0 0.5rem;
    font-size: 1.45rem;
    color: #22313f;
}

.portal-links p {
    margin: 0 0 1rem;
    color: #6a7a88;
    line-height: 1.7;
    font-size: 0.93rem;
}

.portal-link-list {
    display: grid;
    gap: 0.85rem;
}

.portal-link {
    display: block;
    padding: 1rem 1rem 0.95rem;
    border-radius: 0.9rem;
    border: 1px solid #e3e9f0;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.portal-link:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 137, 239, 0.22);
    box-shadow: 0 0.75rem 1.25rem rgba(31, 41, 51, 0.08);
}

.portal-link strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: #22313f;
}

.portal-link span {
    display: block;
    font-size: 0.82rem;
    color: #6b7280;
}

.login-form-note {
    margin: 0.9rem 0 0;
    font-size: 0.8rem;
    color: #6a7a88;
    line-height: 1.7;
}

.sia-app-shell.wrapper {
    min-height: 100vh;
    background: #eef2f6;
}

.sia-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 65px;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dee6ef;
    box-shadow: 0 0.125rem 0.35rem rgba(15, 23, 42, 0.04);
}

.sia-topbar__logo {
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    box-shadow: none;
}

.sia-topbar__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #243443;
}

.sia-topbar__logout {
    min-height: 40px;
    border-radius: 0.7rem;
    background: #f4f8fc;
    color: #32516b;
}

.sia-main-shell.content-wrapper {
    width: min(1400px, calc(100% - 32px));
    margin: 1.25rem auto 0;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
}

.sia-sidebar {
    position: sticky;
    top: 84px;
}

.sia-sidebar__card {
    padding: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(180deg, #1f3b57, #274b6d 38%, #315f89 100%);
    border: none;
    box-shadow: 0 1rem 2rem rgba(31, 59, 87, 0.18);
}

.sia-sidebar__kicker {
    margin: 0;
    padding: 1.2rem 1.25rem 0.9rem;
    color: rgba(255, 255, 255, 0.72);
}

.sia-sidebar__nav {
    gap: 0;
    padding: 0.35rem 0.6rem 0.75rem;
}

.sia-sidebar__link {
    margin-bottom: 0.35rem;
    padding: 0.9rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 0.85rem;
    background: transparent;
    color: #fff;
}

.sia-sidebar__link strong {
    color: #fff;
    font-size: 0.92rem;
}

.sia-sidebar__link span {
    color: rgba(255, 255, 255, 0.72);
}

.sia-sidebar__link:hover,
.sia-sidebar__link.is-active {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.08);
}

.sia-content {
    gap: 1rem;
}

.sia-hero {
    grid-template-columns: minmax(0, 1.25fr) 300px;
    padding: 1.5rem;
    border-radius: 1rem;
}

.sia-hero h2,
.sia-section h3 {
    color: #243443;
    font-weight: 800;
}

.sia-badge {
    min-height: 2.2rem;
    padding: 0 0.85rem;
    background: #edf5ff;
    border-color: #d6e6fb;
    color: #1f5d9b;
}

.sia-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sia-info-card {
    min-height: 140px;
    border-radius: 1rem;
    background: #fff;
}

.sia-section {
    border-radius: 1rem;
}

.sia-section__summary span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: #f0f5fb;
    color: #5a6c7b;
}

.sia-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sia-module-card {
    border-radius: 1rem;
    background: #fdfefe;
    border: 1px solid #e4ebf2;
    box-shadow: none;
}

.sia-module-card__head span {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: #edf5ff;
    color: #1e5b99;
}

.sia-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sia-profile-item {
    border-radius: 0.95rem;
    border-color: #e3eaf1;
    background: #fbfdff;
}

.sia-footer {
    padding: 1rem 1.5rem 1.5rem;
    color: #6b7280;
}

@media (max-width: 1100px) {
    .portal-login-layout,
    .sia-main-shell.content-wrapper,
    .sia-hero,
    .sia-metric-grid,
    .sia-module-grid,
    .sia-profile-grid {
        grid-template-columns: 1fr;
    }

    .sia-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .container-fluid,
    .sia-main-shell.content-wrapper {
        width: min(100%, calc(100% - 20px));
    }

    .portal-shell {
        padding: 12px 0;
    }

    .portal-hero,
    .portal-links__inner,
    .sia-hero,
    .sia-section,
    .sia-info-card {
        padding: 1.1rem;
    }
}

/* Admin dashboard polish */
.sia-sidebar__head {
    padding: 1.2rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sia-sidebar__title {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
}

.sia-sidebar__meta {
    display: block;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
}

.sia-sidebar__group {
    padding: 0.55rem 0.6rem 0.1rem;
}

.sia-sidebar__section-heading {
    padding: 0.5rem 0.6rem 0.45rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sia-sidebar__nav {
    gap: 0;
    padding: 0;
}

.sia-sidebar__link {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.sia-sidebar__icon {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.sia-sidebar__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sia-content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.sia-content-header__kicker {
    margin: 0 0 0.2rem;
    color: #6c7a89;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sia-content-header__title {
    margin: 0;
    color: #253443;
    font-size: 1.9rem;
    font-weight: 800;
}

.sia-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #e0e7ef;
    color: #647384;
    font-size: 0.84rem;
}

.sia-breadcrumb strong {
    color: #253443;
}

.sia-small-box-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.sia-small-box {
    position: relative;
    overflow: hidden;
    min-height: 154px;
    padding: 1.2rem 1.2rem 1.15rem;
    border-radius: 1rem;
    color: #fff;
    box-shadow: 0 0.75rem 1.5rem rgba(31, 41, 51, 0.12);
}

.sia-small-box::after {
    content: "";
    position: absolute;
    inset: auto -24px -24px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.sia-small-box--primary {
    background: linear-gradient(135deg, #2d89ef, #1f6fd0);
}

.sia-small-box--success {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.sia-small-box--warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.sia-small-box--info {
    background: linear-gradient(135deg, #0891b2, #0f766e);
}

.sia-small-box__body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.35rem;
}

.sia-small-box__body small {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.88;
}

.sia-small-box__body strong {
    font-size: 2rem;
    line-height: 1;
}

.sia-small-box__body span {
    max-width: 22ch;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.sia-small-box__icon {
    position: absolute;
    right: 1rem;
    bottom: 0.9rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.sia-module-card {
    padding: 0;
    overflow: hidden;
}

.sia-module-card__head {
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid #ecf1f5;
}

.sia-module-card__identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sia-module-card__identity small {
    display: block;
    margin-top: 0.18rem;
    color: #7b8794;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sia-module-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.sia-module-card__body {
    padding: 1rem;
}

.sia-module-card__footer {
    padding: 0 1rem 1rem;
}

.sia-module-card--primary .sia-module-card__icon {
    background: linear-gradient(135deg, #2d89ef, #1f6fd0);
}

.sia-module-card--sky .sia-module-card__icon {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
}

.sia-module-card--blue .sia-module-card__icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.sia-module-card--teal .sia-module-card__icon {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.sia-module-card--green .sia-module-card__icon {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.sia-module-card--orange .sia-module-card__icon {
    background: linear-gradient(135deg, #fb923c, #ea580c);
}

.sia-module-card--indigo .sia-module-card__icon {
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

.sia-module-card--slate .sia-module-card__icon {
    background: linear-gradient(135deg, #64748b, #334155);
}

.sia-module-card--violet .sia-module-card__icon {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

@media (max-width: 1100px) {
    .sia-small-box-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sia-content-header {
        align-items: flex-start;
    }
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

.sidebar {
    padding: 22px 18px;
    height: fit-content;
}

.app-header.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(45, 137, 239, 0.08);
}

.app-header .nav-link {
    color: #334155;
}

.app-header .nav-link:hover {
    color: var(--accent-dark);
}

.notification-dropdown.dropdown-menu {
    width: min(420px, calc(100vw - 1rem));
    min-width: 320px;
    max-width: calc(100vw - 1rem);
    max-height: min(72vh, 430px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
}

.notification-dropdown__header,
.notification-dropdown__footer,
.notification-dropdown__empty,
.notification-dropdown__item {
    white-space: normal;
}

.notification-dropdown__item {
    padding: 0.85rem 1rem;
}

.notification-dropdown__title,
.notification-dropdown__message,
.notification-dropdown__meta {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.notification-dropdown__message {
    margin-top: 0.3rem;
    line-height: 1.4;
}

.notification-dropdown__meta {
    display: inline-block;
    margin-top: 0.35rem;
}

.app-sidebar {
    background: linear-gradient(180deg, var(--sidebar-start), var(--sidebar-end));
    border-right: none;
}

.app-sidebar .sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.app-sidebar .brand-link,
.app-sidebar .brand-text {
    color: #ffffff;
}

.app-sidebar .nav-header {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-sidebar .nav-link {
    color: #eff5ff;
    border-radius: 12px;
    transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.app-sidebar .nav-link .nav-icon {
    color: inherit;
}

.app-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateY(-1px);
}

.app-sidebar .nav-link.active,
.app-sidebar .nav-link.is-active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.app-sidebar .nav-badge.badge {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.brand {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 18px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-bottom: 8px;
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.crud-toolbar-row {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid rgba(27, 42, 65, 0.08);
}

.crud-toolbar-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    justify-content: flex-end;
    overflow-x: auto;
    padding-bottom: 4px;
}

.crud-toolbar-track .btn {
    white-space: nowrap;
    flex: 0 0 auto;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #2674ff);
    border-color: transparent;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.16);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--accent-dark), #2563eb);
    border-color: transparent;
}

.btn-success {
    box-shadow: 0 10px 18px rgba(34, 197, 94, 0.12);
}

.btn-warning {
    box-shadow: 0 10px 18px rgba(245, 158, 11, 0.12);
}

.form-control,
.form-select {
    border-color: #d7dee8;
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(45, 137, 239, 0.16);
}

.table > thead > tr > th,
.table > :not(caption) > thead > tr > th {
    background-color: var(--table-head-bg);
    color: var(--table-head-text);
    border-bottom-color: var(--table-head-border);
    font-weight: 700;
}

.table > tbody > tr:hover > td {
    background-color: var(--surface-soft);
}

.icon-select-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f6f9fc;
    border: 1px solid rgba(27, 42, 65, 0.1);
}

.icon-select-preview__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eef5fc;
    color: var(--accent-dark);
    font-size: 22px;
    flex-shrink: 0;
}

.icon-select-preview__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.icon-select-preview__value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
}

.icon-picker-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 122px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.icon-picker-option:hover {
    border-color: rgba(31, 75, 122, 0.5);
    box-shadow: 0 10px 22px rgba(24, 42, 65, 0.08);
    transform: translateY(-1px);
}

.icon-picker-preview {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef5fc;
    color: var(--accent-dark);
    font-size: 22px;
}

.icon-picker-label {
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.icon-picker-value {
    font-size: 12px;
    color: var(--muted);
    word-break: break-word;
}

.btn-check:checked + .icon-picker-option {
    border-color: var(--accent);
    background: #f0f6fc;
    box-shadow: 0 0 0 2px rgba(31, 75, 122, 0.16);
}

.btn-check:focus-visible + .icon-picker-option {
    outline: 2px solid rgba(31, 75, 122, 0.3);
    outline-offset: 2px;
}

.nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.is-active {
    background: #eef3fa;
    color: var(--accent);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef3fa;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.pagination .page-link {
    border-radius: 10px;
    border-color: #dbe4f0;
    color: #334155;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--accent), #2674ff);
    border-color: transparent;
}

.pagination .page-link:hover {
    color: var(--accent-dark);
    background: var(--surface-accent);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.stat {
    padding: 18px;
}

.stat h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.stat p {
    margin: 0;
    color: var(--muted);
}

.link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 680px) {
    .notification-dropdown.dropdown-menu {
        min-width: 0;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
