/* Calendar Component Styles voor Kiosk POS */

.calendar-component {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    max-width: 600px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.calendar-nav-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
}

.calendar-nav-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.calendar-nav-btn:active {
    transform: translateY(1px);
}

.calendar-month-year {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 8px;
    padding: 0 4px;
}

.calendar-weekday {
    text-align: center;
    padding: 12px 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day {
    background: white;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calendar-day.empty {
    background: #f8fafc;
    cursor: default;
}

.calendar-day.past {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Beschikbaarheidsstatus zoals in de afbeelding */
.calendar-day.available {
    background: #22c55e; /* Groen zoals in afbeelding */
    color: white;
}

.calendar-day.available:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.calendar-day.partial {
    background: #fb923c; /* Oranje zoals in afbeelding */
    color: white;
}

.calendar-day.partial:hover {
    background: #ea580c;
    transform: translateY(-1px);
}

.calendar-day.unavailable {
    background: #ef4444; /* Rood zoals in afbeelding */
    color: white;
    cursor: not-allowed;
}

/* Geselecteerde dagen */
.calendar-day.selected {
    box-shadow: 0 0 0 2px var(--bs-primary);
    z-index: 10;
}

.calendar-day.selected.available {
    background: #16a34a;
}

.calendar-day.selected.partial {
    background: #ea580c;
}

.calendar-day.selected.unavailable {
    background: #dc2626;
}

/* Range selectie styling */
.calendar-day.in-range {
    background: #dbeafe !important;
    color: #1e40af;
}

.calendar-day.in-range:hover {
    background: #bfdbfe !important;
}

/* Vandaag markering */
.calendar-day.today {
    box-shadow: inset 0 0 0 2px #1e293b;
}

/* Legend styling */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #64748b;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

.legend-color.available {
    background: #22c55e;
}

.legend-color.partial {
    background: #fb923c;
}

.legend-color.unavailable {
    background: #ef4444;
}

/* Range info styling */
.calendar-range-info {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    text-align: center;
}

.selected-range {
    color: #0c4a6e;
    font-size: 0.875rem;
}

.selected-range strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 640px) {
    .calendar-component {
        padding: 16px;
        margin: 0 8px;
    }
    
    .calendar-header {
        margin-bottom: 16px;
    }
    
    .calendar-month-year {
        font-size: 1.125rem;
    }
    
    .calendar-day {
        min-height: 40px;
        font-size: 0.75rem;
    }
    
    .calendar-legend {
        gap: 16px;
        font-size: 0.75rem;
    }
    
    .legend-color {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .calendar-legend {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .calendar-day {
        padding: 8px 4px;
        min-height: 36px;
    }
    
    .calendar-weekday {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
}

/* Animaties en transities */
.calendar-day {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-component {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects voor betere user experience */
.calendar-nav-btn,
.calendar-day:not(.past):not(.unavailable) {
    transition: all 0.15s ease;
}

.calendar-nav-btn:hover,
.calendar-day:not(.past):not(.unavailable):hover {
    transform: translateY(-1px);
}

.calendar-nav-btn:active,
.calendar-day:active {
    transform: translateY(0);
}

/* Focus states voor accessibility */
.calendar-nav-btn:focus,
.calendar-day:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Tooltip styling voor beschikbaarheidsinformatie */
.calendar-day[title] {
    position: relative;
}

/* Print styling */
@media print {
    .calendar-component {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .calendar-nav-btn {
        display: none;
    }
    
    .calendar-legend {
        border-top: 1px solid #000;
    }
}