:root {
    --app-bg: #f6f8fc;
    --sidebar-width: 250px;
    --brand-primary: #0b3f8c;    /* header + primary blue */
    --brand-secondary: #d11d1f;  /* destructive red */
    --brand-accent: #f2c94c;     /* primary button yellow */
    --neutral-ink: #4d5b78;      /* muted ink for text */
    --text-muted: #8b95b2;
    --card-bg: #ffffff;
    --border-light: rgba(10, 33, 65, 0.08);
}

body,
.app-body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--app-bg);
    min-height: 100vh;
    color: var(--neutral-ink);
}

.app-header {
    background: var(--brand-primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 10px 25px rgba(7, 10, 30, 0.3);
}

.app-header .navbar-brand,
.app-header .fw-semibold,
.app-header .text-muted {
    color: #fff !important;
}

.app-header .btn {
    border-radius: 999px;
    font-size: 0.85rem;
}

.app-layout {
    display: flex;
    min-height: calc(100vh - 72px);
    align-items: stretch;
}

.app-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #fff 0%, #f5f7ff 100%);
    border-right: 1px solid var(--border-light);
    padding: 1.5rem 1.25rem;
    height: calc(100vh - 72px);
    position: sticky;
    top: 72px;
    border-top: 4px solid var(--brand-primary);
}

.sidebar-inner .sidebar-section {
    font-weight: 600;
    letter-spacing: 0.06em;
}

.sidebar-inner .nav-link {
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    color: #0c1a33;
    font-weight: 500;
}

.sidebar-inner .nav-link.active,
.sidebar-inner .nav-link:hover {
    background: rgba(11, 63, 140, 0.12);
    color: var(--brand-primary);
}

.app-main {
    flex: 1;
    background: radial-gradient(circle at top, rgba(0, 56, 168, 0.08), transparent), var(--app-bg);
    padding: 1.5rem 2rem;
}

.page-body {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding-top: 0.5rem;
}

.card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 15px 35px rgba(6, 24, 44, 0.08);
    background: var(--card-bg);
}

.card-dashboard {
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(11, 63, 140, 0.10), #fff);
    border: 1px solid rgba(11, 63, 140, 0.18);
}

.card-dashboard h2 {
    font-size: 2rem;
    margin-bottom: 0;
}

.stat-accent {
    font-size: 2.4rem;
    color: var(--brand-primary);
    font-weight: 700;
}

.table-responsive {
    border-radius: 1.25rem;
    background: #fff;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: rgba(0, 56, 168, 0.05);
}

.table td {
    vertical-align: middle;
}

.table-actions .btn {
    margin-right: 4px;
    margin-bottom: 4px;
}

.form-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(6, 24, 44, 0.08);
}

.form-label {
    font-weight: 600;
    color: #1d2c4d;
}

.form-control,
.form-select {
    border-radius: 0.75rem;
    border: 1px solid rgba(12, 26, 51, 0.15);
}

.btn-primary {
    background: var(--brand-accent);
    color: #0b1a3d;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.btn-outline-secondary {
    border-radius: 999px;
}

.public-hero {
    background: #f1f5ff;
    color: #0b1a3d;
    border-radius: 1.25rem;
    padding: 2.25rem;
    box-shadow: 0 18px 36px rgba(9, 14, 31, 0.12);
    border: 1px solid rgba(12, 26, 51, 0.1);
}

.public-card {
    border-radius: 1.25rem;
    box-shadow: 0 30px 60px rgba(9, 14, 31, 0.08);
    background: #fff;
    padding: 1.75rem;
}

.small-text {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .app-sidebar {
        position: fixed;
        top: 72px;
        left: -260px;
        height: calc(100vh - 72px);
        z-index: 1030;
        transition: left 0.3s ease;
        box-shadow: 0 15px 40px rgba(7, 10, 30, 0.2);
    }

    .sidebar-open .app-sidebar {
        left: 0;
    }

    .app-layout {
        flex-direction: column;
    }

    .app-main {
        padding: 1.25rem;
    }
}
.btn-danger,
.btn-outline-danger {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
}
