﻿html {
    font-size: 14px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
html,
body {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
    color: #212529;
    background-color: #0d1117; /* 👈 Pon el mismo color oscuro azulado que usas en el diseño */
}

.navbar-brand {
    letter-spacing: -0.5px;
    font-size: 1.2rem;
}

.btn-dark {
    background: #111;
    border: none;
}

    .btn-dark:hover {
        background: #000;
    }

.form-control {
    border-radius: 12px;
    border: 1px solid #dcdcdc;
    padding: 14px;
}

    .form-control:focus {
        box-shadow: none;
        border-color: #111;
    }

.card {
    border-radius: 24px;
}

.rounded-4 {
    border-radius: 1.2rem !important;
}

/* Variables de la Matrix */
:root {
    --bg-dark: #070b14; /* Casi negro azulado */
    --panel-bg: rgba(16, 26, 43, 0.65); /* Vidrio oscuro */
    --neon-blue: #00e5ff;
    --neon-green: #00ff66;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-glass: rgba(0, 229, 255, 0.15);
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, #111a2f 0%, transparent 50%);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Panel de Navegación Holográfica (Izquierda) */
.holo-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    bottom: 20px;
    width: 250px;
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.05);
    z-index: 1000;
}

.holo-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

    .holo-nav-link:hover, .holo-nav-link.active {
        background: rgba(0, 229, 255, 0.1);
        color: var(--neon-blue);
        border-left: 3px solid var(--neon-blue);
        box-shadow: inset 10px 0 20px rgba(0, 229, 255, 0.05);
    }

/* Contenido Principal */
.main-vault {
    margin-left: 290px; /* Espacio para el nav fijo */
    padding: 20px;
}

/* Tarjetas Bento Grid (Efecto Glassmorphism) */
.bento-card {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .bento-card:hover {
        box-shadow: 0 0 25px rgba(0, 229, 255, 0.1);
        border-color: rgba(0, 229, 255, 0.4);
    }

    .bento-card.finance-card {
        border-color: rgba(0, 255, 102, 0.5);
    }

        .bento-card.finance-card:hover {
            box-shadow: 0 0 25px rgba(0, 255, 102, 0.15);
            border-color: red;
        }

/* Tipografía y acentos */
.text-neon-blue {
    color: var(--neon-blue);
}

.text-neon-green {
    color: var(--neon-green);
}

.border-neon-blue {
    border-color: var(--neon-blue) !important;
}

/* Botones técnicos */
.btn-tech {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--neon-blue);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

    .btn-tech:hover {
        background: rgba(0, 229, 255, 0.1);
        border-color: var(--neon-blue);
        color: #fff;
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    }

.btn-tech-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

    .btn-tech-danger:hover {
        background: #dc3545;
        color: #fff;
        box-shadow: 0 0 12px rgba(220, 53, 69, 0.4);
    }

.border-dashed {
    border-style: dashed !important;
}

/* Corrección para celulares: Quitamos el margen izquierdo que usa el main-vault en escritorio */
/* =========================================
   MEDIA QUERIES - MÓVIL (hasta 767px)
========================================= */
@media (max-width: 767.98px) {
    /* El main baja para no quedar debajo de la barra superior */
    .main-vault {
        margin-left: 0 !important;
        padding-top: 80px !important;
    }

    /* Convertimos tu barra lateral en un menú deslizable */
    .holo-nav {
        position: fixed;
        top: 0;
        left: -100%; /* Oculto por defecto a la izquierda */
        width: 280px; /* Ancho en móvil */
        height: 100vh;
        z-index: 1045; /* Por encima de todo */
        transition: left 0.3s ease-in-out;
        background-color: #0d0f11;
        border-right: 1px solid #1c232b;
    }

        /* Clase que inyecta JS para mostrar el menú */
        .holo-nav.mostrar-movil {
            left: 0;
        }
}
/* Aseguramos que la tarjeta sea el ancla */
.bento-card {
    position: relative !important;
    overflow: hidden !important;
    background: #0d0f11 !important; /* Tu color de fondo base */
    border: 1px solid #1c232b;
}

    /* El destello */
    .bento-card.shimmer-active::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(0, 255, 163, 0.1), transparent );
        animation: simple-scan 2s infinite linear;
        pointer-events: none;
        z-index: 10;
    }
.bento-card {
    background: #0d0f11;
    border: 1px solid #1c232b;
    border-radius: 12px;
    padding: 24px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff66;
}

.form-control:focus {
    border-color: var(--neon-blue) !important;
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.2);
}

.btn-tech {
    background: transparent;
    border: 1px solid #333;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    transition: 0.3s;
}

    .btn-tech:hover {
        background: rgba(255,255,255,0.05);
        border-color: #666;
    }
@keyframes simple-scan {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}
/*.shimmer {
    position: relative;
    overflow: hidden;*/
    /* Ajusta el color base de fondo si es necesario */
    /*background-color: #1c232b;
}

    .shimmer::after {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
        background-image: linear-gradient( 90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 80%, rgba(255, 255, 255, 0) );
        animation: shimmer-animation 2s infinite;
        content: '';
        pointer-events: none;
    }

@keyframes shimmer-animation {
    100% {
        transform: translateX(100%);
    }
}*/


/* Animación de carga tipo pulso */
/*@keyframes loading-pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.6;
    }
}

.skeleton {
    background-color: #1c232b;*/ /* Un gris más oscuro que tu fondo */
    /*animation: loading-pulse 1.5s infinite ease-in-out;
    border-radius: 4px;
    display: inline-block;
    width: 100%;
}*/

/* Aplicación específica para tus tarjetas */
/*.card-skeleton {
    height: 100%;
    min-height: 150px;
}*/