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

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --background: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --error: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
}

body {
    font-family: 'Rubik', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
}

.list-group-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Sidebar Styles */
#sidebar-wrapper {
    margin-right: 0;
    transition: margin 0.25s ease-out;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    overflow-y: auto;
}

#page-content-wrapper {
    /* width: 100%; */
    overflow-x: hidden;
    /* min-width: 80vw; */
    transition: margin 0.25s ease-out;
}

/* Desktop: Sidebar visible by default */
@media (min-width: 768px) {
    #sidebar-wrapper {
        right: 0;
        /* Visible */
    }

    #page-content-wrapper {
        margin-right: 280px;
        /* width: auto !important; */
        /* Override w-100 to prevent overflow with margin */
    }

    body.toggled #sidebar-wrapper {
        margin-right: -280px;
        /* Hide */
    }

    body.toggled #page-content-wrapper {
        margin-right: 0;
    }
}

/* Mobile: Sidebar hidden by default */
@media (max-width: 767.98px) {
    #sidebar-wrapper {
        margin-right: -280px;
        /* Hidden */
    }

    body.toggled #sidebar-wrapper {
        margin-right: 0;
        /* Show */
    }

    /* Overlay */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    body.toggled .overlay {
        display: block;
    }
}

/* Sidebar Collapsible Menu Styles */
#sidebar-wrapper .collapse-icon {
    transition: transform 0.3s ease;
}

#sidebar-wrapper button[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

#sidebar-wrapper .collapse .list-group-item a {
    transition: all 0.2s ease;
}

#sidebar-wrapper .collapse .list-group-item a:hover {
    background-color: var(--background) !important;
    color: var(--primary) !important;
}


