
/* ===== BODY ===== */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: white;
    text-align: center;

    background: url("/static/background_img.png") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;

    min-height: 100vh;
    overflow-x: hidden;
}

/* DARK OVERLAY */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: -1;
}

/* ===== HEADING ===== */
h1 {
    margin-top: 30px;
    font-size: 30px;
}

/* ===== HOME CARDS ===== */
.container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 80px;
    flex-wrap: wrap;
}

.card {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 15px;
    width: 200px;
    cursor: pointer;
    transition: 0.3s;
}

.card:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.3);
}

/* ===== FORM (PERFECT FIX) ===== */
form {
    width: 100%;
    max-width: 420px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(0,0,0,0.7);
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* ===== INPUT ===== */
input, select {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

/* HOVER */
input:hover, select:hover {
    background: #eaeaea;
}

/* FOCUS */
input:focus, select:focus {
    background: #ffffff;
    box-shadow: 0 0 10px #00c6ff;
}

/* ===== BUTTON ===== */
button {
    padding: 12px;
    width: 100%;
    max-width: 220px;
    border: none;
    border-radius: 6px;
    background: #00c6ff;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #0072ff;
    transform: scale(1.05);
}

/* ===== ADMIN BUTTON BAR ===== */
.admin-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.admin-bar button {
    width: 220px;
}

/* ===== CAMERA BOX ===== */
.camera-box {
    margin-top: 40px;
    border: 3px solid #00c6ff;
    padding: 10px;
    border-radius: 12px;
    display: inline-block;

    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 15px rgba(0,198,255,0.7);
}

/* CAMERA IMAGE FIX */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ===== CENTER BOX (HELP FIX) ===== */
.center-box {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

/* ===== HELP PANEL ===== */
.camera-box p {
    line-height: 1.6;
}

/* ===== TABLE ===== */
table {
    margin: 30px auto;
    width: 70%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: #00c6ff;
    padding: 12px;
}

td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

tr:hover {
    background: rgba(255,255,255,0.1);
}

/* ===== HOME BUTTON ===== */
.home-btn {
    margin-top: 20px;
    background: #ff4b2b;
}

.home-btn:hover {
    background: #ff416c;
}

/* ===== LINKS ===== */
a {
    text-decoration: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #00c6ff;
    border-radius: 10px;
}
/* ===== ADDED FOR THE PUBLIC DEMO (camera overlay, banner, credentials box, progress bar) ===== */

.camera-box{ position: relative; }
.camera-box video{ display:block; width:650px; max-width:100%; border-radius:10px; }
.camera-box canvas#overlay{ position:absolute; top:10px; left:10px; width:calc(100% - 20px); height:calc(100% - 20px); pointer-events:none; }

.capture-progress{ width:70%; max-width:420px; height:10px; margin:14px auto; border-radius:999px; background:rgba(255,255,255,0.15); overflow:hidden; }
.capture-progress-fill{ height:100%; width:0%; background:#00c6ff; transition: width .3s ease; }

.demo-banner{
  margin: 0 auto 10px; max-width: 720px; padding: 12px 18px;
  background: rgba(255,75,43,0.18); border: 1px solid #ff4b2b; border-radius: 10px;
  font-size: 14px; line-height: 1.5; text-align: center;
}
.demo-banner a{ color:#8fe3ff; text-decoration: underline; margin-left: 8px; }

.demo-login-box{
  max-width: 320px; margin: 26px auto 0; padding: 16px 20px;
  background: rgba(0,198,255,0.12); border: 1px solid #00c6ff; border-radius: 10px;
}
.demo-login-box h3{ margin: 0 0 8px; font-size: 16px; }
.demo-login-box p{ margin: 4px 0; }
.demo-login-box code{ background: rgba(0,0,0,0.4); padding: 2px 8px; border-radius: 4px; }
