body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
}

.container {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

h1 {
    color: #1a73e8;
    margin-top: 0;
}

#qr-reader-container {
    margin: 20px auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

#result-container {
    margin-top: 20px;
}

#result {
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
    font-weight: bold;
    word-wrap: break-word;
    border: 1px solid #ccc;
    background-color: #eee;
    transition: all 0.3s ease;
    text-align: left;
}

/* --- ESTILOS DO BOTÃO E CLASSE HIDDEN --- */
#scan-again-button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

#scan-again-button:hover {
    background-color: #155ab3;
}

.hidden {
    display: none;
}

/* --- CLASSES DE STATUS --- */
.status-sending {
    background-color: #e3f2fd;
    border-color: #90caf9;
    color: #0d47a1;
}

.status-success {
    background-color: #e8f5e9;
    border-color: #a5d6a7;
    color: #1b5e20;
}

.status-error {
    background-color: #ffebee;
    border-color: #ef9a9a;
    color: #b71c1c;
}

/* --- MEDIA QUERY PARA RESPONSIVIDADE --- */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    h1 {
        font-size: 1.8em;
    }
    #qr-reader {
        width: 100%;
    }
}
