
:root {
    --surface: #f0f4f8;
    --surface-strong: #ffffff;
    --text: #2c3e50;
    --muted: #7f8c8d;
    --accent: #1abc9c;
    --accent-strong: #16a085;
    --border: rgba(31, 58, 95, 0.1);
    --shadow: 0 2px 8px rgba(31, 58, 95, 0.1);
    --header-bg: #1f3a5f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ecf0f5 0%, #f0f4f8 100%);
    min-height: 100vh;
}

.top-nav-wrap {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.8rem 0;
    color: #ffffff;
}

.top-nav-btn {
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.top-nav-btn:hover {
    background: rgba(26, 188, 156, 0.25);
    color: #ffffff;
}

.top-nav-btn.is-active {
    background: rgba(26, 188, 156, 0.3);
    color: #ffffff;
    border-bottom: 2px solid #1abc9c;
}

.mobile-menu-toggle {
    display: none;
    margin-left: auto;
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.35rem 0.65rem;
}

.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.25);
}

.mobile-menu-toggle .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-brand-app {
    display: inline-flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
    margin-right: 1rem;
    padding: 0.5rem 0.25rem 0.5rem 0;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-brand-app:hover {
    color: #ffffff;
}

.navbar-brand-app i {
    color: var(--accent);
    font-size: 1.35rem;
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 1040;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 70vw;
    max-width: 70vw;
    min-width: 260px;
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #d9d9d9;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e6e6e6;
    font-weight: 600;
}

.mobile-drawer-body {
    padding: 0.6rem 0.75rem;
    color: #4a4a4a;
    overflow-y: auto;
    flex: 1;
}

.mobile-drawer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.mobile-drawer-brand:hover {
    color: var(--text);
}

.mobile-drawer-brand i {
    color: var(--accent);
    font-size: 1.35rem;
}

.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.25rem;
}

.mobile-drawer-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.mobile-drawer-item:hover {
    background-color: rgba(31, 58, 95, 0.06);
    color: var(--text);
}

.mobile-drawer-item.is-active {
    background-color: rgba(26, 188, 156, 0.14);
    color: var(--accent-strong);
    font-weight: 600;
}

.mobile-drawer-item.is-active .mobile-drawer-icon {
    color: var(--accent-strong);
}

.mobile-drawer-icon {
    font-size: 1.2rem;
    color: var(--muted);
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.mobile-drawer-label {
    flex: 1;
}

.mobile-drawer-divider {
    height: 1px;
    background-color: var(--border);
    margin: 0.6rem 0.25rem;
}

body.drawer-open {
    overflow: hidden;
}

body.drawer-open .mobile-drawer-overlay {
    opacity: 1;
    visibility: visible;
}

body.drawer-open .mobile-drawer {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .top-nav-wrap {
        justify-content: space-between;
    }

    .top-nav-btn {
        display: none;
    }

    .navbar-brand-app {
        font-size: 1.05rem;
        margin-right: 0;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

a {
    color: inherit;
    text-decoration: none;
}


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

.hero h1,
.page-header h1 {
    margin: 0.2rem 0 0.75rem;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.98;
    font-family: inherit;
    font-weight: 700;
}

.hero-copy,
.page-header p,
.card p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.eyebrow,
.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--accent-strong);
}

.hero-card,
.card,
.table-card {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.stats-grid article,
.card {
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e8eef5;
}

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

.card-grid--stacked {
    grid-template-columns: 1fr;
}

.page-header {
    margin-bottom: 1.5rem;
}

.responsive-table {
    overflow-x: auto;
}

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

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--muted);
    font-size: 0.88rem;
}

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