body {
    background: #f5f7fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.app-wrapper {
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0d1117 0%, #1f2937 100%);
    color: #fff;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #e5e7eb;
    padding: 0.85rem 1.25rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(220, 38, 38, 0.2);
    color: #fff;
    border-left-color: #ef4444;
}

.sidebar .nav-link i {
    width: 1.4rem;
    text-align: center;
}

.content {
    flex: 1;
    padding: 1.5rem;
}

.card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-header {
    background: transparent;
    border-bottom: none;
    font-weight: 600;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.accent-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.accent-green { background: linear-gradient(135deg, #34d399, #059669); }
.accent-red { background: linear-gradient(135deg, #f87171, #dc2626); }
.accent-indigo { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

.card-muted {
    background: linear-gradient(180deg, #f9fbff, #f3f4f6);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f5f7fb;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 1050;
        transition: left 0.3s ease;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1040;
        display: none;
    }

    .sidebar.open + .sidebar-backdrop {
        display: block;
    }

    .sidebar-backdrop.show {
        display: block;
    }

    .content {
        padding: 1rem;
    }
}

@media print {
    body {
        background: #fff;
    }
    .sidebar,
    .sidebar-backdrop,
    .topbar,
    .btn,
    .nav,
    .sidebar-header {
        display: none !important;
    }
    .content {
        padding: 0;
    }
    .card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    .no-print {
        display: none !important;
    }
}
