/* Extra stijlen voor TegelTour */

/* Algemene stijlen */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Fix voor footers aan de onderkant */
.min-h-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.flex-grow {
    flex-grow: 1;
}

/* Footer vast onderaan */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Padding onderaan voor content zodat het niet achter de footer verdwijnt */
main {
    padding-bottom: 100px; /* Ruimte voor de footer */
    min-height: calc(100vh - 100px); /* Zorg ervoor dat content altijd de volledige hoogte gebruikt */
}

/* Mobiele aanpassingen voor de footer */
@media (max-width: 640px) {
    main {
        padding-bottom: 120px; /* Meer ruimte op mobiel voor veilige zone */
        min-height: calc(100vh - 120px);
    }
    
    footer {
        padding-bottom: env(safe-area-inset-bottom, 16px);
    }
    
    /* Zorg ervoor dat de footer knoppen goed zichtbaar zijn op mobiel */
    footer .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Hoofdkleuren */
.text-red-600 {
    color: #e53e3e;
}

.bg-red-600 {
    background-color: #e53e3e;
}

.bg-red-700, .hover\:bg-red-700:hover {
    background-color: #c53030;
}

/* Schaduw voor de bovenkant (voor de footer) */
.shadow-md-top {
    box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.05);
}

/* Productkaart animaties */
.bg-white.rounded-lg.shadow-sm {
    transition: transform 0.2s, box-shadow 0.2s;
}

.bg-white.rounded-lg.shadow-sm:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Ronde knoppen voor scannen */
.scan-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Animaties voor de knoppen */
.transition.duration-300 {
    transition-property: background-color, transform, box-shadow;
    transition-duration: 300ms;
}

button:active {
    transform: scale(0.98);
}

/* Responsive aanpassingen */
@media (max-width: 640px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .footer {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
}

/* QR code container styling */
#qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 200px;
    margin: 0 auto;
}

/* QR Scanner stijl */
#qr-reader {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#qr-reader img {
    width: 100%;
    height: auto;
}

#qr-reader__scan_region {
    position: relative;
}

#qr-reader__scan_region::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #e5322d;
    z-index: 1;
}

/* Verberg overbodige HTML5QrCode UI elementen */
#html5-qrcode-button-camera-stop {
    background-color: #e5322d !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

#html5-qrcode-button-camera-start {
    display: none !important;
}

#html5-qrcode-anchor-scan-type-change {
    display: none !important;
}

/* Star rating stijling */
.star-rating {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.star-rating .star {
    color: #d1d5db; /* Grijze kleur voor lege sterren */
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
    margin: 0 2px;
}

.star-rating .star.selected {
    color: #fbbf24; /* Geel/goud voor geselecteerde sterren */
}

.star-rating .star:hover {
    color: #f59e0b; /* Oranje bij hover */
}

/* Top rated product styling */
.top-rated-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #fbbf24;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 0 0 0 8px;
}

.score-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.avg-score {
    display: flex;
    align-items: center;
}

.avg-score-value {
    font-weight: bold;
    margin-right: 4px;
}

.avg-score-star {
    color: #fbbf24;
    font-size: 16px;
}

/* Updates highlight effect */
@keyframes highlight-update {
    0% {
        background-color: rgba(250, 204, 21, 0.2); /* Subtle yellow flash */
    }
    100% {
        background-color: transparent;
    }
}

.highlight-update {
    animation: highlight-update 1.5s ease-out;
}

/* Realtime indicator */
#realtime-indicator {
    opacity: 0.7;
    transition: opacity 0.3s;
}

#realtime-indicator.inactive {
    opacity: 0.3;
}

#realtime-indicator.offline {
    background-color: #f87171;
}

/* Verwijderknop styling */
.remove-product-btn {
    opacity: 0.8;
    transition: all 0.2s ease;
}

.remove-product-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.remove-product-btn:active {
    transform: scale(0.95);
}

/* Zorg ervoor dat de verwijderknop goed zichtbaar is op verschillende achtergronden */
.remove-product-btn {
    backdrop-filter: blur(4px);
    background-color: rgba(220, 38, 38, 0.9) !important;
}

.remove-product-btn:hover {
    background-color: rgba(185, 28, 28, 0.95) !important;
}

/* Image Lightbox stijlen */
#image-lightbox-modal {
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease-in-out;
}

#image-lightbox-modal.opacity-100 {
    opacity: 1;
}

#lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    transition: transform 0.3s ease-in-out;
}

#lightbox-title {
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

#close-lightbox-btn {
    transition: all 0.2s ease-in-out;
}

#close-lightbox-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Zoom knop stijlen */
.zoom-product-btn {
    backdrop-filter: blur(4px);
    transition: all 0.2s ease-in-out;
}

.zoom-product-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.zoom-product-btn:active {
    transform: scale(0.95);
}

/* Zorg ervoor dat de zoom knop goed zichtbaar is op verschillende achtergronden */
.zoom-product-btn svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Responsive aanpassingen voor lightbox */
@media (max-width: 640px) {
    #lightbox-image {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    #close-lightbox-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    #close-lightbox-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    #lightbox-title {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
} 