.calendar-container {
    position: relative;
    width: 100%;
    max-width: 525px; /* Flexible max-width for larger screens */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-image: url('../assets/images/oldBook.jpg'); /* Make container transparent */
    border-radius: 8px;
    border: 2px solid #003092;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-top:120px;
    
        height: 373px; /* Sets the container's height to 200 pixels */
    }

    #prevMonthBtn{
        color:white;
        
        border-color: #052c65;
        border-width: 2px;
        background-color: #052c65;
    }

    #month-select{
       
        
       min-width: 80px;
        
    }



.calendar-header {
    display: flex;
    flex-wrap: wrap;  /* Allows wrapping on small screens */
    justify-content: center; /* Centers elements */
    gap: 10px; /* Spacing between buttons and selects */
    padding: 10px;
}

.calendar-header select {
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: rgba(255, 255, 255, 0.8); /* Slightly opaque white for readability */
    cursor: pointer;
    font-weight: bold;
}

.calendar-header select:focus {
    outline: none;
    border-color: #052c65;
}

table {
    width: 100%; /* Ensure table fills container */
    border-collapse: collapse;
    color:white;
}
tr{
    
    border-color: #052c65;
     
}

th,td {
    
    text-align: center;
    font-size: 18px; /* Base font size */
    font-weight: 600;
    border-color: #052c65;
    
    
    
    
}




td:hover {
    background-color: rgba(224, 247, 250, 0.5); /* Slightly more opaque on hover */
    cursor: pointer;
}

td.disabled {
    background-color: rgba(241, 241, 241, 0.3); /* Semi-transparent for disabled */
    color: #b0b0b0;
    cursor: not-allowed;
}

td.disabled:hover {
    background-color: rgba(241, 241, 241, 0.3);
}


.form-select{
    max-height: 40px;
    min-width:80px;
}





/* Responsive styles */

@media screen and (max-width: 768px) {
    .calendar-container {
        max-width: 100%;
        height: 355px; /* Full width for medium screens */
    }
    #month-select{
        font-size:15px;
        
        min-width: 80px;
        
    }

    .calendar-header {
        flex-direction: column; /* Stack controls vertically */
        align-items: center;
        gap: 5px;
    }

    .calendar-header select {
        font-size: 14px;
        padding-left:10px;
        width: 100%; /* Full width dropdowns */
        max-width: 200px; /* Limit dropdown width */
    }

    th, td {
        padding: 8px; /* Reduced padding */
        font-size: 12px; /* Smaller font */
    }
}
#prevMonthBtn{
    color:white;
    
    border-color: #052c65;
    border-width: 2px;
    background-color: #052c65;
}

@media screen and (max-width: 480px) {
    .calendar-container {
        max-width: 100%;
        height: 331px;
    }

    .calendar-header select {
        font-size: 15px;
        padding-left: 10px;
        max-width: 150px;
        height: 35px;
    }
    .calendar-header {
        gap: 2px;
    }

    th, td {
        padding: 6px;
        font-size: 10px;
    }
    .form-select{
        min-height: 30px;
        
    }
    #month-select{
        font-size:15px;
       
        min-width: 80px;
        
    }
    #prevMonthBtn{
        color:white;
        
        border-color: #052c65;
        border-width: 2px;
        min-height: 35px;
        justify-self: center;
        align-items: center;
        
    }
}

@media screen and (max-width: 375px) {
    .calendar-container {
        max-width: 100%;
        height: 321px;
    }

    .calendar-header select {
        font-size: 15px;
        padding-left: 10px;
        max-width: 130px;
        height: 35px;
    }
    .calendar-header {
        gap: 2px;
    }
    #month-select{
        font-size:15px;
        
        min-width: 80px;
        
        
    }

    th, td {
        padding: 5px;
        font-size: 9px;
    }
    .form-select{
        min-height: 30px;
    }
    #prevMonthBtn{
        color:white;
        
        border-color: #052c65;
        border-width: 2px;
        min-height: 35px;
        justify-self: center;
        align-items: center;
        
    }
}

@media screen and (max-width: 320px) {
    .calendar-container {
        max-width: 100%;
        height: 340px;
        
    }

    .calendar-header select {
        font-size: 15px;
        padding-left: 10px;
        max-width: 110px;
        height: 35px;
    }

    #month-select{
        font-size:14.3px;
        min-width: 80px;
        
    }

    th, td {
        padding: 4px;
        font-size: 11px;
        
    }

    .calendar-header {
        gap: 1px;
    }
    .form-select{
        min-height: 30px;
        
    }
    #prevMonthBtn{
        color:white;
        
        border-color: #052c65;
        border-width: 2px;
        min-height: 35px;
        justify-self: center;
        align-items: center;
        
    }
    
   
}

