body {
    background-color: #f8f9fa;
}

/* Login Page Styles */
.login-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Dashboard Styles */
.dashboard-body {
    display: flex;
    min-height: 100vh;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.sidebar {
    width: 260px;
    background-color: #212529;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.sidebar .sidebar-header {
    text-align: center;
    margin-bottom: 20px;
}
.sidebar .sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
}
.sidebar #user-info {
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}
.sidebar #nav-links .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 5px;
    transition: background-color 0.2s, color 0.2s;
}
.sidebar #nav-links .nav-link:hover,
.sidebar #nav-links .nav-link.active {
    background-color: #495057;
    color: white;
}
.sidebar .logout-container {
    margin-top: auto;
    text-align: center;
}
.main-content-area {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f8f9fa;
    transition: margin-left 0.3s;
}
.main-header {
    display: none; /* Hidden on desktop */
    align-items: center;
    margin-bottom: 20px;
}
.menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #343a40;
}
#main-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Responsive Table/Card CSS */
@media (max-width: 767.98px) {
    .table-responsive-cards table, 
    .table-responsive-cards thead, 
    .table-responsive-cards tbody, 
    .table-responsive-cards th, 
    .table-responsive-cards td, 
    .table-responsive-cards tr { 
        display: block; 
    }
    .table-responsive-cards thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .table-responsive-cards tr {
        border: 1px solid #dee2e6;
        border-radius: .25rem;
        margin-bottom: 1rem;
        background-color: #fff;
    }
    .table-responsive-cards td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
        min-height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    .table-responsive-cards td::before {
        content: attr(data-label);
        position: absolute;
        top: 50%;
        left: 1rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        transform: translateY(-50%);
    }
    .table-responsive-cards td:last-child {
        border-bottom: 0;
    }

    /* Calendar mobile styles */
    #calendar {
        padding: 0.5rem;
    }
    .fc-event-title {
        font-size: 0.85rem;
    }
    .fc-list-item-title a {
        font-size: 0.9rem;
    }
    .fc .fc-toolbar-title {
        font-size: 1.2rem;
    }
}

/* Responsive Sidebar CSS */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        height: 100%;
        z-index: 1030;
        transition: left 0.3s;
    }
    .sidebar.active {
        left: 0;
    }
    .main-content-area {
        padding: 20px;
    }
    .main-header {
        display: flex;
    }
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 1020;
        display: none;
    }
    .overlay.active {
        display: block;
    }
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
    border-radius: 5px;
}

