/* Time slot label styling - Updated v6 with green badges on selection */
.time-slot-label {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.5rem 0 !important;
    cursor: pointer !important;
}

.form-check .time-slot-label {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.time-period {
    font-weight: 500 !important;
    color: var(--bs-body-color) !important;
}

/* Default gray styling for time badges */
.time-range {
    background-color: rgba(108, 117, 125, 0.15) !important;
    color: #6c757d !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem !important;
    white-space: nowrap !important;
    border: 1px solid rgba(108, 117, 125, 0.2) !important;
    min-width: 95px !important;
    text-align: center !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

/* Green styling for selected time slots */
.form-check-input:checked ~ .time-slot-label .time-range,
.form-check-input:checked + .time-slot-label .time-range {
    background-color: rgba(40, 167, 69, 0.15) !important;
    color: #28a745 !important;
    border-color: rgba(40, 167, 69, 0.3) !important;
}

/* Round checkboxes for availability forms */
.availability-card .form-check-input,
.availability-form .form-check-input {
    border-radius: 50% !important;
    width: 18px !important;
    height: 18px !important;
    margin-right: 0.5rem !important;
}

.availability-card .form-check-input:checked,
.availability-form .form-check-input:checked {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

/* Responsive styling */
@media (max-width: 768px) {
    .time-slot-label {
        padding: 0.4rem 0 !important;
    }
    
    .time-period {
        font-size: 0.95rem !important;
    }
    
    .time-range {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
        min-width: 85px !important;
    }
    
    .availability-card .form-check-input,
    .availability-form .form-check-input {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Time slot header styling for response view */
.time-slot-header {
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid var(--bs-border-color-translucent) !important;
}

.time-slot-header .time-period {
    font-weight: 600 !important;
    color: var(--bs-body-color) !important;
    font-size: 1rem !important;
}

.time-slot-header .time-range {
    background-color: rgba(108, 117, 125, 0.15) !important;
    color: #6c757d !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem !important;
    white-space: nowrap !important;
    border: 1px solid rgba(108, 117, 125, 0.2) !important;
    min-width: 95px !important;
    text-align: center !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

/* Dark theme compatibility */
[data-bs-theme="dark"] .time-period,
.availability-card .time-period {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .time-range,
.availability-card .time-range {
    background-color: rgba(173, 181, 189, 0.2) !important;
    color: #adb5bd !important;
    border-color: rgba(173, 181, 189, 0.3) !important;
}

/* Dark theme green for selected time slots */
[data-bs-theme="dark"] .form-check-input:checked ~ .time-slot-label .time-range,
[data-bs-theme="dark"] .form-check-input:checked + .time-slot-label .time-range {
    background-color: rgba(40, 167, 69, 0.2) !important;
    color: #28a745 !important;
    border-color: rgba(40, 167, 69, 0.4) !important;
}

/* Dark theme for round checkboxes */
[data-bs-theme="dark"] .availability-card .form-check-input,
[data-bs-theme="dark"] .availability-form .form-check-input {
    background-color: #495057 !important;
    border-color: #6c757d !important;
}

[data-bs-theme="dark"] .availability-card .form-check-input:checked,
[data-bs-theme="dark"] .availability-form .form-check-input:checked {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}