/* PALETA DE COLORES BATTLEFIELD 6 */
:root {
    --bf-neon: #94FF0B;
    --bf-bg: #050505;
    --bf-surface: #121212;
    --bf-border: #2a2a2a;
}

/* BASE */
body {
    background-color: var(--bf-bg) !important;
    color: #ffffff !important;
    font-family: 'Oswald', sans-serif !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

/* NAVBAR */
.navbar {
    background-color: var(--bf-bg) !important;
    border-bottom: 2px solid var(--bf-neon) !important;
    padding: 1rem 0 !important;
}

/* BOTÓN GEOMÉTRICO */
.btn-bf {
    background-color: var(--bf-neon) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 25px !important;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-bf:hover {
    background-color: #fff !important;
    box-shadow: 0 0 15px var(--bf-neon);
}

/* TABLA HUD */
.table-hud {
    width: 100%;
    color: #fff !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
}

.table-hud thead th {
    color: var(--bf-neon) !important;
    border: none !important;
    padding: 15px !important;
}

.table-hud tbody tr {
    background-color: var(--bf-surface) !important;
}

.table-hud td {
    padding: 15px !important;
}

/* ESTILO LOGIN / GESTIÓN */
.login-card {
    background-color: var(--bf-surface);
    border-left: 5px solid var(--bf-neon);
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

.form-control-bf {
    background-color: #000 !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 12px !important;
}

.form-control-bf:focus {
    border-color: var(--bf-neon) !important;
    box-shadow: 0 0 10px rgba(148, 255, 11, 0.2) !important;
    outline: none;
}

/* --- FOOTER BF6 --- */
.footer-bf {
    background-color: #000;
    border-top: 1px solid #222;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

.hud-line-container { display: flex; align-items: center; }
.hud-line-active { width: 20px; height: 3px; background-color: var(--bf-neon); margin-right: 5px; }
.hud-line-dim { width: 100%; height: 1px; background-color: #333; }

.footer-link-bf {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    transition: 0.3s;
}

.footer-link-bf:hover {
    color: var(--bf-neon) !important;
    text-shadow: 0 0 8px var(--bf-neon);
}

/* --- EXTENSIONES HUD --- */
.label-visible {
    color: #FFFFFF !important;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
    border-left: 3px solid var(--bf-neon);
    padding-left: 10px;
}

.label-stats { color: #aaaaaa; font-size: 0.7rem; font-weight: 400; margin-bottom: 0; }
.text-neon { color: var(--bf-neon) !important; }
.val-neon { color: var(--bf-neon); font-weight: 800; text-shadow: 0 0 8px rgba(148, 255, 11, 0.3); }
.kd-value { font-size: 2.2rem; font-weight: 700; color: var(--bf-neon); line-height: 1; }

.card-elite {
    background-color: var(--bf-surface);
    border-left: 5px solid var(--bf-neon);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-elite:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(148, 255, 11, 0.15);
}

.alert-hud {
    background: #000;
    border: 1px solid var(--bf-neon);
    color: var(--bf-neon);
    font-weight: bold;
    text-align: center;
    font-size: 0.8rem;
    padding: 12px;
}

.badge-rank {
    background: #000;
    color: var(--bf-neon);
    border: 1px solid var(--bf-neon);
    font-size: 0.75rem;
    padding: 2px 10px;
    font-weight: bold;
}

/* --- OPTIMIZACIÓN MÓVIL UNIFICADA (Ajustes para Tablets y Celulares) --- */
@media (max-width: 991.98px) {
    body { font-size: 14px; }
    h1 { font-size: 1.8rem !important; }
    h3, h4 { font-size: 1.2rem !important; text-align: center; }

    .login-card {
        padding: 25px !important;
        max-width: 100% !important;
    }

    .btn-bf {
        width: 100%;
        text-align: center;
        clip-path: none !important; /* Desactivar clip-path para mejor área de toque */
        margin-bottom: 10px;
    }

    .table-hud td, .table-hud th {
        padding: 10px 8px !important;
        font-size: 0.75rem;
    }

    .card-elite {
        margin-bottom: 10px;
        padding: 1rem !important;
    }

    .kd-value { font-size: 1.8rem; }
}

.text-white, .text-neon { word-break: break-word; }

/* --- INTERFAZ DE SINCRONIZACIÓN (SYNC ENGINE) --- */

/* Contenedor de la Consola */
.terminal-console {
    background-color: #000;
    border: 1px solid var(--bf-border);
    font-family: 'Courier New', monospace;
    color: var(--bf-neon);
    padding: 20px;
    height: 250px;
    overflow-y: auto;
    position: relative;
    font-size: 0.85rem;
    text-transform: none; /* Look de código real */
    box-shadow: inset 0 0 20px rgba(0,0,0,1);
}

/* Efecto de líneas de escaneo (Scanlines) */
.terminal-console::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(148, 255, 11, 0.03) 50%, transparent 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

/* Barra de Progreso HUD */
.progress-hud-container {
    background: rgba(255, 255, 255, 0.05);
    height: 12px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #333;
    margin-bottom: 20px;
}

.progress-hud-bar {
    background-color: var(--bf-neon);
    width: 0%;
    height: 100%;
    box-shadow: 0 0 15px var(--bf-neon);
    transition: width 0.4s ease;
}

/* Animación de pulso para el estado */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--bf-neon);
    margin-right: 10px;
    animation: blink-neon 1s infinite;
}

@keyframes blink-neon {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.3; filter: brightness(0.5); }
}

/* Scrollbar personalizada para la terminal */
.terminal-console::-webkit-scrollbar { width: 5px; }
.terminal-console::-webkit-scrollbar-track { background: #000; }
.terminal-console::-webkit-scrollbar-thumb { background: var(--bf-border); }
/* Corrección de alineación del Navbar */
.navbar-nav .nav-link {
    white-space: nowrap !important; /* Fuerza al texto a quedarse en una sola línea */
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre el icono y el texto */
}

/* Asegura que los items no se apilen en escritorio */
@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row !important;
    }
}

/* ESTRUCTURA PARA STICKY FOOTER */
html, body {
    height: 100%; /* Necesario para que el flex sepa cuánto medir */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* El contenedor principal (abierto en header y cerrado en footer) 
   debe crecer para ocupar el espacio disponible */
body > .container {
    flex: 1 0 auto;
}

/* El footer se mantiene al final */
.footer-bf {
    flex-shrink: 0;
}

/* MEJORA DE VISIBILIDAD EN FOOTER */
.footer-bf .text-muted {
    color: rgba(255, 255, 255, 0.5) !important; /* Subimos la opacidad al 50% */
    letter-spacing: 1.5px;
}

/* Clase específica para los textos de "Sistema de Monitoreo" y "Encrypted" */
.footer-terminal-text {
    color: rgba(255, 255, 255, 0.6) !important; /* Un poco más brillante para lectura rápida */
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 300;
}
/* DISEÑO DEL SCROLL PARA LA VITRINA DE MEDALLAS */
.vitrina-scroll::-webkit-scrollbar {
    height: 6px; /* Barra delgada y elegante */
}

.vitrina-scroll::-webkit-scrollbar-track {
    background: #111419; /* Mismo color del fondo de la tarjeta */
    border-radius: 4px;
}

.vitrina-scroll::-webkit-scrollbar-thumb {
    background-color: #2d3748; /* Color gris oscuro */
    border-radius: 4px;
}

.vitrina-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #00ff41; /* Brilla en verde al pasar el mouse */
}

/* Para compatibilidad con Firefox */
.vitrina-scroll {
    scrollbar-width: thin;
    scrollbar-color: #2d3748 #111419;
}