body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #495057;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card-custom:hover {
    transform: translateY(-5px);
}

.btn-custom {
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
}

.timer-box {
    background: #e9ecef;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #495057;
    margin: 20px 0;
}

.user-photo-nav {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    cursor: pointer;
}

/* =========================================
   Modern Full-Color Calendar Styles
   ========================================= */

.calendar-table {
    border-collapse: separate;
    border-spacing: 2px;
    width: 100%;
}

.calendar-table thead th {
    background: #4e73df;
    /* Header Blue */
    color: white;
    border: none;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-align: center;
}

.calendar-table tbody tr td {
    height: 100px;
    width: 14.28%;
    vertical-align: top;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.2s;
    position: relative;
    border: 1px solid transparent;
}

.calendar-table tbody tr td:hover {
    transform: scale(1.03);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Day Number Styling */
.cal-date {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Status Text Styling */
.cal-status-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 15px;
    text-align: center;
}

/* --- CELL COLORS --- */

/* Present (Green) */
.cell-present {
    background-color: #28a745 !important;
    color: white !important;
    border: 1px solid #1e7e34;
}

.cell-present .cal-date,
.cell-present .cal-status-text {
    color: white !important;
}

/* Absent (Red) */
.cell-absent {
    background-color: #dc3545 !important;
    color: white !important;
    border: 1px solid #bd2130;
}

.cell-absent .cal-date,
.cell-absent .cal-status-text {
    color: white !important;
}

/* Weekend/Holiday (Grey) */
.cell-weekend {
    background-color: #6c757d !important;
    color: white !important;
    border: 1px solid #545b62;
}

.cell-weekend .cal-date,
.cell-weekend .cal-status-text {
    color: white !important;
}

/* Default / Future (White) */
.cell-default {
    background-color: #ffffff;
    border: 1px solid #e9ecef !important;
}

.cell-default .cal-date {
    color: #495057;
}

/* Today Highlight (Blue Border) */
.today-cell {
    box-shadow: inset 0 0 0 4px #0d6efd !important;
    /* Thick Inner border */
    position: relative;
    z-index: 5;
}

.empty-cell {
    background-color: #f8f9fa;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .calendar-table tbody tr td {
        height: 70px;
        padding: 5px;
    }

    .cal-date {
        font-size: 0.9rem;
    }

    .cal-status-text {
        font-size: 0.6rem;
    }
}