/* biometria_sentinel.css — Cybernetic Biometric Facial Recognition HUD */
:root {
    --sentinel-cyan: #38bdf8;
    --sentinel-green: #10b981;
    --sentinel-red: #ef4444;
    --sentinel-dark: #06090e;
}

#sentinel-bio-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.sentinel-hud-card {
    background: linear-gradient(145deg, #0b1329 0%, #030712 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.25), 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    border-radius: 20px;
    width: 92%;
    max-width: 480px;
    padding: 24px;
    color: #f8fafc;
    position: relative;
    overflow: hidden;
    animation: sentinelPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sentinelPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.sentinel-hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.sentinel-badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--sentinel-cyan);
    color: var(--sentinel-cyan);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sentinel-viewfinder-container {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sentinel-viewfinder-container.status-match {
    border-color: var(--sentinel-green) !important;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.6) !important;
}

.sentinel-viewfinder-container.status-mismatch {
    border-color: var(--sentinel-red) !important;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.7) !important;
    animation: sentinelShake 0.4s ease-in-out;
}

@keyframes sentinelShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

#sentinel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Efecto espejo */
}

/* Retícula de focalización táctica */
.sentinel-reticle {
    position: absolute;
    inset: 15px;
    pointer-events: none;
    border-radius: 50%;
    border: 1px dashed rgba(56, 189, 248, 0.4);
    animation: sentinelSpin 20s linear infinite;
}

@keyframes sentinelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Línea láser de escaneo vertical */
.sentinel-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sentinel-cyan), #ffffff, var(--sentinel-cyan), transparent);
    box-shadow: 0 0 15px var(--sentinel-cyan);
    animation: sentinelScan 2s ease-in-out infinite alternate;
}

@keyframes sentinelScan {
    0% { top: 5%; opacity: 0.2; }
    50% { opacity: 1; }
    100% { top: 92%; opacity: 0.2; }
}

/* Caja de Estado / Mensajes */
.sentinel-status-box {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sentinel-status-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sentinel-status-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 3px;
}

/* Botones y Acciones Rápidas */
.sentinel-actions-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.sentinel-btn {
    padding: 8px 14px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sentinel-btn-primary {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
    border: 1px solid rgba(56, 189, 248, 0.4);
}
.sentinel-btn-primary:hover {
    background: #0284c7;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
}

.sentinel-btn-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}
.sentinel-btn-success:hover {
    background: #10b981;
    color: #fff;
}

.sentinel-btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.sentinel-btn-danger:hover {
    background: #ef4444;
    color: #fff;
}

.sentinel-btn-secondary {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
}
.sentinel-btn-secondary:hover {
    background: #334155;
    color: #fff;
}
