.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.time-slot-card {
        background: rgba(224, 242, 241, 0.53);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* حالت hover با رنگ ملایم */
.time-slot-card:hover {
    border-color: #80cbc4; /* سبز نعنایی */
    background: #f1fdfb;
    transform: translateY(-2px);
}

/* حالت انتخاب شده */
.time-slot-card.selected {
    border-color: #4db6ac;
    background: #e0f2f1;
}

/* محتوا */
.time-slot-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.time-slot-day {
    font-size: 10px;
    color: #78909c; /* خاکستری آبی ملایم */
    font-weight: 400;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-slot-time {
    font-size: 14px;
    font-weight: 500;
    color: #37474f; /* خاکستری تیره */
}

.time-slot-badge {
    font-size: 10px;
    color: #00796b; /* سبز ملایم */
    font-weight: 500;
    padding: 2px 1px;
    border-radius: 2px;
    display: compact;
}

/* رزرو شده */
.time-slot-card.booked {
    background: #f9f9f9;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
}

.booked-label {
    font-size: 9px;
    color: #e57373; /* قرمز ملایم */
    font-weight: 500;
    margin-top: 2px;
    background: #ffebee;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .time-slot-time {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .time-slot-time {
        font-size: 12px;
    }
}


.time-slot-card.passed {
    opacity: 0.6;
    background-color: #f8f9fa;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.time-slot-card.passed:hover {
    transform: none;
    box-shadow: none;
}

.passed-label {
    background-color: rgba(108, 117, 125, 0.06);
    color: #bc7272;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 5px;
}