@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --sidebar-width: 250px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Sidebar styles */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    height: 100vh;
    transition: all 0.3s;
    position: sticky;
    top: 0;
    z-index: 999;
}

#sidebar.active {
    margin-left: calc(var(--sidebar-width) * -1);
}

.hover-bg-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Card styles */
.card {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] body {
    background-color: #212529;
}

[data-bs-theme="dark"] .bg-body {
    background-color: #1a1d20 !important;
}

[data-bs-theme="dark"] .card {
    background-color: #212529;
}

[data-bs-theme="dark"] .table-light {
    --bs-table-bg: #2c3034;
    --bs-table-color: #fff;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    #sidebar {
        margin-left: calc(var(--sidebar-width) * -1);
        position: fixed;
    }
    
    #sidebar.active {
        margin-left: 0;
    }
    
    #content {
        width: 100%;
    }
}
