/* style.css - Styles spécifiques non gérés par Tailwind CSS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --primary-light: #e0f2fe;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Transitions globales pour l'interface */
.transition-all-custom {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Lecteur QR Code HTML5 */
#reader {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    background-color: #000;
}

#reader__scan_region {
    background-color: #000;
    width: 100% !important;
    height: 100% !important;
}

#reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Animation de particules flottantes pour la page de connexion */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background-color: var(--primary);
    border-radius: 50%;
    animation: moveUp infinite linear;
}

@keyframes moveUp {
    from {
        transform: translateY(100vh) scale(0.5);
        opacity: 0.8;
    }
    to {
        transform: translateY(-10vh) scale(1.2);
        opacity: 0;
    }
}

/* Helper classes for JS interactions (Mobile toggle sidebar & Accordion list) */
@media (max-width: 1023px) {
    .app-sidebar.show {
        transform: translateX(0) !important;
    }
}
.demo-list.show {
    display: flex !important;
}

/* Animations et overlays du scanneur QR Code */
.scan-line {
    position: absolute;
    width: 70%;
    height: 2px;
    background-color: #0ea5e9;
    box-shadow: 0 0 8px #0ea5e9;
    animation: scannerLoop 2s infinite linear;
}

@keyframes scannerLoop {
    0% { top: 15%; }
    50% { top: 85%; }
    100% { top: 15%; }
}

.scan-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #0ea5e9;
}

.scan-corner.top-left { top: 15%; left: 15%; border-right: none; border-bottom: none; }
.scan-corner.top-right { top: 15%; right: 15%; border-left: none; border-bottom: none; }
.scan-corner.bottom-left { bottom: 15%; left: 15%; border-right: none; border-top: none; }
.scan-corner.bottom-right { bottom: 15%; right: 15%; border-left: none; border-top: none; }
