/* Service Booking Calendar Styles */

.com-service-calendar {
    padding: 20px 0;
}

.service-messages {
    margin-bottom: 30px;
}

.calendar-header h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.calendar-navigation {
    text-align: center;
}

.calendar-grid table {
    width: 100%;
    margin-bottom: 20px;
}

.calendar-grid th {
    background-color: #f5f5f5;
    text-align: center;
    padding: 10px;
    font-weight: bold;
}

.calendar-grid td {
    height: 100px;
    vertical-align: top;
    padding: 5px;
    position: relative;
}

.calendar-day {
    cursor: pointer;
    transition: background-color 0.3s;
}

.calendar-day:hover {
    background-color: #f0f8ff;
}

.calendar-day-empty {
    background-color: #fafafa;
}

.calendar-day-past {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.calendar-day-closed {
    background-color: #ffe6e6;
}

.calendar-day-today {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
}

.day-number {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.day-status {
    font-size: 12px;
    text-align: center;
    padding: 3px;
    border-radius: 3px;
}

.day-status.closed {
    background-color: #dc3545;
    color: white;
}

.day-slots {
    text-align: center;
}

.view-slots {
    font-size: 12px;
    padding: 2px 8px;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.legend-color.available {
    background-color: #28a745;
}

.legend-color.booked {
    background-color: #dc3545;
}

.legend-color.closed {
    background-color: #6c757d;
}

/* Time Slots Modal */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.time-slot:hover {
    transform: scale(1.05);
}

.time-slot .time {
    font-size: 18px;
    font-weight: bold;
}

.time-slot .status {
    font-size: 12px;
    text-transform: uppercase;
}

.slot-available {
    background-color: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.slot-booked {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
    cursor: not-allowed;
}

.date-title {
    font-size: 18px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-grid td {
        height: 80px;
        font-size: 12px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .calendar-navigation .btn-group {
        flex-direction: column;
    }
}
