body {
    background: url('/static/background.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #eaf6ff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Glassmorphism navbar */
.navbar-glass {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 30px auto 46px auto;
    background: rgba(38,60,80,0.16);
    border-radius: 18px;
    padding: 13px 10px 9px 10px;
    box-shadow: 0 4px 16px rgba(40,80,160,0.13);
    z-index: 2;
    position: relative;
}
.navbar-glass a {
    color: #f0f8ff;
    text-decoration: none;
    font-size: 1.13em;
    font-weight: 500;
    padding: 6px 18px;
    border-radius: 9px;
    background: rgba(100,160,230,0.10);
    transition: background 0.2s, color 0.2s;
}
.navbar-glass a:hover, .navbar-glass a:focus {
    background: #49a5ff;
    color: #fff;
    text-shadow: 0 2px 6px #2a3e59a2;
}

/* Overlay for background tint, but NOT blocking any content! */
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(40, 60, 100, 0.34);
    z-index: 0;
    pointer-events: none; /* ensures overlay never blocks clicks */
}

/* Main container (wider for landing/admin/surveyor) */
.container {
    max-width: 850px;
    margin: 60px auto 50px auto;
    background: rgba(25,35,45,0.17);
    border-radius: 21px;
    box-shadow: 0 0 32px rgba(20,40,75,0.18);
    padding: 44px 36px 36px 36px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: block;
    margin: 0 auto 26px auto;
    width: 295px;
    max-width: 80vw;
    border-radius: 12px;
    background: transparent;
}

/* Form fields and inputs */
input[type="text"], input[type="password"], input[type="email"], textarea {
    width: 98%;
    max-width: 550px;
    margin: 9px 0 19px 0;
    padding: 11px 13px;
    border-radius: 9px;
    border: 1px solid #6ebfff4b;
    background: rgba(200, 220, 245, 0.07);
    color: #eaf6ff;
    font-size: 1em;
    outline: none;
    transition: border 0.2s;
}
input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
    border: 1.5px solid #59b5f9;
    background: rgba(30, 60, 120, 0.11);
}
input[type="checkbox"] {
    transform: scale(1.22);
    accent-color: #41b9ff;
}

label {
    font-size: 1.07em;
    color: #e3f3ff;
    font-weight: 500;
}

.button-link, input[type="submit"], button {
    background: linear-gradient(90deg, #49a5ff 30%, #5cd7e3 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.09em;
    padding: 11px 28px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 8px #2a92c211;
    margin: 10px 6px 10px 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.12s;
    outline: none;
    text-decoration: none;
    display: inline-block;
}
.button-link:hover, input[type="submit"]:hover, button:hover {
    background: linear-gradient(90deg, #3f84f3 30%, #38e0b5 100%);
    transform: scale(1.04);
}
.logout-button {
    background: linear-gradient(90deg, #fc5858 40%, #f37a67 100%);
    color: #fff !important;
    margin-left: 7px;
    padding: 11px 26px;
}
.logout-button:hover {
    background: linear-gradient(90deg, #f54646 35%, #ffb88c 100%);
}

.flash {
    color: #ffcf5b;
    background: rgba(40,60,90,0.13);
    border-radius: 9px;
    padding: 13px 10px;
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* Admin panel user table */
.admin-table, .user-table, .ai-checklist {
    width: 98%;
    margin: 34px auto 24px auto;
    border-collapse: collapse;
    background: rgba(30,60,110,0.09);
    border-radius: 11px;
    overflow: hidden;
    font-size: 1em;
}
.admin-table th, .user-table th, .ai-checklist th {
    background: rgba(80,120,180,0.19);
    color: #fff;
    font-weight: 700;
    padding: 10px 8px;
    border-bottom: 2px solid #87b7ff49;
}
.admin-table td, .user-table td, .ai-checklist td {
    padding: 9px 7px;
    border-bottom: 1px solid #5faaff1a;
    color: #d8f2ff;
}
.admin-table tr:last-child td,
.user-table tr:last-child td,
.ai-checklist tr:last-child td {
    border-bottom: none;
}

/* Small action buttons for admin panel */
.small-btn {
    font-size: 0.87em !important;
    padding: 3px 10px 2px 10px !important;
    margin: 0 2px !important;
    min-width: 60px;
    border-radius: 7px !important;
}
.danger {
    background: linear-gradient(90deg, #fc5858 40%, #f37a67 100%) !important;
}
.danger:hover {
    background: linear-gradient(90deg, #f54646 35%, #ffb88c 100%) !important;
}

.small-info {
    font-size: 0.8em;
    color: #b8c6d7;
    margin-top: 2px;
    letter-spacing: 0.01em;
    font-style: italic;
}

/* Identity check/QA Results */
.result-identity {
    margin: 30px 0 28px 0;
    background: rgba(40,80,140,0.13);
    padding: 20px 18px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(10,60,140,0.13);
}
.identity-columns {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 14px;
}
.identity-block {
    background: rgba(30,80,160,0.09);
    padding: 15px 18px 13px 18px;
    border-radius: 9px;
    width: 400px;
    font-size: 1.02em;
}
.identity-block ul {
    text-align: left;
    margin: 0; padding: 0 0 0 14px;
}
.match-summary {
    margin: 18px auto 0 auto;
    text-align: left;
    max-width: 390px;
    font-size: 1.08em;
    padding-left: 7px;
}
.result-box {
    background: rgba(60,140,200,0.10);
    border-radius: 12px;
    padding: 18px 13px 15px 13px;
    margin: 28px 0;
    box-shadow: 0 0 8px rgba(90,190,255,0.08);
}
.result-box h2 { margin-top: 0; }

.ai-checklist th, .ai-checklist td {
    text-align: left;
    padding: 8px 6px;
}
.ai-checklist tr:nth-child(even) {
    background: rgba(28,90,150,0.08);
}

/* QA/Surveyor Chat */
.qa-container, .survey-container {
    max-width: 900px;
    margin: 60px auto 40px auto;
    padding: 34px 38px 30px 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(30,60,90,0.15);
}
.qa-history {
    background: rgba(40,80,160,0.08);
    padding: 16px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    max-height: 360px;
    overflow-y: auto;
}
.qa-user { color: #76d6ff; margin-bottom: 8px; }
.qa-ai { color: #b5ffc7; margin-bottom: 15px; }
.chat-label {
    font-size: 1.11em;
    color: #8bc6fc;
    margin-bottom: 4px;
    display: block;
}
.qa-upload {
    margin-bottom: 15px;
}
.qa-upload input[type="file"] {
    margin-top: 4px;
}

/* Landing (Home) welcome page tweaks */
.landing-welcome {
    background: rgba(40,60,90,0.15);
    border-radius:14px;
    padding:30px 20px 24px 20px;
    box-shadow: 0 2px 9px rgba(32,40,64,0.09);
    color: #f0f8ff;
    margin: 0 auto 30px auto;
    max-width: 750px;
}
.landing-welcome h1, .landing-welcome h2, .landing-welcome h3 {
    margin-top: 0;
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 950px) {
    .container, .qa-container, .survey-container {
        max-width: 98vw;
        padding: 8vw 2vw;
    }
    .identity-columns {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .admin-table, .user-table, .ai-checklist {
        font-size: 0.98em;
    }
    .landing-welcome {
        padding: 16px 5vw 18px 5vw;
        max-width: 98vw;
    }
}

footer {
    margin: 36px 0 10px 0;
    text-align: center;
    font-size: 1.11em;
    color: #aeeaf8;
    z-index: 3;
    position: relative;
}
footer a {
    color: #86d6e7;
    text-decoration: underline;
}

