* {
    box-sizing: border-box
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f9fafb;
    color: #111827;
    line-height: 1.5
}

.dashboard {
    min-height: 100vh
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    height: 56px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05)
}

.topbar-button {
    padding: 8px;
    border-radius: 6px;
    color: #6b7280;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center
}

.topbar-button:hover {
    background: #f3f4f6
}

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

.topbar-subtitle {
    font-size: 11px;
    color: #6b7280;
    margin-top: -2px
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease
}

.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto
}

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    height: 100%;
    width: 280px;
    max-width: 85vw;
    background: #fff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, .12);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.32, .72, 0, 1)
}

.drawer.open {
    transform: translateX(0)
}

.drawer-header {
    padding: 20px 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0
}

.drawer-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    color: #6b7280;
    text-transform: uppercase
}

.nav-button {
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    font-size: 14.5px;
    color: #4b5563;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all .1s ease;
    font-weight: 500
}

.nav-button:hover {
    background: #f8fafc;
    color: #111827;
    padding-left: 24px
}

.sidebar {
    display: none;
    width: 240px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding-top: 32px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 1px 0 4px rgba(0, 0, 0, .04)
}

@media (min-width:768px) {
    .sidebar {
        display: block
    }
}

.sidebar-header {
    padding: 0 20px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    color: #6b7280;
    text-transform: uppercase
}

.layout {
    display: flex;
    min-height: calc(100vh - 56px)
}

.main {
    flex: 1;
    padding: 32px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%
}

.content {
    max-width: 1100px;
    margin: 0 auto
}

.header {
    margin-bottom: 40px
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0
}

.header p {
    color: #6b7280;
    font-size: 15px;
    max-width: 500px
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    margin-bottom: 48px
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb
}

.section-number {
    background: #4f46e5;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 9999px;
    flex-shrink: 0
}

.section-title {
    font-size: 19px;
    font-weight: 600;
    color: #1f2937;
    margin: 0
}

.chart-container {
    margin-top: 8px
}

.chart-hints {
    margin-top: 12px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

.live-hint {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f0fdf4;
    border-radius: 6px;
    font-size: 13px;
    color: #166534
}

.footer-note {
    text-align: center;
    margin-top: 60px;
    color: #9ca3af;
    font-size: 13px;
    padding-bottom: 40px
}
