:root {
    --sidebar-bg: #29507f;
    --accent-color: #3b82f6;
    --main-bg: #f8fafc;
    --text-secondary: #6b7280;
    --sidebar-fade-amount: 0.18;
    --primary-accent-color: #f8fafc;
}


body {
    font-family: 'Inter', sans-serif;
    background-color: var(--main-bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Layout --- */
.page-container {
    padding-left: 0;
}

@media (min-width: 1024px) {
    .page-container {
        padding-left: 280px; /* Width of the sidebar */
    }
}

#sidebar {
    background-color: var(--sidebar-bg);
    width: 280px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 40;
    /* UPDATED: Added for positioning the pseudo-element */
    /* position: relative;  */
    /* overflow: hidden; */
}


@media (min-width: 1024px) {
    #sidebar {
        transform: translateX(0);
    }
}

/* NEW: Style for the overlay pseudo-element */
#sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 0; /* Ensure overlay is behind the content */
}

/* UPDATED: The hover effect now targets the pseudo-element's opacity */
#sidebar:hover::before {
    opacity: var(--sidebar-fade-amount);
}

/* NEW: Ensure all direct children of the sidebar are on top of the overlay */
#sidebar > * {
    position: relative;
    z-index: 1;
}

#sidebar.is-open {
    transform: translateX(0);
}

#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 30;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

#sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* --- Sidebar Specifics --- */
.sidebar-link {
    transition: all 0.2s ease-in-out;
    border-left: 4px solid transparent;
}
.sidebar-link:hover, .sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--primary-accent-color);
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    min-height: 700px;
    /*background-image:url('https://unsplash.com/photos/white-and-black-concrete-building-near-green-tree-under-white-clouds-during-daytime-ysh2TXQZw1A');*/
    background-size: cover;
    /*opacity: 0.20;*/
}
/* --- Animations --- */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Buttons & Cards --- */
.btn-primary {
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.feature-card {
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.btn-group {
    margin-left: 10px; /* Adds space between buttons */
}

.btn-group-sm .btn {
    margin-right: 5px; /* Adds space between buttons */
}

.btn-danger,
.btn-success {
    margin-left: 10px; /* Adds space between the Deactivate/Activate button and the List All button */
}
