body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background-color: #fafafa;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin-bottom: 1em;
    font-size: 2.5em;
    color: #2a2f36;
}

form {
    margin-bottom: 2em;
    background-color: #ffffff;
    padding: 1.5em;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    gap: 15px;
}

select, button {
    padding: 12px 20px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    font-weight: 500;
}

select {
    background-color: #ffffff;
}

button {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* General Calendar Styles */
table {
    width: 100%;
    border-collapse: collapse;
}
th {
    background-color: #f2f2f2;
    text-align: left;
}

td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
}
/* Styling for Past and Future Dates */
.past-date {
    color: grey;
    pointer-events: none; /* Disable interactions */
}
.past-date button {
    background-color: #ccc;
    cursor: default;
}
.time-slot.booked {
    color: red;
    background-color: #ccc;
    text-decoration: line-through;
}
/* Time Slot Button Styles */
.time-slot {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.85em;
}

td:not(:empty) {
    background-color: #fafafa;
}

@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    th, td {
        padding: 15px;
    }

    form {
        flex-direction: column;
        align-items: stretch;
    }
}
/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
        .success-message {
            background-color: #ddffdd; /* Light green background */
            border: 1px solid #00b300; /* Darker green border */
            color: #006600; /* Dark green text */
            margin: 20px auto;
            padding: 10px;
            border-radius: 5px;
            text-align: center;
            max-width: 600px;
        }

/* Modal Content Box */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Responsive width */
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Form Styling */
#appointmentForm {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#appointmentForm label {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

#appointmentForm input[type="text"],
#appointmentForm input[type="email"],
#appointmentForm input[type="tel"],
#appointmentForm input[type="datetime-local"] {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#appointmentForm button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
}

#appointmentForm button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 600px) {
    .modal-content {
        width: 80%;
    }
}
