* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

#reader {
    width: 95%;
    max-width: 500px;
    overflow: hidden;
    margin-bottom: 20px;
}

/*#reader #qr-shaded-region > div{*/
/*    background-color: red !important;*/
/*}*/

.controls {
    margin-bottom: 20px;
}

.btn {
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

#torchButton {
    color: #333;
}

#startButton {
    background-color: #28a745;
}

#startButton:hover {
    background-color: #218838;
}

#stopButton {
    background-color: #dc3545;
}

#stopButton:hover {
    background-color: #c82333;
}

#results-container {
    width: 95%;
    max-width: 500px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

#scanned-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#scanned-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
}

.ttn-status-message {
    font-size: 13px;
    color: #555;
    margin-top: 5px;
}

#scanned-list li.valid {
    border-left: 4px solid #28a745;
}
#scanned-list li.invalid {
    border-left: 4px solid #dc3545;
}