/* Time Slot Dropdown Styles */
.time-select-wrapper {
    position: relative;
    width: 100%;
}

.time-select-display {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 1rem;
    color: #6b7280; /* Placeholder color */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.2s;
}

.time-select-display.active {
    border-color: #6366f1;
    background: #fff;
    color: #1f2937;
}

.time-select-display .chevron {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.time-select-display.open .chevron {
    transform: rotate(180deg);
}

.time-slots-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 250px; /* Limit height */
    overflow-y: auto;
    z-index: 100;
    display: none; /* Hidden by default */
}

/* Scrollbar styling */
.time-slots-dropdown::-webkit-scrollbar {
    width: 8px;
}
.time-slots-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.time-slots-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.time-slots-dropdown::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.time-slots-dropdown.show {
    display: block;
    animation: fadeInDropdown 0.2s ease-out;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.time-slot-item {
    padding: 12px 16px;
    cursor: pointer;
    color: #1f2937;
    font-weight: 500;
    transition: background 0.1s;
    border-bottom: 1px solid #f3f4f6;
}

.time-slot-item:last-child {
    border-bottom: none;
}

.time-slot-item:hover {
    background-color: #f3f4f6;
}

.time-slot-item.selected {
    background-color: #6366f1; /* Primary color */
    color: #fff;
}

.time-slot-placeholder {
    padding: 12px 16px;
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
}
