body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 15px;
    background-color: #f0f8ff;
    color: #333;
}

.container {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 8px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s;
}

.container:hover {
    transform: translateY(-5px);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #4a90e2;
    font-size: 2em;
}

.scheduler-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.calendar {
    width: 55%;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-header button {
    background-color: transparent;
    color: #4a90e2;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 15px;
}

.calendar-header h2 {
    color: #4a90e2;
    margin: 0 15px;
    font-size: 1.5em;
}

.calendar-days,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar-days {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #4a90e2;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%; /* Make it circular */
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.9em;
}

.calendar-day:hover {
    background-color: #e6f2ff;
}

.calendar-day.selected {
    background-color: #4a90e2;
    color: white;
}

.calendar-day.today {
    border: 2px solid green; /* Green circle */
    font-weight: bold;
    background-color: #e6ffe6; /* Light green background for visibility */
}

.time-selection {
    width: 40%;
}

.time-selection h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.time-slot-button {
    padding: 8px;
    background-color: #f1f8e9;
    border: 1px solid #4CAF50;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    color: #4CAF50;
    font-size: 0.9em;
}

.time-slot-button:hover {
    background-color: #e8f5e9;
}

.time-slot-button.selected {
    background-color: #4CAF50;
    color: white;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

#currentTime {
    color: #4a90e2;
    font-size: 0.9em;
}

#scheduleButton {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

#scheduleButton:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#scheduleButton:not(:disabled):hover {
    background-color: #45a049;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
}

.modal-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#confirmButton {
    background-color: #4CAF50;
    color: white;
}

#cancelButton {
    background-color: #f44336;
    color: white;
}

#userInfoForm input {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.button-container {
    display: flex;
    justify-content: space-between; /* Space between buttons */
    margin-top: 20px; /* Add some space above the buttons */
}

.go-back-button {
    flex: 1; /* Allow the button to grow */
    margin-right: 10px; /* Space between buttons */
    padding: 12px; /* Same padding as submit button */
    background-color: #f44336; /* Red color for Go Back button */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.go-back-button:hover {
    background-color: #d32f2f; /* Darker red on hover */
}

.submit-button {
    flex: 1; /* Allow the button to grow */
    display: block;
    padding: 12px; /* Same padding as Go Back button */
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #45a049;
}

.close-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.close-button:hover {
    background-color: #357abd;
}