/* Calendar Widget Styles */
.calendar-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    max-width: 100%;
    margin: 20px 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ec73a9;
}

.calendar-header h3 {
    color: #ec73a9;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    background: #ec73a9;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.calendar-nav button:hover {
    background: #d65a8f;
}

.calendar-nav button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    color: #666;
    padding: 10px;
    font-size: 14px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background: white;
    min-height: 80px;
}

.calendar-day:hover:not(.disabled):not(.other-month) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(236, 115, 169, 0.3);
}

.calendar-day.other-month {
    opacity: 0.3;
    pointer-events: none;
}

.calendar-day.disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.today {
    border-color: #ec73a9;
    border-width: 3px;
}

.calendar-day.selected {
    background: #ec73a9;
    border-color: #ec73a9;
    color: white;
}

.day-number {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.calendar-day.selected .day-number {
    color: white;
}

.availability-indicator {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
    padding-top: 6px;
}

.availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
}

.availability-dot.full {
    background: #f44336;
}

.availability-dot.limited {
    background: #ff9800;
}

.availability-text {
    font-size: 11px;
    margin-top: 4px;
    font-weight: 500;
}

.calendar-day.has-availability {
    border-color: #4caf50;
    background: #f1f8f4;
}

.calendar-day.fully-booked {
    border-color: #f44336;
    background: #fef0f0;
}

.calendar-day.limited-availability {
    border-color: #ff9800;
    background: #fff8f0;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

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

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid;
}

.legend-available {
    background: #f1f8f4;
    border-color: #4caf50;
}

.legend-limited {
    background: #fff8f0;
    border-color: #ff9800;
}

.legend-unavailable {
    background: #fef0f0;
    border-color: #f44336;
}

.legend-closed {
    background: #f5f5f5;
    border-color: #999;
}

.calendar-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.time-slots-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.time-slots-panel.show {
    display: block;
}

.time-slots-header {
    color: #ec73a9;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ec73a9;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.time-slot {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    background: white;
}

.time-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.time-slot.available {
    border-color: #4caf50;
    color: #4caf50;
}

.time-slot.available:hover {
    background: #4caf50;
    color: white;
}

.time-slot.selected {
    background: #ec73a9;
    border-color: #ec73a9;
    color: white;
}

.time-slot.booked {
    background: #fef0f0;
    border-color: #f44336;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.booked:hover {
    transform: none;
    box-shadow: none;
}

.no-times-message {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .availability-dot {
        width: 6px;
        height: 6px;
    }
    
    .availability-text {
        font-size: 9px;
    }
    
    .calendar-header h3 {
        font-size: 18px;
    }
    
    .calendar-weekday {
        font-size: 12px;
        padding: 6px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (max-width: 480px) {
    .calendar-widget {
        padding: 12px;
    }
    
    .calendar-day {
        min-height: 50px;
        padding: 2px;
    }
    
    .day-number {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .availability-indicator {
        display: none;
    }
}
