:root {
    --sidebar-width: 260px;
    --primary: #0d6efd;
    --background: #f4f6f9;
}

body {
    background: var(--background);
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;
}

.app-shell {
    padding: 1.5rem 2rem;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    background: #1f2937;
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #64748b #1f2937;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1f2937;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 999px;
}

.sidebar .logo {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 20px;
    border-bottom: 1px solid #374151;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    transition: .2s;
}

.sidebar a:hover {
    background: #2563eb;
    color: white;
}

.sidebar a.active {
    background: #2563eb;
    box-shadow: inset 4px 0 0 #93c5fd;
}

.sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1050;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.public-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.public-page .container {
    width: 100%;
}

.topbar {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 15px 25px;
}

.page-content {
    padding: 30px;
}

.dashboard-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .2s ease-in-out;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    .sidebar.is-open {
        transform: translateX(0);
        box-shadow: 0 0 0 100vmax rgba(15, 23, 42, .45);
    }

    .main-content {
        margin-left: 0;
        padding-top: 4.5rem;
    }

    .app-shell {
        padding: 1rem;
    }
}

@media (min-width: 992px) {
    .sidebar-toggle {
        display: none;
    }
}
