:root {
    --font-family-sans-serif: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

*, *::before, *::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    display: flex;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

#sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: #343a40; /* Dark background for sidebar */
    color: white;
    padding-top: 20px;
    transition: margin-left 0.3s ease;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    z-index: 1000;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

    #sidebar.show-mobile{
        display: block;
    }

    #sidebar.collapsed { /* For desktop: sidebar is hidden */
        margin-left: -250px;
    }

#content {
    flex-grow: 1;
    padding: 20px;
    margin-left: 250px; /* Default for desktop: sidebar visible */
    transition: margin-left 0.3s ease;
    background-color: #f8f9fa; /* Light background for content */
    border-radius: 10px;
}

    #content.expanded { /* For desktop: content takes full width when sidebar is hidden */
        margin-left: 0;
    }

.navbar {
    background-color: #ffffff; /* White background for header */
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    border-radius: 10px;
    margin-bottom: 20px;
}

    .navbar .rounded-full {
        border-radius: 9999px; /* Tailwind's rounded-full equivalent */
    }

.sidebar-heading {
    padding: 10px 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #f8f9fa;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    margin: 5px 10px;
}

    .sidebar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .sidebar-nav .nav-link.active {
        background-color: #0d6efd; /* Bootstrap primary blue */
        color: white;
    }

    .sidebar-nav .nav-link i {
        margin-right: 10px;
    }

.sidebar-nav .collapse .nav-link {
    padding-left: 30px; /* Indent for child items */
}

.sidebar-nav .collapse .collapse .nav-link {
    padding-left: 45px; /* Indent for grandchild items */
}

.form-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px; /* Hidden by default on mobile */
    }

        #sidebar.show-mobile { /* Class to show sidebar on mobile */
            margin-left: 0;
        }

    #content {
        margin-left: 0 !important; /* Content always takes full width on mobile */
    }
    /* Hide the desktop sidebar collapse button on small screens */
    #headerSidebarToggle {
        display: none !important;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
