/* style.css */
:root { --primary: #3498db; --success: #2ecc71; --dark: #2c3e50; --bg: #f4f7f6; --danger: #ff7675; }
body { font-family: -apple-system, system-ui, sans-serif; background: var(--bg); margin: 0; padding: 0; }
.top-bar { background: var(--dark); color: white; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.container { padding: 15px; max-width: 500px; margin: 0 auto; }
.box { background: white; padding: 20px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 20px; }
input, select { width: 100%; padding: 14px; border: 2px solid #edf2f7; border-radius: 12px; font-size: 16px; box-sizing: border-box; outline: none; margin-bottom: 10px; }
.btn { width: 100%; padding: 16px; border: none; border-radius: 12px; font-size: 16px; font-weight: bold; cursor: pointer; text-align:center; display:block; text-decoration:none; }
.btn-blue { background: var(--primary); color: white; }
.user-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eee; gap: 5px; }
.btn-del { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 18px; }
.badge { padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: bold; background: #eee; color: #555; }
.input-wrapper { position: relative; margin-bottom: 12px; }
.scan-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--success); border: none; width: 48px; height: 48px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5; transition: 0.2s; }
.scan-btn svg { width: 26px; height: 26px; fill: white; }
#video-container { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 50vh; background: #000; z-index: 3000; overflow: hidden; }
video { width: 100%; height: 100%; object-fit: cover; }
.scanner-viewfinder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 3001; }
.scanner-box { width: 250px; height: 150px; border: 2px solid var(--success); box-shadow: 0 0 0 1000px rgba(0,0,0,0.5); position: relative; border-radius: 10px; }
.scanner-laser { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: #ff0000; box-shadow: 0 0 10px 2px red; animation: laserMove 2s infinite linear; }
@keyframes laserMove { 0% { top: 0%; } 50% { top: 100%; } 100% { top: 0%; } }
#panel { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: white; border-radius: 24px 24px 0 0; z-index: 1000; padding: 25px 20px; box-sizing: border-box; box-shadow: 0 -10px 30px rgba(0,0,0,0.2); max-height: 65vh; overflow-y: auto; }
#overlay { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.4); z-index:999; }
.res-row { display: flex; justify-content: space-between; align-items: center; background: #f8fafc; padding: 12px; border-radius: 12px; margin-bottom: 8px; border-left: 4px solid var(--primary); }
.ac-list { position: absolute; top: 100%; left: 0; right: 0; background: white; z-index: 2000; border: 1px solid #edf2f7; display: none; max-height: 200px; overflow-y: auto; }
.ac-item { padding: 14px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }#video-container {
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #000;
    display: none; /* Rodysime tik kai skenuojam */
    aspect-ratio: 4 / 3;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-btn {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    padding: 0 15px;
    font-size: 20px;
}