/* Diseño creado por seosmartec.com - +593998745371 - luis@seosmartec.com */

/* ==========================================================================
   Dikiu — capa de apariencia (solo estilos; no cambia el funcionamiento).
   Se carga en todas las páginas desde public/assets/custom/css.css.
   Para volver al diseño anterior basta con restaurar el respaldo de este archivo.
   ========================================================================== */

/* ---------- 1. Negro más suave en todo el tema "black" ---------- */
html:root .black {
    --base: #2a2f35;
    --medium: #343a41;
    --light: #474e56;
    --dark: #22262b;
    --darkness: #1b1e22;
    --inverso-base: #e6e8ea;
}

/* ---------- 2. Pantalla de entrada ---------- */
html body.sign-in-layout .container {
    background: rgba(26, 29, 33, 0.74) !important;
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    position: relative;
}
/* línea de acento lima arriba del panel */
html body.sign-in-layout .container::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8cff00 30%, #8cff00 70%, transparent);
    opacity: 0.9;
}
html body.sign-in-layout .panel-body { padding: 10px 26px 18px; }

/* logo: palabra "dikiu" sin el círculo negro */
html body.sign-in-layout .panel-body > a {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 6px;
}
html body.sign-in-layout img.img-responsive.center-block {
    width: 78%;
    max-width: 230px;
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}
html body.sign-in-layout .panel-body > a::after {
    content: "PLATAFORMA DE RASTREO SATELITAL";
    display: block;
    margin-top: 16px;
    color: #a3abb3;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.6px;
}
html body.sign-in-layout .panel-body > hr {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    margin: 22px 0 22px;
}

/* campos */
html body.sign-in-layout .form-control {
    height: 48px !important;
    border-radius: 12px !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #f1f3f5 !important;
    font-weight: 500;
    padding-left: 16px;
    padding-right: 44px;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
html body.sign-in-layout .form-control::placeholder { color: #8d959d; font-weight: 400; }
html body.sign-in-layout .form-control:focus {
    border-color: #8cff00 !important;
    background-color: rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 0 0 3px rgba(140, 255, 0, 0.16) !important;
    outline: none;
}
/* autocompletado del navegador sin fondo amarillo/blanco */
html body.sign-in-layout .form-control:-webkit-autofill,
html body.sign-in-layout .form-control:-webkit-autofill:hover,
html body.sign-in-layout .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #f1f3f5;
    caret-color: #f1f3f5;
    transition: background-color 600000s 0s, color 600000s 0s;
}
/* íconos de los campos en gris claro (los originales son negros) */
html body.sign-in-layout input#sign-in-form-email,
html body #password-reminder-form input[name="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3abb3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E") !important;
    background-size: 20px !important;
    background-position: calc(100% - 14px) center !important;
    background-repeat: no-repeat !important;
}
html body.sign-in-layout input#sign-in-form-password {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3abb3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") !important;
    background-size: 20px !important;
    background-position: calc(100% - 14px) center !important;
    background-repeat: no-repeat !important;
}
html body.sign-in-layout .form-group { margin-bottom: 14px; }
html body.sign-in-layout .checkbox label { color: #c3c9cf; font-weight: 500; }

/* botones */
html body.sign-in-layout .btn { border-radius: 12px !important; height: 50px; font-size: 1.05em; letter-spacing: .3px; }
html body.sign-in-layout .btn-primary {
    background: #8cff00 !important;
    border: none !important;
    color: #13161a !important;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(140, 255, 0, 0.22);
    transition: transform .15s, box-shadow .15s, background-color .15s;
}
html body.sign-in-layout .btn-primary:hover,
html body.sign-in-layout .btn-primary:focus {
    background: #9dff2a !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(140, 255, 0, 0.30);
}
html body.sign-in-layout .btn-default {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #d3d8dd !important;
    font-weight: 600;
}
html body.sign-in-layout .btn-default:hover { background: rgba(255, 255, 255, 0.07) !important; color: #fff !important; }
html body.sign-in-layout .form hr { border-top: 1px solid rgba(255, 255, 255, 0.08); margin: 14px 0; }
html body.sign-in-layout .alert { border-radius: 12px; }

/* ---------- 3. Menú lateral del mapa ---------- */
html body #sidebar ul.nav.nav-tabs.nav-default {
    background: linear-gradient(180deg, #2c3137 0%, #23272c 100%) !important;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06), 4px 0 18px rgba(0, 0, 0, 0.18);
    padding: 8px 0;
}
html body #sidebar .nav-default > li > a,
html body #sidebar .nav-default > li > a[data-modal],
html body #sidebar .nav-default > li > a[data-id] {
    position: relative;
    display: block;
    margin: 3px 4px !important;
    padding: 42px 1px 9px !important;
    border: none !important;
    border-radius: 14px !important;
    background: transparent !important;
    background-image: none !important;
    filter: none !important;
    color: #b9c0c7 !important;
    font-size: 0.78em !important;
    font-weight: 600 !important;
    text-align: center;
    letter-spacing: 0;
    white-space: normal !important;
    line-height: 1.15;
    overflow: visible !important;
    text-overflow: clip !important;
    transition: background-color .18s, color .18s;
}
/* ícono coloreado con máscara (mismos dibujos de siempre) */
html body #sidebar .nav-default > li > a::before {
    content: "";
    position: absolute;
    top: 10px; left: 50%;
    width: 27px; height: 27px;
    transform: translateX(-50%);
    background-color: #b9c0c7;
    -webkit-mask: var(--dk-icon) center / contain no-repeat;
    mask: var(--dk-icon) center / contain no-repeat;
    transition: background-color .18s, transform .18s;
}
html body #sidebar a[href="#objects_tab"]          { --dk-icon: url(/assets/css/icons/objects.svg); }
html body #sidebar a[href="#events_tab"]           { --dk-icon: url(/assets/css/icons/events.svg); }
html body #sidebar a[href="#history_tab"]          { --dk-icon: url(/assets/css/icons/history.svg); }
html body #sidebar a[data-modal="alerts"]          { --dk-icon: url(/assets/css/icons/alerts.svg); }
html body #sidebar a[data-id="geofencing_tab"]     { --dk-icon: url(/assets/css/icons/geofence.png); }
html body #sidebar a[data-modal="reports_create"]  { --dk-icon: url(/assets/css/icons/reports.svg); }
html body #sidebar a[data-modal="send_command"]    { --dk-icon: url(/assets/css/icons/command.svg); }
html body #sidebar a[data-modal="sharing"]         { --dk-icon: url(/assets/css/icons/sharing.png); }

html body #sidebar .nav-default > li > a:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
}
html body #sidebar .nav-default > li > a:hover::before { background-color: #ffffff; transform: translateX(-50%) scale(1.06); }

/* opción activa: fondo lima suave, ícono lima y barra a la izquierda */
html body #sidebar .nav-tabs > li.active > a,
html body #sidebar .nav-tabs > li.active > a:hover,
html body #sidebar .nav-tabs > li.active > a:focus {
    background: rgba(140, 255, 0, 0.13) !important;
    color: #8cff00 !important;
    font-weight: 700 !important;
}
html body #sidebar .nav-tabs > li.active > a::before { background-color: #8cff00; }
html body #sidebar .nav-tabs > li.active > a::after {
    content: "";
    position: absolute;
    left: -4px; top: 14px; bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #8cff00;
}
html body #sidebar .nav-default > li.active::after { display: none !important; }

/* botón para plegar el panel */
html body #sidebar a.btn-collapse { background: #2c3137; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }

/* ---------- 4. Logo superior alineado al borde izquierdo (junto al menú de íconos) ---------- */
html body .navbar-brand { padding-left: 0 !important; }

/* ---------- 5. Fondo dinámico de la entrada: "red GPS en vivo" sobre la misma imagen ---------- */
html body.sign-in-layout { background-color: #040704; overflow: hidden; }
/* mapa + red animada (dikiu-red.svg) en una sola capa: se mueven juntos y siempre alineados */
html body.sign-in-layout::before {
    content: "";
    position: fixed;
    inset: -3%;
    z-index: 0;
    background:
        url(/assets/custom/dikiu-red.svg) center / cover no-repeat,
        url(/images/background.png) center / cover no-repeat;
    background-blend-mode: screen, normal;
    animation: dk-camara 26s ease-in-out infinite alternate;
    will-change: transform;
    pointer-events: none;
}
/* grilla técnica muy sutil que deriva lentamente */
html body.sign-in-layout::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(140, 255, 0, 0.04) 0 1px, transparent 1px 56px),
        repeating-linear-gradient(90deg, rgba(140, 255, 0, 0.04) 0 1px, transparent 1px 56px);
    -webkit-mask-image: radial-gradient(ellipse 70% 65% at 35% 55%, #000 30%, transparent 85%);
    mask-image: radial-gradient(ellipse 70% 65% at 35% 55%, #000 30%, transparent 85%);
    animation: dk-grilla 30s linear infinite;
}
html body.sign-in-layout .center-vertical { position: relative; z-index: 2; }

@keyframes dk-camara {
    0%   { transform: scale(1.00) translate(0, 0); }
    100% { transform: scale(1.06) translate(1.2%, -1%); }
}
@keyframes dk-grilla {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 0 56px, 56px 0; }
}
/* quienes prefieren menos movimiento en su sistema ven el fondo quieto */
@media (prefers-reduced-motion: reduce) {
    html body.sign-in-layout::before,
    html body.sign-in-layout::after { animation: none; }
}

/* ---------- 6. Menús desplegables de la barra superior (Herramientas, Mi cuenta, Idioma) ---------- */
html body .navbar .navbar-right .dropdown-menu {
    background: #262b31 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 6px !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}
html body .navbar .navbar-right .dropdown-menu > li > a {
    position: relative;
    color: #e3e7eb !important;
    background: transparent !important;
    border-radius: 9px;
    padding: 8px 14px 8px 14px !important;
    font-weight: 500;
    transition: background-color .15s, color .15s;
}
html body .navbar .navbar-right .dropdown-menu > li > a .text { color: inherit !important; }
html body .navbar .navbar-right .dropdown-menu > li > a .icon,
html body .navbar .navbar-right .dropdown-menu > li > a .icon::before { color: #c9d0d6 !important; }
html body .navbar .navbar-right .dropdown-menu > li > a:hover,
html body .navbar .navbar-right .dropdown-menu > li > a:focus {
    background: rgba(140, 255, 0, 0.13) !important;
    color: #ffffff !important;
}
html body .navbar .navbar-right .dropdown-menu > li > a:hover::before,
html body .navbar .navbar-right .dropdown-menu > li > a:focus::before {
    content: "";
    position: absolute;
    left: 0; top: 7px; bottom: 7px;
    width: 3px;
    border-radius: 3px;
    background: #8cff00;
}
html body .navbar .navbar-right .dropdown-menu > li > a:hover .icon,
html body .navbar .navbar-right .dropdown-menu > li > a:hover .icon::before,
html body .navbar .navbar-right .dropdown-menu > li > a:focus .icon,
html body .navbar .navbar-right .dropdown-menu > li > a:focus .icon::before { color: #8cff00 !important; }
/* opciones deshabilitadas: visibles pero apagadas */
html body .navbar .navbar-right .dropdown-menu > li.disabled > a,
html body .navbar .navbar-right .dropdown-menu > li > a.disabled {
    color: #7b838b !important;
    background: transparent !important;
}
html body .navbar .navbar-right .dropdown-menu > li.disabled > a::before { display: none; }
html body .navbar .navbar-right .dropdown-menu .divider { background-color: rgba(255, 255, 255, 0.08) !important; }
