/* File: assets/css/neoglass.css */

:root {
    --bg-color: #080d1a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-muted: #94a3b8;
    --accent-color: #f59e0b;
}

/* =========================================
   HARAMKAN SCROLLBAR TAPI TETAP BISA SCROLL
   ========================================= */
::-webkit-scrollbar { width: 0px; background: transparent; display: none !important; }
* { scrollbar-width: none; -ms-overflow-style: none; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0; padding: 0; width: 100%; height: 100vh;
    background-color: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary); overflow: hidden; overscroll-behavior-y: none;
}

.bg-blobs { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.blob { position: absolute; filter: blur(90px); opacity: 0.3; border-radius: 50%; }
.blob-1 { width: 300px; height: 300px; background: #b91c1c; top: -50px; left: -50px; }
.blob-2 { width: 250px; height: 250px; background: #d97706; bottom: -50px; right: -50px; }

.app-container {
    width: 100%; height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 15px 10px; box-sizing: border-box; display: flex; justify-content: center; align-items: flex-start;
}

.glass-card {
    width: 100%; max-width: 420px; /* Diperkecil agar lebih ramping */
    background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 24px; border: 1px solid var(--glass-border); border-top: 1px solid var(--glass-highlight);
    padding: 25px 20px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); margin-bottom: 40px;
}

/* LOGO MEWAH */
.header { text-align: center; margin-bottom: 25px; }
.header img { width: 60px; height: auto; margin-bottom: 10px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); }
.header h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: 0.5px; }
.header p { margin: 5px 0 0; font-size: 13px; color: var(--accent-color); font-weight: 500;}

/* INPUT & MENU (DIKECILKAN AGAR TIDAK RAKSASA) */
.form-grid { display: block; }
.input-group { position: relative; margin-bottom: 18px; }
.input-group input, .input-group textarea, .input-group select {
    width: 100%; padding: 12px 14px; /* Padding dikecilkan */
    background: rgba(0, 0, 0, 0.3); border: 1px solid transparent; border-radius: 12px;
    color: var(--text-primary); font-size: 14px; /* Font dikecilkan */
    box-sizing: border-box; outline: none; transition: all 0.3s ease; appearance: none;
}
.input-group select option { background-color: var(--bg-color); color: var(--text-primary); padding: 10px; }
.input-group input:focus, .input-group textarea:focus, .input-group select:focus {
    border-color: var(--accent-color); background: rgba(0, 0, 0, 0.5);
}
.input-group label {
    position: absolute; top: 12px; left: 14px; color: var(--text-muted);
    font-size: 14px; pointer-events: none; transition: all 0.2s ease;
}
.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label {
    top: -8px; left: 10px; font-size: 11px; background: #0c1222; padding: 2px 6px; color: var(--accent-color); border-radius: 4px;
}

/* TOMBOL KAMERA KTP & WAJAH */
.upload-section { display: flex; gap: 10px; margin-bottom: 25px; }
.btn-camera-trigger {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 15px 5px; background: rgba(0, 0, 0, 0.3); border: 1px dashed var(--glass-border);
    border-radius: 14px; cursor: pointer; color: var(--text-primary); font-size: 12px;
    transition: all 0.2s; -webkit-appearance: none;
}
.btn-camera-trigger:active { background: rgba(245, 158, 11, 0.1); border-color: var(--accent-color); }
.btn-camera-trigger.success { border-color: #10b981; color: #10b981; border-style: solid; }
.upload-icon { font-size: 24px; margin-bottom: 5px; }

/* TOMBOL SUBMIT KECIL ELEGANT */
.btn-submit {
    width: 100%; padding: 14px; background: linear-gradient(135deg, #f59e0b, #b45309);
    color: white; border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
    cursor: pointer; box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3); transition: all 0.2s;
}
.btn-submit:active { transform: scale(0.97); }

/* =========================================
   UI KAMERA NATIVE & CUSTOM POPUP (ANTI BROWSER)
   ========================================= */
.custom-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.custom-modal.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: #1e293b; border-radius: 20px; padding: 25px; width: 85%; max-width: 320px;
    text-align: center; border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.modal-content h3 { margin: 0 0 10px; font-size: 18px; color: var(--accent-color); }
.modal-content p { margin: 0 0 20px; font-size: 14px; color: #cbd5e1; line-height: 1.5; }
.btn-modal-close {
    background: var(--accent-color); color: #fff; border: none; padding: 10px 25px;
    border-radius: 8px; font-weight: bold; font-size: 14px; cursor: pointer; width: 100%;
}

.camera-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000;
    z-index: 9998; display: none; flex-direction: column; justify-content: space-between;
}
.camera-container.active { display: flex; }
#cameraVideo { width: 100%; height: 100%; object-fit: cover; position: absolute; top:0; left:0; z-index: 1;}

/* BINGKAI KTP / WAJAH (OVERLAY) */
.camera-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
    display: flex; justify-content: center; align-items: center; pointer-events: none;
}
.frame-ktp {
    width: 85%; height: 220px; border: 3px solid #10b981; border-radius: 12px;
    box-shadow: 0 0 0 2000px rgba(0,0,0,0.6); position: relative;
}
.frame-ktp::after { content: "Posisikan KTP di dalam garis"; position: absolute; bottom: -30px; left: 0; width: 100%; text-align: center; color: #10b981; font-size: 12px; font-weight: bold; }

.frame-wajah {
    width: 250px; height: 320px; border: 3px solid #f59e0b; border-radius: 50%;
    box-shadow: 0 0 0 2000px rgba(0,0,0,0.6); position: relative;
}
.frame-wajah::after { content: "Posisikan Wajah di dalam oval"; position: absolute; bottom: -30px; left: 0; width: 100%; text-align: center; color: #f59e0b; font-size: 12px; font-weight: bold; }

.camera-controls {
    position: relative; z-index: 3; padding: 30px 20px; background: linear-gradient(transparent, rgba(0,0,0,0.9));
    display: flex; justify-content: space-between; align-items: center; margin-top: auto;
}
.btn-cam-cancel { background: rgba(255,255,255,0.2); color: white; border: none; padding: 12px 20px; border-radius: 30px; font-size: 14px; backdrop-filter: blur(10px); }
.btn-cam-capture { width: 70px; height: 70px; background: white; border: 5px solid #cbd5e1; border-radius: 50%; cursor: pointer; }
.btn-cam-capture:active { background: #cbd5e1; transform: scale(0.95); }