.calendar {
    margin: 20px auto;
    width: 100%;
    table-layout: fixed; /* Ensures equal column widths */
}
.calendar-header {
    text-align: center;
    margin-bottom: 10px;
}
.calendar-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
.calendar-table th {
    text-align: center;
    padding: 8px;
    background-color: #f8f9fa;
    width: 14.28%; /* Equal width for 7 days */
}
.day {
    height: 100px;
    vertical-align: top;
    width: 14.28%; /* Equal width for 7 days */
    position: relative;
    overflow: hidden;
    font-size: 0.8rem; /* Smaller font for all day content */
}
.day-number {
    font-weight: bold;
    margin-bottom: 5px;
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 1;
    font-size: 0.85rem; /* Slightly larger than content but still compact */
}
.today {
    background-color: #f0f8ff;
    border: 2px solid #007bff;
}

/* Calendar event styling */
.calendar-event {
    margin-bottom: 3px;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #000; /* Makes text black */
    background-color: transparent; /* Removes background color */
    border: 1px solid #ddd;
    line-height: 1.3;
}

/* Vacation page styles */

/* Main container styles */
.vacation-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Header styles */
.vacation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.vacation-title {
    color: #333;
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

/* Controls styles */
.vacation-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-dropdown {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: nowrap;
}

.dropdown-select:hover {
    border-color: #adb5bd;
}

.dropdown-select:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Ensure dropdown options are visible */
.dropdown-select option {
    color: #333;
    background-color: #fff;
    padding: 8px;
    font-weight: normal;
}

/* Ensure dropdown options are visible */
.dropdown-select option {
    color: #333;
    background-color: #fff;
    padding: 8px;
    font-weight: normal;
}

.dropdown-select {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
    background-color: #fff;
    color: #333; /* Ensuring text color is visible */
    font-weight: 500; /* Making text slightly bolder */
    color: #333; /* Ensuring text is visible */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    min-width: 120px;
    font-weight: 500; /* Make text slightly bolder */
}

/* List view styles */
.vacation-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.vacation-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #dee2e6;
}

.vacation-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.vacation-table tr:hover {
    background-color: #f8f9fa;
}

.vacation-table tr:last-child td {
    border-bottom: none;
}

.vacation-date {
    white-space: nowrap;
    font-weight: 500;
}

.vacation-person {
    font-weight: 600;
    color: #333;
}

.vacation-info {
    color: #666;
    max-width: 400px;
}

/* List view styles */
.list-view {
    display: block;
}

/* Empty state styles */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

/* Responsive styles */
@media (max-width: 768px) {
    .vacation-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vacation-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-dropdown {
        width: 100%;
    }
    
    .dropdown-select {
        flex: 1;
        color: #333; /* Ensure text visibility on mobile */
        font-weight: 500;
        color: #333; /* Ensure text visibility on mobile */
        font-weight: 500;
    }
    
    .vacation-table th:nth-child(3),
    .vacation-table td:nth-child(3) {
        display: none;
    }
    
    .vacation-date {
        font-size: 0.9rem;
    }
    
    /* Calendar responsive styles */
    .calendar-event {
        font-size: 0.7rem;
        padding: 2px 3px;
        margin-bottom: 2px;
    }
    
    .day {
        height: 80px;
        font-size: 0.7rem;
    }
    
    .day-number {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .calendar-event {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .day {
        height: 70px;
    }
}