body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #121212;
    color: #fff;
}

.container {
    text-align: center;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    width: 320px;
}

#display {
    width: 100%;
    height: 50px;
    line-height: 50px;
    font-size: 24px;
    text-align: right;
    border: 1px solid #555;
    border-radius: 4px;
    margin-bottom: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    background-color: #333;
    color: #fff;
}

#keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.key, #clear, #backspace {
    height: 60px;
    font-size: 24px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    cursor: pointer;
}

.key:active, #clear:active, #backspace:active {
    background-color: #555;
}

#check-id, #scan-qr, #scan-next, #close-camera {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    margin-top: 5px;
}

#check-id {
    background-color: #0056b3;
}

#scan-qr {
    background-color: #495057;
}

#scan-next {
    background-color: #0056b3;
}

#close-camera {
    background-color: #a71d2a;
}

#qr-reader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#qr-reader-inner {
    width: 80%;
    max-width: 500px;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
}

.camera-controls {
    margin-top: 10px;
    color: white;
}

#status-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}