:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #f95000;
    --primary-2: #f95000;
    --border: #e5e7eb;
    --sidebar: #f95000;
    --sidebar-text: #e8eef7;
    --focus: #f95000;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: "Museo Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f1f5ff 0%, #f9fbff 40%, var(--bg) 100%);
}

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

.app {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--sidebar);
    color: var(--sidebar-text);
    padding: 20px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}

.brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
}

.brand .title {
    line-height: 1.1;
    font-weight: 700;
}

.brand small {
    display: block;
    color: #c9d7ee;
    font-weight: 500;
}

.nav h4 {
    margin: 20px 8px 8px;
    color: #bcd0ee;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav a {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 4px 0;
    color: var(--sidebar-text);
    border-radius: 10px;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav .active {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
}

.sidebar-backdrop {
    display: none;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

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

.topbar-subtitle {
    color: var(--muted);
    font-size: 0.92rem;
}

.menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
}

main {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.container {
    width: 100%;
}

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

.hero {
    padding: 22px;
    margin-bottom: 20px;
    background: radial-gradient(1800px 400px at 40% -10%, rgba(30, 136, 229, 0.12), transparent 60%), var(--surface);
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
}

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

.report-section {
    margin-bottom: 20px;
    padding: 18px 20px;
}

.report-section h2 {
    margin: 0 0 14px;
}

.info-text {
    color: var(--muted);
    margin-bottom: 12px;
}

.info-text a {
    color: var(--primary);
    text-decoration: underline;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.report-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 20px;
    display: block;
    transition: transform 0.15s ease;
}

.report-card:hover {
    transform: translateY(-2px);
}

.report-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.report-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-public {
    background: #d8fbe8;
    color: #17633c;
}

.badge-restricted {
    background: #ffe9d6;
    color: #9a3f00;
}

.navbar {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-user {
    color: var(--muted);
    font-size: 0.92rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    padding: 8px 12px;
    font-size: 0.88rem;
}

.btn:hover {
    background: #f8fafc;
}

.btn-sm {
    padding: 6px 10px;
}

.error-page {
    padding: 40px 0;
}

.error-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.error-card h1 {
    margin: 0 0 12px;
}

.error-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

@media (max-width: 980px) {
    .app {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 82%;
        max-width: 320px;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        z-index: 50;
        overflow: auto;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-backdrop.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 49;
    }

    .menu-btn {
        display: inline-flex;
    }

    main {
        padding: 16px;
    }
}
