/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f7fc;
    margin: 0;
    padding: 0;
}

/* Sidebar */
#sidebar {
    width: 250px;
    height: 100vh;
    background-color: #343a40;
    color: white;
    position: fixed;
    top: 60px; /* Adjusted to align with navbar */
    left: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    padding-top: 20px;
}

#sidebar .list-group-item {
    background-color: #343a40;
    color: white;
    border: none;
}

#sidebar .list-group-item:hover {
    background-color: #007bff;
}

#sidebar .list-group-item.active {
    background-color: #0056b3;
    font-weight: bold;
}

/* Content Wrapper */
#page-content-wrapper {
    transition: margin-left 0.3s ease;
    padding: 20px;
    margin-left: 250px;
    margin-top: 60px; /* Prevents navbar overlap */
}

/* Navbar */
.navbar {
    background-color: #007bff;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1100; /* Ensure it stays on top */
    height: 60px; /* Set height to avoid overlap */
    display: flex;
    align-items: center;
}

.navbar .navbar-brand {
    color: white;
    font-size: 1.2rem;
}

.navbar .btn-logout {
    background-color: #dc3545;
    color: white;
    border: none;
    margin-left: auto;
}

.navbar .btn-logout:hover {
    background-color: #c82333;
}

/* Sidebar Hide/Toggle */
#sidebar.hide {
    left: -250px;
}

#page-content-wrapper.toggled {
    margin-left: 0;
}

/* Toggle Sidebar Button */
#menu-toggle {
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

/* Calendar Styling */
.calendar-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    position: absolute;
    right: 20px;
    top: 80px; /* Below navbar */
    z-index: 1000;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.calendar-table .day:hover {
    background-color: #007bff;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #sidebar {
        left: -250px;
        top: 60px;
    }
    
    #page-content-wrapper {
        margin-left: 0;
    }

    .calendar-container {
        width: 100%;
        max-width: 100%;
        right: 0;
        top: 90px;
    }
}
