/* todo
    @author: Carlos Amarilla
    @date: 2025-10-05
    @description: Codigo css para hacer responsive los bloques del dom
*/

:root{
    color-scheme: dark;
    --color-asfalto : #263238;
    --color-azul: #3498DB;
    --color-rojo: #E74C3C;
    --color-purpura: #8E44AD;
    --color-azure: #1de9b6;
    --color-verde : #00c853;
    --color-carbon-deep: #1a2226;
    --fuente-normal : -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif, 1em !important;
}

/* todo ajustar textarea al contenido al pasar el cursor encima */
/* Estilo para el textarea dinámico en gbox */
.input-field input{
    border-radius: 0.7%;
}

textarea.materialize-textarea {
    /* Altura inicial colapsada (una sola línea) */
    padding: .8rem 0;
    font-size: 1.2em;
    /* Transición suave para que no sea un salto brusco */
    transition: height 0.3s ease-in-out, background-color 0.2s;
}

/* Solo al poner el cursor (Hover) */
textarea.materialize-textarea:hover {
    /* Se expande al tamaño necesario para ver el contenido */
    height: 10rem;
    overflow-y: auto;
    background-color: color-mix(in srgb, var(--color-azure) 12%, transparent); /* Un toque visual sutil */
}

.input-field input:hover{
    background-color: color-mix(in srgb, var(--color-azure) 12%, transparent); /* Un toque visual sutil */
    font-size: 1.7em;
}

/* Opcional: Si quieres que también se mantenga expandido al escribir */
textarea.materialize-textarea:focus, .input-field input:focus {
    font-size: 1.5em;
    background-color: color-mix(in srgb, var(--color-azure) 12%, transparent); /* Un toque visual sutil */
}
/* todo ajustar textarea al contenido al pasar el cursor encima */

/* todo css para el box-shadow de input-field y div */

/* Efecto Hover: Resplandor Tenue */
/* Estado Focus: Resplandor Azure con unidades relativas */
.input-field input:focus,
.input-field textarea:focus,
.input-field select:focus,
.input-field .select-wrapper input.select-dropdown:focus {
    border-bottom: 0.1rem solid var(--color-azure);
    transform: translateY(-0.125rem); /* Equivalente suave a 2px */
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover suave en los campos */
.input-field input:hover,
.input-field textarea:hover,
.input-field select:hover,
.input-field .select-wrapper input.select-dropdown:hover {
    transition: box-shadow 0.3s ease;
}

.input-field input:not([type="button"]), .input-field textarea {
    padding-left: 0.7rem !important;
    box-sizing: border-box !important;
    border-radius: 0.7rem;
    padding: 1.2%;
}

.input-field input:focus,
.input-field textarea:focus,
.input-field select:focus,
.input-field .select-wrapper input.select-dropdown:focus {
    box-shadow: 0 0 0.9375rem -0.1875rem var(--color-azure),
    0 0 0.25rem rgba(13, 233, 182, 0.1);
    transform: translateY(-0.125rem);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    font-size: 1.7em;
}

/* Estilo para Textarea */
.input-field textarea {
    background: transparent;
    min-height: 6.25rem;
    resize: vertical;
}

/* Animación sutil de entrada */
@keyframes fadeInInput {
    from { opacity: 0; transform: translateY(0.2rem); }
    to { opacity: 1; transform: translateY(0); }
}

.input-field input, .input-field textarea, .input-field select {
    animation: fadeInInput 0.4s ease-out both;
}
/* todo css para el box-shadow de input-field y div */

/* todo css para el panel lateral */
/* --- Panel Lateral: Estilo Carbon Deep (Hyprland High-Contrast) --- */
.divMenuPanelLateral {
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    /* Usamos el nuevo color para el fondo principal */
    background-color: var(--color-carbon-deep) !important;
    /* El borde Azure crea la separación visual contra el fondo negro */
    box-shadow: 0 0 0.1rem 0.2rem rgba(142, 68, 173, 0.25);
    overflow: auto;
    animation: sideEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    border-radius: 2.5%;
}

.divMenuPanelLateral {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.divMenuPanelLateral::-webkit-scrollbar {
    width: 0.35rem;
}

.divMenuPanelLateral::-webkit-scrollbar-track {
    background: transparent;
}

.divMenuPanelLateral::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: background 0.3s ease;
}

.divMenuPanelLateral::-webkit-scrollbar-thumb:hover {
    background: var(--color-azure);
}

.divMenuPanelLateral ul {
    padding: 1.5rem 0;
    margin: 0;
    list-style: none;
}

.divMenuPanelLateral ul li {
    padding: 1.2rem 1.8rem;
    color: #ffffff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 0.04rem;
    /* Separación sutil entre items usando el asfalto */
    border-bottom: 0.05rem solid var(--color-asfalto);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.divMenuPanelLateral ul li i {
    color: var(--color-azure) !important;
    margin-right: 1.2rem;
    font-size: 1.15rem;
    width: 1.5rem;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover: Interacción Snappy y Elegante */
.divMenuPanelLateral ul li:hover {
    /* Resaltamos el item con el color asfalto */
    background-color: var(--color-asfalto) !important;
    color: var(--color-azure) !important;
    padding-left: 2.2rem;
    border-left: 0.3rem solid var(--color-azure);
}

.divMenuPanelLateral ul li:hover i {
    transform: scale(1.3) rotate(-8deg);
    color: #ffffff !important;
}

/* Animación de entrada con desenfoque suave */
@keyframes sideEntrance {
    from {
        transform: translateX(-100%);
        filter: blur(8px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        filter: blur(0);
        opacity: 1;
    }
}

/* Scrollbar minimalista para no romper la estética dark */
.divMenuPanelLateral::-webkit-scrollbar {
    width: 0.25rem;
}
.divMenuPanelLateral::-webkit-scrollbar-thumb {
    background: var(--color-asfalto);
    border-radius: 1rem;
}
.divMenuPanelLateral::-webkit-scrollbar-thumb:hover {
    background: var(--color-azure);
}
/* todo css para el panel lateral */

/* Estilo para tabla hyperland */

@keyframes tbSlideIn {
    from { opacity: 0; transform: translateY(0.6rem); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tbRowReveal {
    from { opacity: 0; transform: translateX(-0.5rem); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes tbGlow {
    0%,100% { box-shadow: 0 0 0.5rem rgba(52,152,219,0); }
    50%      { box-shadow: 0 0 1.2rem rgba(52,152,219,0.18); }
}

.tb_hyperland {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--fuente-normal);
    font-weight: 400;
    color: #b0bec5;
    background: transparent;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow:
            0 0.2rem 0.5rem #fff,
            0 0.025rem 0.15rem #fff,
            0 0 0 0.0625rem #fff;
    animation: tbSlideIn 0.5s cubic-bezier(.4, 0, .2, 1) both;
}

.tb_hyperland thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.tb_hyperland thead th {
    padding: 1rem 1.2rem;
    font-weight: 500;
    font-size: 0.78em;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-azul);
    text-align: left;
    white-space: nowrap;
    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
    box-shadow:
            0 0.0625rem 0 rgba(52, 152, 219, 0.18),
            0 0.25rem 1rem rgba(0, 0, 0, 0.3);
}

.tb_hyperland thead th:first-child { border-radius: 1rem 0 0 0; }
.tb_hyperland thead th:last-child  { border-radius: 0 1rem 0 0; }

.tb_hyperland tbody tr {
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    animation: tbRowReveal 0.4s cubic-bezier(.4, 0, .2, 1) both;
}

.tb_hyperland tbody tr:hover td {
    color: #cfd8dc;
}

.tb_hyperland tbody td {
    padding: 0.8rem 1.2rem;
    font-size: 0.92em;
    color: #fff;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.045);
    vertical-align: top;
    word-break: break-word;
    transition: color 0.22s ease;
}

.tb_hyperland tbody td:not(:last-child) {
    border-right: 0.0625rem solid rgba(255, 255, 255, 0.03);
}

.tb_hyperland tbody tr:last-child td         { border-bottom: none; }
.tb_hyperland tbody tr:last-child td:first-child { border-radius: 0 0 0 1rem; }
.tb_hyperland tbody tr:last-child td:last-child  { border-radius: 0 0 1rem 0; }

/* Estilo para tabla hyperland */

/* todo Css para el titulo principal de la ventana */
.titulo_boxsys_dash {
    display: block;
    width: fit-content;
    margin: 0.5rem auto;
    padding: 0.7rem;
    font-size: clamp(1rem, 1.5vw, 1.7rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--color-azure);
    border-radius: 0.7rem;
    box-shadow: 0 0.1rem 0.3rem var(--color-azure);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    animation: smooth-entrance 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.titulo_boxsys_dash:hover {
    transform: translateY(-0.25rem);
    border-color: var(--color-azure);
    box-shadow: 0 0.75rem 2rem var(--color-asfalto);
    cursor: default;
}

@keyframes smooth-entrance {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(1rem);
        filter: blur(0.5rem);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}
/* todo Css para el titulo principal de la ventana */

/* todo Css para el header */
.header {
    display: block;
    width: fit-content;
    margin: 0.5rem auto 1.5rem 0;
    padding: 0.5rem 1.1rem;/*
    /*
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--color-azul);
    background-color: var(--color-asfalto);
    border-left: 0.15rem solid var(--color-azul);
    border-right: 0rem;
    border-radius: 0 0.5rem 0.5rem 0;
    letter-spacing: 0.08em;
    opacity: 0.85;
    text-align: left;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    letter-spacing 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    animation: fade-in-left 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
     */
}

.header_canvas{
    padding: 1px;
    width: 76vw;
    height: 2vh;
    top: -7vh;
    position: relative;
    z-index: -2;
    left: -2vw;
}

.header:hover {
    opacity: 1;
    letter-spacing: 0.12em;
    transform: scale(1.02);
    color: var(--color-azure);
    border-color: var(--color-azure);
}

@keyframes fade-in-slide {
    0% {
        opacity: 0;
        transform: translateY(0.5rem);
    }
    100% {
        opacity: 0.85;
        transform: translateY(0);
    }
}
/* todo Css para el header */

/* todo css para alinear botones a la derecha */
.btnClPanatallaCompleta{z-index: 1;}
.row button,
.row .btn,
.row .btnAzure,
.row .btnBlue,
.row .btnPurple,
.row .btnAzureFlat,
.row .btnRed,
.row a.btn-flat {
    float: right ; /* El mazo para mover a la derecha */
    margin-left: 0.5rem; /* Espacio entre botones si hay varios */
    margin-top: 0.5rem; /* Ajuste visual por si el label es muy alto */
    display: inline-flex; /* Para que el contenido interno (iconos) se alinee */
    align-items: center;
    padding: 0.7%;
    gap: 0.5vh;
}

/* Limpieza de flujo para que la fila no colapse al usar floats */
.row::after {
    content: "";
    display: table;
    clear: both;
}
/* todo css para alinear botones a la derecha */

/* css para el Container */
.container {
    position: absolute;
    top: 11vh;
    left: 1%;
    width: 98%;
    height: 86vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.5rem 0.5rem 1.5rem 0.5rem;
    padding: clamp(1.2rem, 4vw, 2.5rem);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.4),
            0 1px 0 rgba(29, 233, 182, 0.08) inset;
    animation: containerIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    margin-inline: auto;
    transform: translateX(-50%);
}

@keyframes containerIn {
    from {
        opacity: 0;
        transform: translateY(1.5rem) scale(0.98);
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        backdrop-filter: blur(20px);
    }
}
/* css para el Container */

/* Animacion para el boton con clase btn_delete_animacion */
.btn_delete_animation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0.5rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn_delete_animation i {
    font-size: 1.125rem;
    color: var(--color-rojo);
    transition: color 0.2s ease;
}

.btn_delete_animation:hover {
    background: rgba(231, 76, 60, 0.1);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.15);
}

.btn_delete_animation:hover i {
    color: var(--color-rojo);
}

.btn_delete_animation:active {
    animation: shake 0.3s ease;
    background: rgba(231, 76, 60, 0.15);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}
/* Animacion para el boton con clase btn_delete_animacion */

/* Colores con tema oscuro de claude */
/* Tema oscuro para formularios con tu paleta de colores */
input[type=text], textarea{
    color: #eee;
    padding: 1rem;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

input[type=text]:focus, textarea:focus {
    outline: none;
    border-color: var(--color-azure);
}

button, a{
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s, filter 0.3s;
}

svg{
    border-radius: 2px;
    transition: transform 0.2s, box-shadow 0.3s, filter 0.3s;
    background: none;
}

a:hover{
    transform: translateY(-2px);
    filter: brightness(0.7);
}

button:hover, svg:hover{
    transform: translateY(-0.2rem);
    filter: brightness(1);
}

label {
    color: var(--color-azure);
}

.lbGreen{
    color : var(--color-verde);
}

.lbAzure{
    color : var(--color-azure);
}

div {
    transition: opacity 0.3s, transform 0.3s;
}
/* Colores con tema oscuro de claude */

.modal{
    padding: 1%;
    border-radius: 1.25rem;
    /* Suavizado de scroll para iOS/Safari */
    -webkit-overflow-scrolling: touch;
    /* Firefox: Grosor y color de la barra */
    scrollbar-color: var(--color-azul) transparent;
    scrollbar-gutter: stable;
}

/* El carril o fondo de la barra (lo hacemos invisible) */
.modal.div::-webkit-scrollbar {
    width: 4rem !important;
    background-color: transparent;
}

/* La "pieza" que se mueve (el scroll thumb) */
.modal::-webkit-scrollbar-thumb {
    /* Usamos un color pastel con transparencia para el look Mac */
    background-color: rgba(137, 180, 250, 0.2);

    /* El border-radius más elegante: píldora total */
    border-radius: 1rem;

    /* Añadimos un borde transparente para crear un "espaciado" visual */
    border: 0.15rem solid var(--color-azul);
    background-clip: padding-box;

    transition: background-color 0.3s ease;
}

/* 3. Interactividad: Que resalte cuando pasas el mouse */
.modal::-webkit-scrollbar-thumb:hover {
    background-color: rgba(203, 166, 247, 0.5); /* Cambio a púrpura pastel Hyprland */
    border: 0.3rem solid transparent;
}

/* La pista (fondo del scrollbar) */
.div_contenedor_tabla::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 1rem;
    margin: 0.5rem 0;              /* Espacio arriba y abajo */
}

/* 4. Escondemos los botones de flecha (flechas de arriba/abajo) */
.modal::-webkit-scrollbar-button {
    display: none;
}

.div_contenedor_tabla::-webkit-scrollbar-corner {
    background: transparent;
}

.item_tooltip, .ui-tooltip{
    background-color: #333;       /* fondo oscuro */
    color: #fff;                  /* texto blanco */
    font-size: 14px;              /* tamaño de fuente */
    font-weight: bold;            /* texto en negrita */
    border-radius: 6px;           /* bordes redondeados */
    padding: 8px 12px;            /* espacio interno */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* sombra */
}

/* todo dialog modal nativo */
dialog{
    border: none;
    border-radius: 10px;
    padding: 1%;
    max-width: 70%;
    margin: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* todo dialog modal nativo */

/* todo Label de informacion para tablas */

/* Animación simple */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(2px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn 0.3s ease-out;
}

.animate-fade:hover {
    transform: translateY(-4px);
    transition: transform 0.2s ease-out;
}

/* Línea compacta tipo etiqueta */
.info-mini {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 1.5rem;
    white-space: nowrap;
}

/* Título */
.info-title {
    font-weight: bold;
    opacity: 0.9;
}

/* Valor */
.info-value {
    font-weight: 600;
}

/* todo Label de informacion para tablas */

/* Contenedor principal del select */
.select2-selection {
    height: 1% !important;
    padding: 1% !important;
    font-size: var(--fuente-normal);
    border-radius: 4px !important;
}

/* Texto seleccionado */
.select2-selection__rendered {
    padding-left: 1% !important;
    font-size: var(--fuente-normal);
    font-weight: bold;
}

/* Flecha */
.select2-selection__arrow {
    width: 2em;
    height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Opciones del dropdown */
.select2-results__option {
    padding: 1% 2% !important;
    font-size: var(--fuente-normal);
}

/* Select múltiple */
.select2-selection--multiple {
    padding: 2% !important;
}

/* Tags en select múltiple */
.select2-selection__choice {
    padding: 1% 2% !important;
    font-size: var(--fuente-normal);
}

.btnBlue:hover, .btnBlue:active, .btnBlue:focus {
    background: var(--color-azul);
    color: var(--color-asfalto);
}

.btnPurple:hover, .btnPurple:active, .btnPurple:focus {
    background: var(--color-purpura);
    color: var(--color-asfalto);
}

.btnRed:hover, .btnRed:active, .btnRed:focus {
    background: var(--color-rojo);
    color: var(--color-asfalto);
}

.btnAzure:hover, .btnAzure:active, .btnAzure:focus {
    background: var(--color-azure);
    color: var(--color-asfalto);
}