.calendar-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.calendar-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
}

.calendar-popup {
    
    top: 100%;
    left: 0;
    width: 320px;
    background: #1c1c1e;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 5px;
}

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

.calendar-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.calendar-nav button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-weekday {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day.today {
    color: #007AFF;
    font-weight: 600;
}

.calendar-day.selected {
    background: #007AFF;
    color: #fff;
}

.calendar-day.disabled {
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.calendar-day.other-month {
    color: rgba(255, 255, 255, 0.3);
}

/* Time Picker Styles */
.time-picker {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.time-picker-header {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 8px;
}

.time-slot {
    padding: 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover {
    background: rgba(255, 255, 255, 0.1);
}

.time-slot.selected {
    background: #007AFF;
    color: #fff;
}

.time-slot.disabled {
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

/* Scrollbar Styles */
.time-slots::-webkit-scrollbar {
    width: 6px;
}

.time-slots::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.time-slots::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.time-slots::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Styles pour les créneaux désactivés */
.time-slot.disabled {
    opacity: 0.6;
    background: rgba(255, 50, 50, 0.2);
    cursor: not-allowed;
    position: relative;
}

.time-slot.disabled:hover {
    background: rgba(255, 50, 50, 0.2);
    transform: none;
}

.booked-indicator {
    font-size: 0.7rem;
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.2rem;
}