* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #f0f4f8;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 550px;
    margin: auto;
    background: white;
    border-radius: 28px;
    padding: 24px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

h2, h3 {
    text-align: center;
    color: #1e3c72;
}

select, input {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border-radius: 60px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.tombol-group {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    padding: 14px 0;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 60px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.masuk { background: #2e7d32; }
.pulang { background: #d32f2f; }
.backup { background: #f57c00; }

.btn:active { transform: scale(0.97); }

#qr-reader {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
    background: #000;
    min-height: 300px;
}

#qr-reader video,
#qr-reader canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
}

#status {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    background: #f8f9fa;
    margin: 8px 0;
    padding: 10px;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

a {
    text-decoration: none;
}

a.btn {
    display: inline-block;
    padding: 12px 20px;
    margin: 8px 0;
    background: #28a745;
    color: white;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
}

#qrCode {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 200px;
}

#qrCode canvas {
    display: block !important;
    margin: 0 auto !important;
    max-width: 220px !important;
    height: auto !important;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}