/**
 * MIRAS Restaurant Reservatie Systeem
 * Custom Styling - MIRAS Huisstijl
 *
 * Kleuren: #EA5B0C (Oranje), #000000 (Zwart)
 * Typography: Avenir, Calibri, sans-serif
 */

:root {
    --miras-oranje: #EA5B0C;
    --miras-zwart: #000000;
    --miras-rood: #E30613;
    --miras-geel: #FFC20E;
    --miras-turquoise: #00ADB5;
    --miras-grijs-licht: #F8F9FA;
    --miras-grijs: #6C757D;
}

body {
    font-family: 'Avenir', 'Calibri', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef4 100%);
    min-height: 100vh;
    color: var(--miras-zwart);
}

/* Header Styling */
.miras-header {
    background: var(--miras-zwart);
    color: white;
    padding: 30px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.miras-logo {
    max-height: 60px;
    width: auto;
}

/* Card Styling */
.miras-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.miras-card-header {
    background: var(--miras-oranje);
    color: white;
    padding: 25px 30px;
    border: none;
}

.miras-card-header h2,
.miras-card-header h3 {
    margin: 0;
    font-weight: 600;
}

.miras-card-body {
    padding: 35px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Form Styling */
.form-label {
    font-weight: 600;
    color: var(--miras-zwart);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--miras-oranje);
    box-shadow: 0 0 0 0.2rem rgba(234, 91, 12, 0.15);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Button Styling */
.btn-miras-primary {
    background: var(--miras-oranje);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(234, 91, 12, 0.3);
}

.btn-miras-primary:hover {
    background: #d55309;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 91, 12, 0.4);
}

.btn-miras-primary:disabled {
    background: var(--miras-grijs);
    box-shadow: none;
    transform: none;
}

.btn-miras-secondary {
    background: var(--miras-zwart);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-miras-secondary:hover {
    background: #333;
    color: white;
}

.btn-outline-miras {
    border: 2px solid var(--miras-oranje);
    color: var(--miras-oranje);
    background: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-miras:hover {
    background: var(--miras-oranje);
    color: white;
}

/* Tijdslot Selection */
.tijdslot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tijdslot-card {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.tijdslot-card:hover {
    border-color: var(--miras-oranje);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(234, 91, 12, 0.2);
}

.tijdslot-card.selected {
    border-color: var(--miras-oranje);
    background: var(--miras-oranje);
    color: white;
    box-shadow: 0 6px 20px rgba(234, 91, 12, 0.3);
}

.tijdslot-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.tijdslot-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #dee2e6;
}

/* Insufficient capacity styling */
.tijdslot-card.tijdslot-insufficient {
    border-color: #ffc107;
    background: #fff8e1;
    opacity: 0.85;
}

.tijdslot-card.tijdslot-insufficient:hover {
    border-color: #ffc107;
    background: #fff8e1;
}

.tijdslot-tijd {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.tijdslot-beschikbaar {
    font-size: 13px;
    opacity: 0.8;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.tijdslot-card.selected .tijdslot-beschikbaar {
    opacity: 1;
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
    padding: 16px 20px;
}

.alert-info {
    background: rgba(0, 173, 181, 0.1);
    color: var(--miras-turquoise);
    border-left: 4px solid var(--miras-turquoise);
}

.alert-warning {
    background: rgba(255, 194, 14, 0.1);
    color: #e6a800;
    border-left: 4px solid var(--miras-geel);
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-left: 4px solid #198754;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

/* Info Box */
.info-box {
    background: var(--miras-grijs-licht);
    border-left: 4px solid var(--miras-oranje);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.info-box h5 {
    color: var(--miras-oranje);
    font-weight: 600;
    margin-bottom: 12px;
}

/* Icon Styling */
.miras-icon {
    color: var(--miras-oranje);
    margin-right: 8px;
}

/* Loading Spinner */
.miras-spinner {
    border: 3px solid rgba(234, 91, 12, 0.2);
    border-top-color: var(--miras-oranje);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.miras-footer {
    background: var(--miras-zwart);
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

.miras-footer a {
    color: var(--miras-oranje);
    text-decoration: none;
    transition: color 0.3s ease;
}

.miras-footer a:hover {
    color: #d55309;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #dee2e6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--miras-oranje);
    border-color: var(--miras-oranje);
    color: white;
}

.step.completed .step-number {
    background: var(--miras-zwart);
    border-color: var(--miras-zwart);
    color: white;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--miras-grijs);
}

.step.active .step-label,
.step.completed .step-label {
    color: var(--miras-zwart);
}

/* Date Picker Styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(55%) sepia(80%) saturate(3000%) hue-rotate(355deg);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .miras-card-body {
        padding: 25px 20px;
    }

    .tijdslot-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .tijdslot-card {
        padding: 15px 10px;
    }

    .tijdslot-tijd {
        font-size: 18px;
    }

    .step-indicator {
        flex-direction: column;
        gap: 20px;
    }

    .step-indicator::before {
        width: 2px;
        height: 100%;
        left: 19px;
        top: 0;
    }

    .step {
        text-align: left;
        padding-left: 60px;
    }

    /* Calendar responsive on mobile */
    .calendar-container {
        max-width: 100%;
        margin: 0 auto;
    }

    .calendar-day {
        font-size: 0.8rem;
    }
}

/* Calendar Styling */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.calendar-month-year {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    min-width: 140px;
}

.calendar-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 100%;
}

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

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--miras-grijs);
    padding: 6px 2px;
    text-transform: uppercase;
}

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

.calendar-day {
    aspect-ratio: 1;
    border: 1.5px solid #e9ecef;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    background: white;
}

.calendar-day:hover:not(.disabled):not(.past) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.calendar-day.past {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
}

.calendar-day.available {
    border-color: #28a745;
    background: #f0fdf4;
    color: #166534;
}

.calendar-day.available:hover {
    border-color: #1e7e34;
    background: #dcfce7;
}

.calendar-day.full {
    border-color: #dc3545;
    background: #fef2f2;
    color: #991b1b;
}

.calendar-day.full:hover {
    border-color: #c82333;
    background: #fee2e2;
}

.calendar-day.selected {
    border-color: var(--miras-oranje);
    background: var(--miras-oranje);
    color: white;
    font-weight: 700;
}

.calendar-day.selected:hover {
    border-color: var(--miras-oranje);
    background: var(--miras-oranje);
}

/* Tab Styling for Cancel Tab */
.nav-tabs .nav-link.tab-cancel {
    color: #dc3545;
    font-weight: 600;
}

.nav-tabs .nav-link.tab-cancel:hover {
    color: #bb2d3b;
    border-color: transparent;
}

.nav-tabs .nav-link.tab-cancel.active {
    color: white;
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Print Styling */
@media print {
    .no-print {
        display: none;
    }
}
