/* Custom Calendar Styles */
#custom-calendar-container {
    position: absolute;
    z-index: 1000;
    width: 280px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    display: none; /* Hidden by default */
}
.time-inputs{
    display: flex;
    flex-direction: row-reverse;
}
.time-inputs input{
    text-align: center;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.calendar-header select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 8px;
    font-family: inherit;
}

.calendar-header button {
    background-color: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #4b5563;
    padding: 0 10px;
}

.calendar-header button:hover {
    color: #393B3D;
}

.calendar-weekdays, .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.calendar-weekdays div {
    font-weight: 600;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
}

.calendar-days .day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.calendar-days .day:hover {
    background-color: #e5e7eb; /* gray-200 */
}

.calendar-days .day.today {
    background-color: #fefcbf; /* yellow-100 */
    border: 1px solid #fcd34d; /* amber-300 */
    font-weight: bold;
}

.calendar-days .day.selected {
    background-color: #dbeafe; /* blue-200 */
    border: 1px solid #60a5fa; /* blue-400 */
    color: #1e40af; /* blue-800 */
}

/* Time Picker Styles */
.calendar-timepicker {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 5px;
    border-top: 1px solid #f3f4f6; /* gray-100 */
    margin-top: 5px;
}

.time-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-segment input {
    width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 4px;
    padding: 2px 0;
    margin: 2px 0;
}

.time-segment button {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af; /* gray-400 */
}

.time-separator {
    font-size: 20px;
    font-weight: bold;
    padding: 0 5px;
    align-self: center;
}
