/* Reset and General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden; /* Hide overflow to prevent scrolling issues */
    position: relative; /* Add relative positioning for absolute elements */
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: #f4f4f4;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    display: block; /* Ensure sidebar is visible by default */
    transition: transform 0.3s ease; /* Add transition for smooth animation */
    position: absolute; /* Position sidebar absolutely */
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 999; /* Ensure sidebar is above other content */
}

.sidebar-header {
    background-color: #007bff;
    color: white;
    padding: 10px;
    text-align: center;
}

.sidebar-nav {
    padding: 10px;
}

.sidebar-nav a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.sidebar-nav a:hover {
    background-color: #e0e0e0;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    margin-left: 250px; /* Ensure content does not overlap with sidebar */
}

.content-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.content-container {
    display: grid;
    grid-template-columns: 1fr; /* Ensure only one column */
    gap: 20px;
}

.content-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add shadow for card-like appearance */
}

.content-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.content-card p {
    line-height: 1.6;
}

/* Mobile Sidebar Styles */
.sidebar-mobile {
    display: none; /* Initially hidden on larger screens */
    width: 100%;
    background-color: #007bff; /* Change background color to blue */
    padding: 10px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0; /* Push to right side on mobile view */
    z-index: 998; /* Ensure sidebar is below hamburger icon */
}

.sidebar-mobile select {
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff; /* Match background color */
    color: white;
}

/* Sidebar Toggle Button (Hamburger Icon) */
.sidebar-toggle {
    display: none; /* Hide on desktop view */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        padding: 20px;
        margin-top: 10px; /* Adjust spacing from header */
        width: 100%; /* Ensure content occupies full width */
        margin-left: 0; /* Remove margin on mobile view */
    }

    .sidebar-toggle {
        display: block; /* Show toggle button on mobile */
        position: fixed;
        top: 20px;
        left: 20px;
        background-color: transparent;
        color: #007bff; /* Blue color */
        border: none;
        padding: 10px;
        cursor: pointer;
        z-index: 1000; /* Ensure button is above other content */
    }

    .sidebar-toggle i {
        font-size: 24px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-mobile {
        display: block; /* Show mobile sidebar */
    }
}
