:root {
    --primary-color: #4e73df;
    --secondary-color: #1cc88a;
    --dark-color: #5a5c69;
    --light-color: #f8f9fc;
}

body {
    background-color: #f8f9fc;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
}

.camera-container {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-placeholder {
    text-align: center;
    color: #fff;
    padding: 20px;
}

#scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.scan-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 150px;
    border: 3px solid rgba(78, 115, 223, 0.8);
    border-radius: 8px;
    box-shadow: 0 0 0 10000px rgba(0, 0, 0, 0.5);
    display: none;
    pointer-events: none;
}

.scanning {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { border-color: rgba(78, 115, 223, 0.8); }
    50% { border-color: rgba(28, 200, 138, 0.8); }
    100% { border-color: rgba(78, 115, 223, 0.8); }
}

#result-container {
    transition: all 0.3s ease;
}

.history-item {
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.history-item:hover {
    transform: translateX(5px);
}

/* Responsividade melhorada */
@media (max-width: 576px) {
    .camera-container {
        height: 250px;
    }
    
    .scan-overlay {
        width: 90%;
        height: 120px;
    }
}

/* Ajustes para PWA */
@media all and (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}
