#spinnerProducts {
    display: none;
    /* se mostrará dinámicamente */
    height: 150px;
    /* altura del área de la tabla mientras carga */
}

/* Responsive de contenido central */
.custom-container {
    max-width: 1600px;
}


/* Eliminacion de Scroll Innecesario */
.main {
    min-height: calc(100vh - 60px - 60px);
    /* altura de navbar + footer aproximada */
    overflow-x: hidden;
}


#emailGroup:disabled,
#specificClientEmail:disabled {
    background-color: #2e2e2e !important;
    color: #fff !important;
    opacity: 10 !important;
    cursor: not-allowed;
}



.chart-container-sm {
    max-width: 320px;
    /* tamaño más pequeño del canvas */
    height: 320px;
    margin: 0 auto;
}

/* En pantallas medianas o pequeñas que el gráfico use todo el ancho */
@media (max-width: 992px) {
    .chart-container-sm {
        max-width: 100%;
        height: auto;
    }
}



/* Bordes suaves y compactos para todas las tablas */
.table tbody,
.table td,
.table tfoot,
.table th,
.table thead,
.table tr,
.table> :not(:last-child)> :last-child>* {
    border-color: #575656 !important;
    border-width: 1px !important;
    padding-right: 0 !important;
    text-align: center !important;
}

/* Borde inferior suave para cada fila */
.table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.table tbody tr:last-child {
    border-bottom: none !important;
    /* quitar borde de la ultima fila */
}

/* Hover suave para filas */
.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/*educir padding de celdas para tablas compactas */
.table td,
.table th {
    padding: 0.4rem 0.6rem !important;
    vertical-align: middle !important;
}

/* tamaño de fuente más pequeño */
.table {
    font-size: 0.875rem !important;
}

.table-card .table-responsive {
    max-height: 400px;
    overflow-y: auto;
}

/* Intercalado oscuro entre filas */
.table tbody tr:nth-child(odd) {
    background-color: rgba(255,
            255,
            255,
            0.03) !important;
}

.table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

/* Hover suave que resalta sin romper el intercalado */
.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transition: background-color 0.2s ease-in-out;
}

.table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}


/* Estilos para el modal personalizado */

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    /* nivel sobre el resto del contenido */
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.custom-modal.show {
    display: block;
    opacity: 1;
}

.custom-modal .modal-dialog {
    position: relative;
    margin: 5% auto;
    max-width: 600px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

.custom-modal .modal-header,
.custom-modal .modal-body,
.custom-modal .modal-footer {
    padding: 0.5rem;
}

.custom-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.custom-modal .modal-footer {
    border-top: 1px solid #ddd;
    text-align: right;
}

.custom-modal .close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}




/* === Estilos base para todos los modales oscuros === */
.modal-dark-style .modal-content,
.modal-dark-style .modal-header,
.modal-dark-style .modal-body,
.modal-dark-style .modal-footer {
    background-color: #1a1a1a !important;
    color: #f5f5f5 !important;
}

/* Elimina cualquier herencia de color de fondo en el contenedor del diálogo */
.modal-dark-style .modal-dialog {
    background-color: transparent !important;
}

.modal-dark-style .modal-body::-webkit-scrollbar-thumb {
    background-color: #fcd52b;
    border-radius: 10px;
}

.modal-dark-style .modal-body::-webkit-scrollbar-track {
    background-color: #111;
}

/* Animación de aparición suave */
.modal.fade .modal-dialog {
    transform: scale(0.96);
    opacity: 0;
    transition: all 0.25s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Sombra del contenido */
.modal-dark-style .modal-content {
    box-shadow: 0 0 25px rgba(252, 213, 43, 0.08),
        0 0 60px rgba(0, 0, 0, 0.8);
}


/* Borde y forma del contenedor */
.modal-dark-style .modal-content {
    border: 1px solid rgba(252, 252, 252, 0.171) !important;
    border-radius: 1rem !important;
    box-shadow: 0 0 20px rgba(252, 214, 43, 0.11) !important;

    /* Transición para bordes y box-shadow */
    transition: border 0.7s ease-in-out, box-shadow 0.7s ease-in-out;
}


.modal-dark-style .modal-content {
    background-color: #1a1a1a !important;
    color: #f5f5f5 !important;
    border-radius: 0.5rem !important;
    border: 1px solid rgba(252, 252, 252, 0.171) !important;
    box-shadow: 0 0 20px rgba(252, 214, 43, 0.11) !important;
    transition: border-radius 0.7s ease-in-out, border 0.7s ease-in-out, box-shadow 0.7s ease-in-out;
    overflow: hidden;
}


.modal-dark-style input,
.modal-dark-style select,
.modal-dark-style textarea {
    background-color: #303030;
    /* fondo oscuro para inputs */
    color: #f5f5f5;
    border: 1px solid #444;
    border-radius: 0.4rem;
}

.modal-dark-style input::placeholder,
.modal-dark-style textarea::placeholder {
    color: #aaa;
}


/* Botón dark personalizado */

.btn-dark {
    background-color: #121212;
    border-color: #121212;
    color: #000000;
    transition: background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out,
        color 0.15s ease-in-out;
}

.btn-dark:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}


.bg-dark {
    background-color: #242424 !important;
}

.bg-dark:hover {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: #fff !important;
}


/* Animación suave de aparición */
@keyframes modalFadeIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/*  Animaciones para la columna de foto en la tabla de productos  */

.foto-container {
    overflow: hidden;
    width: 0;
    transition: all 0.3s ease;
}

.foto-container img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.foto-container.visible {
    width: 80px;
}

.foto-container.visible img {
    opacity: 1;
}


/* Estilos para el cuadro de sugerencias */

#suggestionBox {
    max-height: 200px !important;
    overflow-y: auto !important;
    border-radius: 0.4rem !important;
    background-color: #1d1800 !important;
    border: 1px solid #444 !important;
}

/* Cada sugerencia individual */
#suggestionBox li {
    background-color: #494949 !important;
    color: #f1f1f1 !important;
    transition: background 0.2s ease-in-out !important;
    cursor: pointer !important;
}


#suggestionBox li:hover {
    background-color: #3d3d3d !important;
}



.sidebar {
    margin-top: 0 !important;
}



.magic-title {
    letter-spacing: 1px;
    animation: fadeIn 2s ease-in-out;
}

.dev-card {
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(145deg, #0c0c0c, #1a1a1a);
}

.dev-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.25);
}

.glow-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(255, 193, 7, 0.1) 0%,
            rgba(255, 193, 7, 0.03) 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2.5s infinite;
}

.icon-giant {
    width: 36px;
    height: 36px;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 193, 7, 0.6);
    }
}



/* Cardss responsives */

@media (max-width: 992px) {
    .card .card-title {
        font-size: 1rem;
    }

    .card h1 {
        font-size: 1.6rem;
    }

    .card {
        font-size: 0.85rem;
        padding: 0.35rem 0.9rem;
    }
}

/* Pantallas pequeñas (móviles, <768px) */
@media (max-width: 768px) {
    .card .card-title {
        font-size: 0.95rem;
    }

    .card h1 {
        font-size: 1.4rem;
    }

    .card {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}

/* Pantallas muy pequeñas (<576px) */
@media (max-width: 576px) {
    .card .card-title {
        font-size: 0.9rem !important;
    }

    .card h1 {
        font-size: 1.2rem;
    }

    .card {
        font-size: 0.75rem;
        padding: 0.25rem 0.7rem;
    }
}

.card-body {
    overflow-y: auto !important;
}




/* contrasenia
 */
#profileForm .btn-outline-warning {
    width: auto;
}

/* Margen superior para separar cuando se apilan */
@media (max-width: 768px) {
    #profileForm .btn-outline-warning {
        margin-top: 0.5rem;
        /* separa del campo rol */
    }
}



/* Responsive Titulos */

@media (max-width: 768px) {
    h1.h3 {
        font-size: 1.2rem;
    }

    .tittle-color {
        font-size: 0.9rem;
    }

    /* Botones más pequeños y ajustados */
    .btn,
    .btn-sm {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }

    /* Inputs un poco más compactos */
    .form-control {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    h1.h3 {
        font-size: 1.0rem;
    }

    .tittle-color {
        font-size: 0.75rem;
    }

    .btn,
    .btn-sm {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .form-control {
        font-size: 0.85rem;
    }
}



/* Productoss Tarjetass  */

@media (max-width: 400px) {
    .resumen-card-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}




/* Scrollbar completo */
::-webkit-scrollbar {
    width: 8px;
    /* ancho de la scrollbar vertical */
    height: 8px;
    /* alto de la scrollbar horizontal */
}

/* Track (fondo de la barra) */
::-webkit-scrollbar-track {
    background: #1a1a1a;
    /* fondo oscuro */
    border-radius: 4px;
}

/* Thumb (la parte que se mueve) */
::-webkit-scrollbar-thumb {
    background-color: #fcd62b85;
    /* color de la barra */
    border-radius: 4px;
    border: 2px solid #1a1a1a;
    /* un pequeño borde para separar del track */
}

/* Hover sobre la barra */
::-webkit-scrollbar-thumb:hover {
    background-color: #eab308;
}






/* Efecto Boton de Usuario en el Navbar */
.nav-link.bg-icono {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: #6e6500;
    /* fondo amarillo */
    color: #1a1a1a;
    /* texto oscuro */
    overflow: hidden;
    font-weight: bold;
    transition: transform 0.2s;
}

/* Pseudo-elemento para el brillo */
.nav-link.bg-icono::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
}

/* Hover: animación de la línea brillante */
.nav-link.bg-icono:hover::before {
    animation: shine 0.7s forwards;
}

/* Animación de la franja brillante */
@keyframes shine {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

/* Opcional: efecto pequeño de levantamiento al hover */
.nav-link.bg-icono:hover {
    transform: translateY(-2px);
}




/* Limitar tamaño de imagen de entrenador */
.trainer-img {
    width: 100%;
    max-height: 250px;
    height: auto;
    /* mantiene proporción */
    display: block;
    object-fit: contain;
    /* se adapta al espacio sin recortarse */
    background-color: #1a1a1a;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

