* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f6fb;
    color: var(--color-text);
    line-height: 1.5;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(100% - 2rem, var(--container-width));
    margin: 0 auto;
}

.page-shell {
    padding: 2rem 0 3rem;
    min-height: calc(100vh - 140px);
}

.public-navbar {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #fff;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff;
    padding: 0.35rem;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-weight: 700;
    font-size: 1rem;
}

.brand-tagline {
    font-size: 0.85rem;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #fff;
    font-weight: 600;
    opacity: 0.95;
}

.hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem 0 1rem;
}

.hero-copy h1 {
    margin: 0.35rem 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
}

.hero-lead {
    max-width: 760px;
    color: var(--color-muted);
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    background: var(--color-accent);
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
}

.content-section,
.status-grid,
.section-grid {
    margin-top: 1.5rem;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.status-grid {
    display: grid;
    grid-template-columns: minmax(280px, 520px);
}

.info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem;
}

.info-card h2,
.info-card h3 {
    margin-top: 0;
}

.feature-list {
    margin: 0.75rem 0 0;
    padding-left: 1.1rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--color-muted);
    max-width: 720px;
}

.status-list {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.6rem 1rem;
    margin: 0;
}

.status-list dt {
    font-weight: 700;
}

.status-list dd {
    margin: 0;
}

.status-badge {
    display: inline-block;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #e8f7ee;
    color: #166534;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--color-primary);
    border-color: var(--color-border);
}

.flash-stack {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.flash {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
    background: #fff;
}

.site-footer {
    border-top: 1px solid var(--color-border);
    background: #fff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.footer-text,
.footer-meta {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.narrow {
    max-width: 720px;
}

@media (max-width: 900px) {
    .hero,
    .section-grid {
        grid-template-columns: 1fr;
    }

    .navbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .status-list {
        grid-template-columns: 1fr;
    }
}
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at top right, rgba(31, 75, 153, 0.10), transparent 28%),
        linear-gradient(180deg, #f6f9ff 0%, #eef3fb 100%);
}

.auth-card-wrap {
    width: min(100%, 480px);
}

.auth-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
}

.auth-header {
    margin-bottom: 1.25rem;
}

.auth-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fff;
    padding: 0.4rem;
    border: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: grid;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    color: var(--color-text);
}

.form-control:focus {
    outline: 2px solid rgba(31, 75, 153, 0.15);
    border-color: var(--color-primary);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.auth-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-submit {
    min-width: 130px;
}

.field-error {
    color: #b42318;
    font-size: 0.9rem;
    font-weight: 600;
}

.inline-form {
    margin: 0;
}

.btn-small {
    min-height: 36px;
    padding: 0.45rem 0.8rem;
}

.nav-user {
    color: #fff;
    font-weight: 600;
    opacity: 0.95;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0.4rem 0 0;
}
.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #edf2f8;
}

.admin-sidebar {
    background: linear-gradient(180deg, #102749 0%, #183761 100%);
    color: #fff;
    min-height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    align-self: start;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 1.25rem 1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #fff;
    text-decoration: none;
}

.sidebar-brand-link:hover {
    text-decoration: none;
}

.sidebar-brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff;
    padding: 0.35rem;
}

.sidebar-brand-copy {
    display: flex;
    flex-direction: column;
}

.sidebar-brand-title {
    font-weight: 700;
    font-size: 1rem;
}

.sidebar-brand-subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
}

.sidebar-nav {
    padding: 1rem 0.85rem 1.25rem;
    display: grid;
    gap: 1rem;
}

.sidebar-group {
    display: grid;
    gap: 0.45rem;
}

.sidebar-link,
.sidebar-sublink {
    display: block;
    border-radius: 10px;
    text-decoration: none;
}

.sidebar-link {
    color: #fff;
    padding: 0.8rem 0.9rem;
    font-weight: 700;
}

.sidebar-link:hover,
.sidebar-sublink:hover {
    text-decoration: none;
}

.sidebar-link.is-active {
    background: rgba(255, 255, 255, 0.14);
}

.sidebar-section-title {
    padding: 0 0.85rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.sidebar-submenu {
    display: grid;
    gap: 0.35rem;
}

.sidebar-sublink {
    padding: 0.65rem 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-sublink.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 700;
}

.sidebar-sublink.is-disabled {
    opacity: 0.65;
    cursor: default;
}

.admin-main {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.topbar-title-group {
    display: grid;
    gap: 0.1rem;
}

.topbar-overline {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-muted);
}

.topbar-title {
    margin: 0;
    font-size: 1.25rem;
}

.topbar-link {
    font-weight: 700;
}

.topbar-user-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.55rem 0.7rem;
}

.topbar-user-meta {
    display: grid;
    gap: 0.05rem;
}

.topbar-user-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.topbar-user-email {
    color: var(--color-muted);
    font-size: 0.84rem;
}

.admin-content {
    padding: 1.5rem;
}

.admin-content-inner {
    max-width: 1320px;
}

.page-header-block {
    margin-bottom: 1.25rem;
}

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-title {
    margin: 0.5rem 0 0.35rem;
    font-size: 2rem;
}

.page-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.breadcrumbs {
    margin-bottom: 0.6rem;
}

.breadcrumbs-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.breadcrumbs-item:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: #94a3b8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.15rem 1.2rem;
    box-shadow: var(--shadow-soft);
}

.stat-card-label {
    color: var(--color-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-top: 0.35rem;
    line-height: 1.1;
}

.stat-card-hint {
    margin-top: 0.4rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 1100px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        min-height: auto;
        position: static;
    }

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

.sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-footer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    font-weight: 700;
}

.sidebar-footer-value {
    margin-top: 0.35rem;
    font-weight: 700;
}

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

@media (max-width: 1100px) {
    .dashboard-grid-2 {
        grid-template-columns: 1fr;
    }
}
.table-card,
.form-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 1rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 960px;
}

.data-table th,
.data-table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
    text-align: left;
}

.data-table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    font-weight: 700;
    background: #f8fafc;
}

.data-table tbody tr:hover {
    background: #fbfdff;
}

.table-link {
    font-weight: 700;
}

.text-right {
    text-align: right !important;
}

.table-actions {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.empty-row {
    padding: 1rem 0;
    color: var(--color-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-check-stack {
    display: grid;
    gap: 0.75rem;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.form-actions-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.form-select-multi {
    width: 100%;
    min-height: 220px;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
}

.form-help {
    margin-top: 0.5rem;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1rem;
}

.stack-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.status-chip {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.status-chip-success {
    background: #e8f7ee;
    color: #166534;
}

.status-chip-muted {
    background: #eef2f7;
    color: #475569;
}

@media (max-width: 1100px) {
    .form-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
.form-control-textarea {
    min-height: 120px;
    resize: vertical;
}

.permission-catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.data-table-compact {
    min-width: 0;
}

.data-table-compact th,
.data-table-compact td {
    padding: 0.7rem 0.8rem;
}

.permission-group-stack {
    display: grid;
    gap: 0.85rem;
}

.permission-group-card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #f8fafc;
    padding: 0.9rem 1rem;
}

.permission-group-title {
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.55rem;
    text-transform: capitalize;
}

.permission-bullet-list {
    margin: 0;
    padding-left: 1.1rem;
}

.permission-bullet-list li + li {
    margin-top: 0.25rem;
}

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

@media (max-width: 1100px) {
    .permission-preview-grid {
        grid-template-columns: 1fr;
    }
}
.settings-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1100px) {
    .settings-card-grid {
        grid-template-columns: 1fr;
    }
}
.sidebar-light .admin-sidebar {
    background: #ffffff;
    color: #1f2937;
    border-right: 1px solid var(--color-border);
}

.sidebar-light .sidebar-brand-link,
.sidebar-light .sidebar-link,
.sidebar-light .sidebar-sublink,
.sidebar-light .sidebar-footer {
    color: #1f2937;
}

.sidebar-light .sidebar-section-title,
.sidebar-light .sidebar-brand-subtitle,
.sidebar-light .sidebar-footer-label {
    color: #64748b;
}

.sidebar-light .sidebar-sublink {
    background: #f8fafc;
}

.sidebar-light .sidebar-link.is-active,
.sidebar-light .sidebar-sublink.is-active {
    background: var(--color-accent);
    color: var(--color-primary);
}

.navbar-dark .admin-topbar {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-dark .topbar-overline,
.navbar-dark .topbar-user-email {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-dark .topbar-link,
.navbar-dark .topbar-title,
.navbar-dark .topbar-user-name {
    color: #fff;
}

.navbar-dark .topbar-user-card {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.14);
}

.color-preview-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    font-weight: 700;
}

.color-preview-swatch {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.entry-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.section-title {
    margin: 0;
    font-size: 1.4rem;
}

.section-subtitle {
    color: var(--color-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.audit-entry-card {
    display: grid;
    gap: 1rem;
}

.audit-entry-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.audit-entry-title {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.audit-entry-meta {
    margin-top: 0.5rem;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.audit-diff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.audit-diff-panel h4 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.audit-json-box {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #f8fafc;
    padding: 0.85rem;
    overflow-x: auto;
}

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

.kv-table th,
.kv-table td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.kv-table th {
    width: 220px;
    color: var(--color-muted);
    font-weight: 700;
}

.empty-state-inline {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.break-text {
    word-break: break-word;
}

.alert {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.alert-success {
    background: #e8f7ee;
    color: #166534;
    border: 1px solid #b7e4c7;
}

.alert-danger {
    background: #fef2f2;
    color: #b42318;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fff7ed;
    color: #b45309;
    border: 1px solid #fed7aa;
}

.status-chip-warning {
    background: #fff7ed;
    color: #b45309;
}

.status-chip-danger {
    background: #fef2f2;
    color: #b42318;
}

.btn-danger {
    background: #b42318;
    color: #fff;
    border: 1px solid transparent;
}

@media (max-width: 1100px) {
    .audit-diff-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== Auth Shell ===== */

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
    padding: 24px;
}

/* ===== Card ===== */

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ===== Header ===== */

.auth-header {
    margin-bottom: 24px;
}

.auth-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f2937;
}

.auth-subtitle {
    font-size: 14px;
    color: #6b7280;
}

/* ===== Form ===== */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== Inputs ===== */

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ===== Errors ===== */

.field-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

/* ===== Row ===== */

.form-row {
    display: flex;
    align-items: center;
}

.form-row-between {
    justify-content: space-between;
}

/* ===== Checkbox ===== */

.form-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
}

/* ===== Links ===== */

.link-muted {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}

.link-muted:hover {
    color: #111827;
}

/* ===== Button ===== */

.btn {
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    padding: 12px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-block {
    width: 100%;
}

/* ===== Back link ===== */

.auth-back {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}

.auth-back:hover {
    color: #111827;
}
.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.action-card {
    display: block;
    padding: 18px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-card h3 {
    margin-bottom: 4px;
    font-size: 16px;
    color: #111827;
}

.action-card p {
    font-size: 13px;
    color: #6b7280;
}

.action-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

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

.simple-list li {
    padding: 6px 0;
    font-size: 14px;
    color: #374151;
}

/* ===== Sidebar ===== */

.admin-sidebar {
    width: 260px;
    background: #1f2a37;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
}

/* ===== Brand ===== */

.sidebar-brand {
    margin-bottom: 20px;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sidebar-brand-logo {
    width: 36px;
    height: 36px;
}

.sidebar-brand-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.sidebar-brand-subtitle {
    font-size: 12px;
    color: #94a3b8;
}

/* ===== Sections ===== */

.sidebar-section {
    margin-bottom: 16px;
}

.sidebar-section-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    margin: 12px 8px 6px;
    letter-spacing: 0.05em;
}

/* ===== Items ===== */

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    background: #2a3645;
    color: #ffffff;
}

/* ===== Active ===== */

.sidebar-item.is-active {
    background: #2563eb;
    color: #ffffff;
}

/* ===== Icons ===== */

.sidebar-item-icon {
    font-size: 12px;
    opacity: 0.8;
}

/* ===== Disabled ===== */

.sidebar-item.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ===== Footer ===== */

.sidebar-footer {
    margin-top: auto;
    padding: 12px;
    font-size: 12px;
    color: #94a3b8;
}

.sidebar-footer-value {
    margin-top: 4px;
    font-weight: 600;
    color: #ffffff;
}
.sidebar-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    opacity: 0.85;
}

.sidebar-item-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}
/* ===== Topbar ===== */

.admin-topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;
}

/* LEFT */

.topbar-overline {
    font-size: 11px;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.05em;
}

.topbar-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* RIGHT */

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

.topbar-link {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
}

.topbar-link:hover {
    color: #111827;
}

/* Divider */

.topbar-divider {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
}

/* User */

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

.topbar-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.topbar-user-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.topbar-user-email {
    font-size: 12px;
    color: #6b7280;
}

/* Buttons */

.btn-ghost {
    background: transparent;
    border: none;
    color: #6b7280;
}

.btn-ghost:hover {
    color: #111827;
}
.sidebar-submenu-nested {
    margin: 6px 0 10px 38px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-sublink {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.sidebar-sublink:hover {
    background: #2a3645;
    color: #ffffff;
}

.sidebar-sublink.is-active {
    background: rgba(37, 99, 235, 0.18);
    color: #ffffff;
}

.sidebar-sublink.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}