﻿:root {
    --brand: #1a73e8;
    --bg: #0b1220;
    --card: #0f172a;
    --muted: #9aa3b2;
    --text: #e6ecf5;
    --line: #1f2a44;
    --ok: #22c55e;
    --warn: #f59e0b;
    --err: #ef4444;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    background: linear-gradient(180deg,#0b1220,#0e1627);
    color: var(--text);
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu;
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(15,23,42,.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
}

.title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2
}

.subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px
}

.wrap {
    max-width: 720px;
    margin: 14px auto;
    padding: 0 14px 40px
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(2,6,23,.3);
    margin-bottom: 16px;
    overflow: hidden;
}

    .card h3 {
        margin: 0;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
        font-size: 18px;
        font-weight: 800;
        letter-spacing: .2px;
    }

.content {
    padding: 16px;
    
}

.wcontent {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.welcome-container {
    
    /*display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;*/
    /* background-color: #161b22;*/
    background: linear-gradient(180deg,#0b1220,#0e1627);
    color: var(--text);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 40px 60px;
    text-align: center;
    /*max-width: 700px;*/
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.welcome-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.welcome-text h2 {
    font-size: 30px;
    margin-bottom: 15px;
    color: #ffcc00;
}

.welcome-text p {
    font-size: 18px;
    color: #c9d1d9;
    line-height: 1.6;
}
.doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line)
}
.final-container {
    /*background-color: #161b22;*/
    background: linear-gradient(180deg,#0b1220,#0e1627);
    color: var(--text);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 40px 60px;
    text-align: center;
    /*max-width: 700px;*/
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    animation: fadeIn 0.6s ease-in-out;
    /*display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;*/
}

.final-icon {
    font-size: 60px;
    margin-bottom: 10px;
    color: #2ecc71;
}

.final-text h1 {
    font-size: 30px;
    margin-bottom: 15px;
    color: #2ecc71;
}

.final-text h2 {
    font-size: 20px;
    font-weight: 400;
    color: #c9d1d9;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


    .doc-row:last-child {
        border-bottom: none
    }

.doc-name {
    font-size: 16px;
    font-weight: 700
}

.btn {
    appearance: none;
    border: 1px solid var(--line);
    background: #0b1220;
    color: var(--text);
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 800;
    cursor: pointer;
    min-height: 48px;
    font-size: 16px;
}

    .btn:hover {
        border-color: #2b3b63
    }

.btn-primary {
    background: var(--brand);
    border-color: var(--brand)
}

    .btn-primary:disabled {
        opacity: .6;
        cursor: not-allowed
    }

.btn-outline {
    background: transparent
}

.btn-camera {
    width: 100%;
    text-align: center
}

.uploader {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px
}

.up-card {
    border: 1px dashed #2b3b63;
    border-radius: 14px;
    padding: 12px
}

.up-head {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 8px
}

.helper {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px
}

.thumb {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    display: none;
    margin-top: 10px;
}

.hidden-file {
    display: none
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 6px
}

    .check-row input {
        width: 22px;
        height: 22px;
        margin-top: 3px
    }

label {
    font-size: 16px;
    line-height: 1.4
}

.signature {
    width: 100%;
    height: 160px;
    background: #0b1220;
    border: 2px dashed #2b3b63;
    border-radius: 14px;
    touch-action: none;
}

.status {
    margin-top: 10px;
    font-size: 13px
}

.pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 700
}

.pill-ok {
    border-color: #14532d;
    color: #86efac;
    background: rgba(34,197,94,.08)
}

.pill-warn {
    border-color: #854d0e;
    color: #facc15;
    background: rgba(245,158,11,.08)
}

.pill-err {
    border-color: #7f1d1d;
    color: #fca5a5;
    background: rgba(239,68,68,.08)
}

.footer-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px
}
.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(180deg,#0b1220,#0e1627);
    color: var(--text);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 30px 40px;
    margin: 50px auto;
    /*max-width: 700px;*/
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}

.error-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.error-text h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #ffcc00;
}

.error-text h2 {
    font-size: 20px;
    font-weight: 400;
    color: #c9d1d9;
}

@media (min-width:480px) {
    .footer-actions {
        justify-content: flex-start
    }


    .swal2-popup {
        background: var(--card) !important;
        border: 1px solid var(--line) !important;
        border-radius: 16px !important;
        color: var(--text) !important;
    }

    .swal2-title {
        color: var(--text) !important;
    }

    .swal2-content {
        color: var(--muted) !important;
    }

    .swal2-confirm {
        background: var(--brand) !important;
        border: none !important;
        border-radius: 14px !important;
        padding: 12px 24px !important;
        font-weight: 800 !important;

    }

    .swal2-cancel {
           background: transparent !important;
        border: 1px solid var(--line) !important;
        border-radius: 14px !important;
        color: var(--text) !important;
        padding: 12px 24px !important;
        font-weight: 800 !important;
        
    }

        .swal2-cancel:hover {
            border-color: #2b3b63 !important;
        }

    .swal2-backdrop {
        backdrop-filter: blur(4px) !important;
    }
}