﻿/*boton Enviar */
.btn-salir-style {
    background-color: #f1425d !important;
    border: none;
}

/*boton Salir */
.btn-success {
    background-color: #00d769 !important;
    border: none;
}

/*################################################################################*/
/* Sistema de escala del menú — variables base (desktop / default) */
/*################################################################################*/
.menu_layout_raf {
    --menu-height: 48px;
    --logo-max-w: 91px;
    --logo-h: 24px;
    --pill-height: 40px;
    --pill-font: 12px;
    --pill-pad-x: 16px;
    --icon-size: 24px;
    --gap: 8px;
    --nav-pad-x: 16px;
}

/* Escala reducida para pantallas pequeñas: mismo diseño, todo más compacto */
@media (max-width: 480px) {
    .menu_layout_raf {
        --menu-height: 40px;
        --logo-max-w: 68px;
        --logo-h: 18px;
        --pill-height: 30px;
        --pill-font: 10px;
        --pill-pad-x: 10px;
        --icon-size: 18px;
        --gap: 6px;
        --nav-pad-x: 10px;
    }
}

@media (max-width: 340px) {
    .menu_layout_raf {
        --logo-max-w: 52px;
        --logo-h: 15px;
        --pill-font: 8.5px;
        --pill-pad-x: 6px;
        --icon-size: 15px;
        --gap: 3px;
        --nav-pad-x: 6px;
    }
}

@media (max-width: 300px) {
    .menu_layout_raf {
        --logo-max-w: 42px;
        --logo-h: 12px;
        --pill-font: 7.5px;
        --pill-pad-x: 5px;
        --icon-size: 13px;
        --gap: 2px;
        --nav-pad-x: 4px;
    }
}

/*################################################################################*/
/* Fix: navbar-expand-md fuerza flex-wrap:wrap por debajo de 768px, pensado para
   el patrón navbar-toggler/navbar-collapse de Bootstrap que aquí NO se usa
   (se usa un offcanvas custom en su lugar). Forzamos nowrap para que el menú
   nunca se parta en 2 líneas. */
/*################################################################################*/
.menu_layout_raf,
.menu_layout_raf .container-fluid {
    flex-wrap: nowrap !important;
}
    /* El div "ms-auto" (pastillas + campana + hamburguesa) sí puede encogerse
       como grupo, pero cada elemento individual dentro está protegido por
       flex-shrink:0 más abajo, así que en la práctica lo único que cede
       espacio es el gap/whitespace, nunca el contenido. */
    .menu_layout_raf .container-fluid > div {
        min-width: 0;
    }

    /* Bootstrap .container-fluid trae su propio padding-x por defecto; el nav
       ya define el suyo (--nav-pad-x), así que el de Bootstrap solo restaba
       espacio útil en pantallas angostas. Se anula aquí. */
    .menu_layout_raf .container-fluid {
        padding-inline: 0 !important;
    }

/*Este es el CSS DEL CONTENEDOR DE MENU PRINCIPAL DEL Layout*/
.menu_layout_raf {
    width: 100%;
    height: var(--menu-height);
    background-color: #8051ff;
    border-radius: 0 0 30px 30px;
    margin: 0 auto;
    padding-inline: var(--nav-pad-x);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: height 0.2s ease, padding-inline 0.2s ease;
}

/*################################################################################*/
/*################################################################################*/
/*################################################################################*/

/*Contenido del Menu Principal*/
/*LOGO*/
.logo-raf {
    height: var(--logo-h);
    max-width: var(--logo-max-w);
    width: auto;
    flex-shrink: 0; /* nunca se encoge por debajo de su tamaño real, evita que quede tapado/cortado */
    transition: height 0.2s ease, max-width 0.2s ease;
}

/* El contenedor del logo tampoco debe encogerse: si lo hace, la imagen se
   desborda de su caja y queda tapada por la pastilla vecina (el bug del
   logo "cortado" en 328px) */
.menu_layout_raf .container-fluid > div:first-child {
    flex-shrink: 0;
}

/* Esta Seccion son los botones del menu */
.container-botones-menu {
    display: flex;
    align-items: center;
    background-color: #4e1c88;
    border-radius: 45px;
    width: auto;
    height: var(--pill-height);
    gap: var(--gap);
    padding-inline: 4px;
    transition: height 0.2s ease;
}

    .container-botones-menu .btn {
        max-width: none !important; /* sobreescribe el style inline del <label> */
        flex: 0 1 auto;
        white-space: nowrap;
        font-size: var(--pill-font) !important;
        height: calc(var(--pill-height) - 8px);
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-weight: bold;
        padding: 0 var(--pill-pad-x);
        cursor: pointer;
        transition: background-color 0.3s ease, font-size 0.2s ease, height 0.2s ease;
        background-color: inherit;
        margin: 0;
        text-align: center;
        border: 1px solid transparent;
        border-color: #8051ff;
        border-radius: 45px;
    }
/*Para quitar el estilo a los botones del menu*/
.unstyled-link {
    color: inherit;
    text-decoration: none;
}

/*Campanita RAF de notificaciones*/
.bell-raf {
    height: var(--icon-size);
    max-width: var(--icon-size);
    flex-shrink: 0;
    transition: height 0.2s ease, max-width 0.2s ease;
}

.Modal-belltest {
    margin-left: 25%;
}

.container-botones-menu .btn:hover {
    background-color: inherit !important;
    color: white !important;
    transform: none !important;
}

/* El estado activo del botón */
.container-botones-menu .btn:active {
    background-color: inherit;
    color: white;
}

.container-botones-menu .btn {
    background-color: inherit;
    color: white;
}

.container-botones-menu input[type="radio"]:checked + label {
    /* Aquí puedes aplicar gradiente u otros estilos para el botón seleccionado */
    background: linear-gradient(90deg, rgba(124,78,247,1) 42%, rgba(81,51,161,0.868) 96%);
    color: white;
    border: 2px solid white;
}

/* Estilo para los radio buttons personalizados */
.container-botones-menu input[type="radio"] {
    display: none;
}


/* Gradiente normal */
.btn-raf-gradient {
    background: linear-gradient(90deg, rgba(124,78,247,1) 42%, rgba(81,51,161,0.868) 96%);
}

/* Gradiente inverso */
.btn-raf-gradient-reverse {
    background: linear-gradient(270deg, rgba(124,78,247,1) 42%, rgba(81,51,161,0.868) 96%);
}

/*Icono Hamburguesa*/
.hamburgesa {
    height: var(--icon-size);
    width: var(--icon-size);
    flex-shrink: 0;
    transition: height 0.2s ease, width 0.2s ease;
}

/* El contenedor de pastillas tampoco se debe encoger por debajo del ancho
   real de su texto (ya usa white-space:nowrap internamente) */
.container-botones-menu {
    flex-shrink: 0;
}

/*################################################################################*/
/*Menu responsive offcanvas*/
/*################################################################################*/
.offcanvas {
    max-width: 70%;
    width: 300px !important;
    background-color: transparent !important;
    border: none !important;
    text-align: right;
}

.offcanvas-body, .offcanvas-header {
    background-color: #4c2d6c;
}

.offcanvas-header {
    border-radius: 45px 0 0 0;
}


.offcanvas-body p {
    font-size: 12px;
}

    .offcanvas-body p a {
        padding: 5px;
    }

.offcanvas-body a {
    color: white;
    text-decoration: none;
}

.offcanvas-body p:hover a {
    width: 100%;
    transition: 0.5s ease-in-out;
    color: black !important;
    background: #eef2ff;
    border-radius: 45px 45px 45px 45px;
}



/*################################################################################*/
/*################################################################################*/
/*################################################################################*/

/*/Notificaciones/*/
/* Ocultar el select, pero mantenerlo funcional */
/* Contenedor de la campana */
.icon-notification {
    position: relative;
    display: inline-block;
    font-size: 24px;
    cursor: pointer;
}

    .icon-notification .badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background-color: red;
        color: white;
        font-size: 12px;
        border-radius: 50%;
        padding: 2px 6px;
    }

/* Dropdown personalizado alineado a la izquierda */
.dropdown-menu-left {
    position: absolute;
    /* top: 100%;*/
    right: 0%;
    transform: translateX(-10px);
    display: none;
    z-index: 1050;
    width: 330px;
    background-image: url('../Img/modal.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 25px;
}

    .dropdown-menu-left.show {
        display: block;
    }

/* Estilos de las notificaciones */
.notificaciones-header {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    margin-bottom: 10px;
}

.notificaciones-contenedor {
    justify-content: space-between;
    align-items: center;
    margin: 3px auto 25px auto;
    max-width: 257px;
    max-height: 106px;
}

.notificaciones-hover:hover {
    background-color: #faf8fd;
}

.notificaciones-contenedor label {
    font-weight: bold;
    font-size: 10px !important;
    line-height: normal;
    font-style: normal;
}


.notificaciones-contenedor p {
    margin: 0px 0;
    font-size: 10px !important;
    font-weight: 400;
    line-height: normal;
    font-style: normal;
    text-align: justify;
}

.notificacion-tiempo {
    color: #332166;
    float: right;
    font-size: 8px !important;
    font-weight: 400;
    line-height: normal;
}

.division-notificaciones {
    margin: 0px 0;
    border: 1px solid #332166;
    width: 100%;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

    .dropdown-menu-left.show,
    .overlay.show {
        display: block;
    }
/*################################################################################*/
/*################################################################################*/
/*################################################################################*/
/* Estilos de spining para la campana de notificaciones */
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100px; /* Ajusta la altura según el espacio que desees */
    text-align: center;
}

.spinner {
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
    width: 40px;
    height: 40px; 
}

.path {
    stroke-linecap: round;
    stroke-dasharray: 150, 200;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dashoffset: -100;
    }

    100% {
        stroke-dashoffset: -400;
    }
}

.loading-container p {
    margin: 0;
    font-size: 16px;
    color: #555; /* Color del texto */
}

/* Media query para dispositivos con un ancho igual o menor a 463px */
@media (max-width: 463px) {

    .offcanvas-body p {
        font-size: 20px !important; 
    }

    .notificaciones-header * {
        font-size: 12px !important;
    }

    .dropdown-menu-left {
        width: 300px;
    }

    .offcanvas-header h5 {
        font-size: 13px !important;
    }

    .offcanvas {
        max-width: 65%;
    }

    .offcanvas-body a {
        color: white;
        text-decoration: none;
        font-size: 13px !important;
    }
}
@media (max-width: 400px) {

    .offcanvas {
        max-width: 65%;
    }

    .offcanvas-header h5 {
        font-size: 13px !important;
    }

    .offcanvas-body a {
        color: white;
        text-decoration: none;
        font-size: 13px !important;
    }

    /*Contenedor de Notificaciones*/
    .notificaciones-contenedor {
        margin: 20px 10% 20px 7.5%;
        width: 85%;
    }

    .dropdown-menu-left {
        width: 250px;
        right: 0px;
        left: -200px;
    }
}
