/* General styling for the booking calendar container */
#tattoo-booking-calendar {
    margin: 20px auto;
    max-width: 800px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: #f9f9f9;
}

/* Styling for calendar events */
.fc-event {
    background-color: #007bff !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.9em;
}

/* Button styling */
button.book-slot {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    border: none;
    background-color: #28a745;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

button.book-slot:hover {
    background-color: #218838;
}

/* Table styling if needed */
.table-booking {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table-booking th, .table-booking td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.table-booking th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Notification messages */
.notice {
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
    font-size: 1em;
}

.notice-success {
    background-color: #d4edda;
    color: #155724;
}

.notice-error {
    background-color: #f8d7da;
    color: #721c24;
}

#booking-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure the overlay is above other elements */
}

#booking-form-overlay div {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    position: relative;
    z-index: 1010; /* Ensure the content box is above the overlay */
}

#tattoo-booking-calendar {
    max-width: 100%;
    margin: 0 auto;
}

.fc {
    font-size: 14px; /* Adjust font size for better readability on mobile */
}

.fc-toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fc-header-toolbar .fc-toolbar-chunk {
    margin: 5px 0;
}

.fc-dayGridMonth-view,
.fc-timeGridDay-view {
    table-layout: fixed; /* Ensure table layout adapts to small screens */
}

@media (max-width: 768px) {
    .fc-toolbar {
        flex-direction: column;
    }

    .fc .fc-daygrid-day-frame {
        padding: 5px; /* Reduce padding for mobile */
    }

    .fc-daygrid-day-number {
        font-size: 12px; /* Smaller date number font for compact display */
    }

    .fc-event {
        font-size: 12px; /* Smaller font for event titles */
    }
}