/* Availability Calendar Styles */

.availability-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.availability-header {
    text-align: center;
    margin-bottom: 15px;
}

.availability-header h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.availability-header p {
    color: #666;
    margin: 0 auto 10px;
    font-size: 16px;
    max-width: 600px;
}

/* Calendar styles */
.availability-calendar {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background-color: #fff;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    margin: 0;
    font-size: 20px;
}

.calendar-header a {
    text-decoration: none;
    font-size: 24px;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
}

.calendar-header a:hover {
    background-color: #f0f0f0;
}

.calendar-header .nav-disabled {
    color: #ccc;
    cursor: not-allowed;
    font-size: 24px;
    padding: 5px 10px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day.unavailable {
    background-color: #eeeeee;
    color: #999;
}

.day.booked {
    background-color: #ffcdd2;
    color: #c62828;
}

.day.available {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.day.prev-month, .day.next-month {
    background-color: #f8f8f8;
    color: #aaa;
}

/* Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    margin-right: 5px;
}

.legend-available {
    background-color: #c8e6c9;
    border: 1px solid #ddd;
}

.legend-booked {
    background-color: #ffcdd2;
    border: 1px solid #ddd;
}

.legend-unavailable {
    background-color: #eeeeee;
    border: 1px solid #ddd;
}

/* Booking button */
.booking-button-container {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

.booking-button-container .booking-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.booking-button-container .booking-btn:hover {
    background-color: #45a049;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.booking-button-container .booking-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .availability-container {
        padding: 10px;
    }
    
    .availability-header h3 {
        font-size: 18px;
    }
    
    .availability-header p {
        font-size: 14px;
    }
    
    .calendar-header h2 {
        font-size: 18px;
    }
    
    .weekdays div {
        font-size: 12px;
    }
    
    .day {
        padding: 8px;
        font-size: 14px;
        height: 18px;
    }
    
    .calendar-legend {
        flex-wrap: wrap;
    }
    
    .legend-item {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .booking-button-container .booking-btn {
        min-width: 120px;
        padding: 10px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .day {
        padding: 5px;
        font-size: 12px;
        height: 15px;
    }
    
    .weekdays div {
        font-size: 10px;
    }
    
    .calendar-header h2 {
        font-size: 16px;
    }
    
    .availability-calendar {
        padding: 10px 5px;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }
    
    .booking-button-container .booking-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .availability-container {
        padding: 10px 5px;
    }
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #4CAF50;
    animation: spin 1s linear infinite;
}

/* Added display property to spinner elements to remove inline style */
.spinner.hidden {
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Success notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.5s;
    display: flex;
}

.notification.hidden {
    display: none;
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-icon {
    font-size: 24px;
    margin-right: 10px;
}

.notification-message {
    font-size: 16px;
}

/* Calendar loading overlay */
.calendar-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Make the container position relative for the overlay */
#availability-calendar-container {
    position: relative;
    min-height: 300px; /* Ensure minimum height to prevent page jumping */
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
} 