/* Time Slot Picker Styles */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.time-slot-card {
    background: white;
    border: 2px solid #e7eaee;
    border-radius: 8px;
    padding: 0.875rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.time-slot-card:hover {
    border-color: var(--primary-color);
    background: rgba(230, 57, 70, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.15);
}

.time-slot-card.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.3);
}

.time-slot-card.selected::before {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.3);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .time-slot-card.selected::before {
    right: auto;
    left: 4px;
}

.time-slot-card:active {
    transform: scale(0.95);
}

.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.loading-message i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.error-message {
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    text-align: center;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
        max-height: 250px;
    }
    
    .time-slot-card {
        padding: 0.75rem 0.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Scrollbar Styling */
.time-slots-grid::-webkit-scrollbar {
    width: 8px;
}

.time-slots-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.time-slots-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.time-slots-grid::-webkit-scrollbar-thumb:hover {
    background: #d32f40;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.time-slot-card {
    animation: fadeInUp 0.3s ease forwards;
}

.time-slot-card:nth-child(1) { animation-delay: 0.05s; }
.time-slot-card:nth-child(2) { animation-delay: 0.1s; }
.time-slot-card:nth-child(3) { animation-delay: 0.15s; }
.time-slot-card:nth-child(4) { animation-delay: 0.2s; }
.time-slot-card:nth-child(5) { animation-delay: 0.25s; }
.time-slot-card:nth-child(6) { animation-delay: 0.3s; }
