/* site.css */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
}

.app-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    min-width: 260px;
    max-width: 260px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
}

.sidebar.sidebar-hidden {
    margin-left: -260px;
}

.sidebar-header {
    background-color: rgba(0, 0, 0, 0.2);
}

.sidebar-link {
    padding: 14px 20px;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-link i {
    color: #64748b;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: #ffffff !important;
}

.sidebar-link:hover i {
    color: #38bdf8;
}

.sidebar-link.active {
    background-color: rgba(56, 189, 248, 0.1);
    border-left-color: #38bdf8;
    color: #38bdf8 !important;
}

.sidebar-link.active i {
    color: #38bdf8;
}

.main-content {
    flex-grow: 1;
    overflow: hidden;
}

.page-body {
    height: calc(100vh - 70px);
}

.navbar {
    height: 70px;
}

/* Spinner for PowerBI Report */
#loadingSpinner {
    z-index: 10;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        height: 100vh;
        z-index: 1050;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

    .app-wrapper {
        position: relative;
    }

    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        transition: opacity 0.3s ease;
    }

    /* Adjust main content padding on mobile */
    .page-body {
        padding: 1rem !important;
    }
}