/* GEOPTIMALISEERDE WIDGET SHIFT TIMESLOT STYLES */

#shift-timeslots-container {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 5px; /* Match met .flatpickr-calendar */
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 3px 13px rgba(0,0,0,0.08); /* Match met bundle shadow */
    animation: fadeIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shift-group {
    margin-bottom: 1.5rem;
}

    .shift-group:last-child {
        margin-bottom: 0;
    }

.shift-name {
    color: #393939;
    font-size: 0.9rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .shift-name strong {
        color: #569ff7; /* De primaire blauwe kleur uit de bundel */
    }

.shift-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.shift-timeslot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-height: 70px;
    color: #393939;
}

    .shift-timeslot-btn:hover {
        background-color: #e6e6e6; /* Match met hover-stijl van kalenderdagen */
        border-color: #d3d3d3;
    }

    .shift-timeslot-btn.active {
        background-color: #569ff7 !important;
        border-color: #569ff7 !important;
        color: white !important;
    }

    .shift-timeslot-btn i {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
        color: #569ff7;
    }

    .shift-timeslot-btn.active i,
    .shift-timeslot-btn.active small {
        color: white !important;
    }

    .shift-timeslot-btn small {
        font-size: 0.75rem;
        color: #6c757d;
    }

    .shift-timeslot-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        background: #f8f9fa;
        border-color: #e9ecef;
    }

/* Loading state */
#shift-timeslots-container .spinner-border {
    width: 2rem;
    height: 2rem;
    color: #569ff7;
}

/* Responsive */
@media (max-width: 768px) {
    .shift-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 0.4rem;
    }

    .shift-timeslot-btn {
        min-height: 65px;
    }
}
