/* Quick Reservation Styles */
.reservation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.reservation-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.reservation-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.step-header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* Email Form Styles */
.email-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.email-form-container .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.email-form-container .card-body {
    padding: 30px;
}

/* Email Verification Styles */
.verification-container {
    max-width: 500px;
    margin: 0 auto;
}

.verification-container .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.verification-container .card-body {
    padding: 40px 30px;
}

.verification-form {
    max-width: 300px;
    margin: 0 auto;
}

#verificationCode {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.5rem;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

#verificationCode:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#verificationCode::placeholder {
    letter-spacing: 0.5rem;
    color: #6c757d;
}

/* Email Status Styles */
#emailStatus {
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
}

#emailStatus.text-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

#emailStatus.text-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Room and Device Grid Styles */
.rooms-grid,
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.room-card,
.device-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.room-card:hover,
.device-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.room-card.selected,
.device-card.selected {
    border-color: #007bff;
    background-color: #f8f9ff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.room-image,
.device-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.room-image img,
.device-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.room-image img:hover,
.device-image img:hover {
    transform: scale(1.05);
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 3rem;
}

.room-info,
.device-info {
    padding: 20px;
}

.room-info h3,
.device-info h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.room-info p,
.device-info p {
    color: #6c757d;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
}

.room-details,
.device-details {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #495057;
}

.room-details span,
.device-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Calendar and Time Slots Styles */
.calendar-container {
    margin-bottom: 30px;
}

.date-picker {
    max-width: 300px;
    margin: 0 auto;
}

.date-picker label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2c3e50;
}

.time-slots-container {
    margin-top: 30px;
}

.time-slots-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Desktop: gecentreerd met max-breedte */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

/* Centraal uitlijnen van de hele tijdsloten-sectie */
#time-slots-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.time-slot {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 44px;
    padding: 12px 0;
    font-size: 1.1rem;
    margin-bottom: 0;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.time-slot.selected {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.time-slot.disabled {
    background: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
}

.time-slot.available {
    border-color: #28a745;
    color: #28a745;
}

.time-slot.available:hover {
    background-color: #28a745;
    color: white;
    transform: translateY(-1px);
}

.time-slot.available.selected {
    background-color: #28a745;
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.time-slot.unavailable {
    border-color: #dc3545;
    color: #dc3545;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot .time {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
}

.time-slot .status {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Confirmation Styles */
.confirmation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-card h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.detail-card p {
    margin: 0;
    color: #495057;
    font-size: 1.1rem;
}

/* Navigation Styles */
.reservation-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.reservation-nav .btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Progress Bar */
.progress {
    background-color: #e9ecef;
}

.progress-bar {
    transition: width 0.5s ease;
}

/* Modal Styles */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 10px 10px 0 0;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 10px 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reservation-container {
        padding: 10px;
    }
    
    .rooms-grid,
    .devices-grid {
        grid-template-columns: 1fr;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .confirmation-details {
        grid-template-columns: 1fr;
    }
    
    .reservation-nav {
        position: static;
        transform: none;
        margin-top: 20px;
        justify-content: center;
    }
    
    .email-form-container .card-body,
    .verification-container .card-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .step-header h2 {
        font-size: 1.5em;
    }
    
    .room-info,
    .device-info {
        padding: 15px;
    }
    
    .room-details,
    .device-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .time-slot {
        padding: 12px 8px;
    }
    
    .detail-card {
        padding: 15px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success and Error States */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Countdown Timer */
#countdown {
    font-weight: bold;
    color: #007bff;
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    transform: translateY(-1px);
}

/* Input Enhancements */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Animation for step transitions */
.reservation-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.reservation-step:not(.active) {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

@media (max-width: 900px) {
    .time-slots-grid {
        max-width: 350px;
    }
}
@media (max-width: 600px) {
    .time-slots-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 8px;
    }
    #time-slots-container {
        align-items: stretch;
    }
}
#time-slots-container, #time-slots {
    max-width: 100vw;
    width: 100%;
}

body {
    background: #f7f7f9;
}

/* Override Bootstrap card styling voor de reservation card */
.reservation-card .card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1.5px 4px rgba(0,0,0,0.04);
    max-width: 420px;
    margin: 32px auto;
    border: none;
}

@media (max-width: 600px) {
    .reservation-card .card {
        max-width: 95vw;
        margin: 12px auto;
    }
}

/* Tijdsloten styling */
#time-slots-container {
    width: 100%;
}

.time-slots-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.time-slot {
    width: 80px;
    min-height: 40px;
    padding: 10px 4px;
    font-size: 0.95rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.time-slot:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.time-slot.selected {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.time-slot.disabled {
    background: #f1f1f1;
    color: #b0b0b0;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

.time-slot.disabled:hover {
    background: #f1f1f1;
    border-color: #e0e0e0;
} 