* {
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #1a2a32;
    margin: 0;
    padding: 20px;
    color: #eee;
}
.container {
    max-width: 700px;
    margin: 0 auto;
    background: #0f1a1f;
    border-radius: 32px;
    padding: 20px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.3);
}
h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-top: 0;
    color: #ffb347;
}
.form-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.form-group input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 60px;
    border: none;
    font-size: 1rem;
}
.video-wrapper {
    position: relative;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 20px;
}
video {
    width: 100%;
    display: block;
}
.scan-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #ffb347;
    border-radius: 24px;
    pointer-events: none;
    display: none;
}
.status {
    padding: 12px;
    margin: 10px 0;
    border-radius: 60px;
    text-align: center;
    font-weight: bold;
}
.status.success { background: #146b3a; color: white; }
.status.error { background: #b91c1c; color: white; }
.status.warning { background: #ffb347; color: #1a2a32; }
.status.waiting { background: #2c3e3f; color: #eee; }
.info-panel {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    background: #1e2f38;
    padding: 12px;
    border-radius: 20px;
}
.info-card {
    flex: 1;
    background: #0f1a1f;
    padding: 12px;
    border-radius: 16px;
    text-align: center;
}
.info-card span:first-child {
    font-size: 0.8rem;
    opacity: 0.7;
    display: block;
}
.info-card span:last-child {
    font-size: 0.9rem;
    font-weight: bold;
}
.log-area {
    background: #0a1115;
    height: 150px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 20px;
    font-family: monospace;
    font-size: 0.8rem;
    margin-top: 20px;
}
.log-entry {
    padding: 4px 0;
    border-bottom: 1px solid #2c3e3f;
}
button {
    background: #ffb347;
    border: none;
    padding: 12px 20px;
    border-radius: 60px;
    font-weight: bold;
    cursor: pointer;
}
@media (max-width: 550px) {
    .info-panel { flex-direction: column; }
    .form-group { flex-direction: column; }
}

/* Membalikkan tampilan video menjadi normal (tidak mirror) */
video {
    transform: scaleX(-1);
}