@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Poppins:wght@300;400&display=swap');


@keyframes loader {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}



.loader {
    display: none;
    font-size: 16px;
    color: #fff;

    background-color: #007bff;
    padding: 10px 20px;
    border-radius: 5px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}


/* Animación del loader en sí (se puede usar un spinner o similar) */
.loader:before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 4px solid #fff;
    border-radius: 50%;
    border-top: 4px solid transparent;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* Animación de rotación */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

body {
    font-family: 'Poppins', sans-serif;
    color: #3a3c3d;
    position: relative;
    height: 100vh;
    margin: 0;
    min-height: 100vh;
    background-color: #ffffff;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* --------------[Spinner]--------------*/
#loader {
    font-size: 40px;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    animation: loader 3s infinite;
}

#loader-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.spinner-border {
    color: #0000AA;
}

/* --------------[Boton Instrucciones]--------------*/

.botones-flotantes {
    position: fixed;
    bottom: 40px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.btn-flotante {
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    color: #ffffff;
    border-radius: 5px;
    letter-spacing: 2px;
    background-color: #000168;
    padding: 14px 20px;
    transition: all 300ms ease;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

@media (max-width: 768px) {
    .botones-flotantes {
        bottom: 20px;
        right: 50%;
        transform: translateX(80%);
        align-items: center;
    }

    .btn-flotante {
        width: 80vw;
        font-size: 14px;
        padding: 12px 10px;
    }
}


/* --------------[SideBar]--------------*/
.sidebar-wrapper {
    display: flex;
    flex: 1;
}

.btn-cl {
    position: absolute;
    margin-left: 280px;
}

/* Mini Sidebar */
.mini-sidebar {
    width: 50px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #03032a;
    color: white;
    display: flex;
    align-items: center;    
    justify-content: center;
    z-index: 1050;
}

/* Sidebar Completa */
.sidebar {
    width: 345px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -345px;
    background-color: #02021b;
    color: white;
    padding-top: 20px;
    transition: left 0.3s ease;
    z-index: 1060;
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.5);
}

.sidebar a {
    color: white;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
}

.sidebar a:hover {
    background: #495057;
}

.sidebar.show {
    left: 0;
}

.content-main {
    flex-grow: 1;
    margin-left: 50px;
    transition: margin-left 0.3s ease;
}

.sidebar.show+.content-main {
    margin-left: 320px;
}


@media (min-width: 769px) {
    .sidebar.show+.content-main {
        margin-left: 320px;
    }
}

@media (max-width: 768px) {
    .mini-sidebar {
        width: 50px;
     
    }

    .sidebar {
        width: 85vw;
        left: -85vw;
     overflow-y: auto;
    }

    .sidebar.show {
        left: 0;
    }

    .content-main {
        margin-left: 50px;
    }

    .btn-cl {
        margin-left: 65vw;
    }
    
}

/* --------------[Nav]--------------*/
.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.navpp {
    background-image: url('../images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

#searchbar {
    margin-left: 15%;
    padding: 15px;
    border-radius: 10px;
}

.searchdiv {
    background-color: #03032a;
}

.btn-dia {
    background-color: #040362;
    color: white;
    border: #ffffff solid;
}

.btn-dia:hover {
    background-color: #040362 !important;
    color: #e4e4f5 !important;
}

.btn-dia:active,
.btn-dia:focus {
    background-color: #040362 !important;
    color: #e4e4f5 !important;
}

.user-circle-nav {
    color: #040362;
}

.user-cicle-bar {
    color: #ffffff;
}

.fs-u{
    font-size: 60px;
}

.btn-buscar {
    background-color: #040362;
    color: #ffffff;
    border: #ffffff solid;
}

.btn-buscar:hover {
    background-color: #0f89d1 !important;
    color: #e4e4f5 !important;
    border: #ffffff solid;
}

.btn-buscar:active,
.btn-buscar:focus {
    background-color: #0f89d1 !important;
    color: #e4e4f5 !important;
    border: #ffffff solid;
}


@media (max-width: 768px) {
    
    .fs-u{
        font-size: 50px;
    }
    }

/* --------------[Toasts]--------------*/
.cascading-right {
    margin-right: -50px;
}

@media (max-width: 991.98px) {
    .cascading-right {
        margin-right: 0;
    }
}

.toast {
    visibility: hidden;
    max-width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.toast.show {
    visibility: visible;
}

#loader-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.spinner-border {
    color: #0000AA;
}

/*Video*/


#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 999
}

#floatingPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: white;
    color: black;
    padding: 0;
    border-radius: 10px;
    padding: 20px;
    display: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

#floatingPopup video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 10px;
}

.closePopup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: black;
    cursor: pointer;
    background: none;
    border: none;
}

@media (max-width: 768px) {

    #floatingPopup {
    width: 90%;
    height: auto; /* Ajustar alto de acuerdo al contenido */
    max-height: 80%;
}

#floatingPopup video {
    width: 100%;
    height: auto;
    max-height: 85%;
}
    .btn-flotante {
        transform: translateX(-30%) !important;
    }
}

/* --------------[Register]--------------*/
#register-div {
    width: 80%;
    margin: 0 auto;
}

.form-control {
    width: 100%;
}

.color-footer {
    background-color: #000168;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* --------------[Footer]--------------*/
.b-example-divider {
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}


/* --------------[Vistas]--------------*/


@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    #view1 {
        display: none !important;
    }

    #view2 {
        display: none !important;
    }

    #div-view {
        display: none !important;
    }

    #name-user {
        display: block !important;
    }

    .justify-mobile {
        justify-content: center !important;
    }
}

@media (min-width: 769px) {
    #view-mobile {
        display: none !important;
    }
}

/* --------------[Text]--------------*/
.text-welcome {
    font-size: 18px;
}

/* --------------[Main Colors]--------------*/
.bg-dia3 {
    color: #08941c !important;
}

.bg-dia4 {
    background-color: #08941c !important;
}

.violetDia {
    background-color: #453b9a
}

.bg-dia {
    background-color: #040362;
}

.bg-dia2 {
    background-color: #f8fbff !important;
}

.text-default {
    color: #e4e4f5;
}

.text-estudios {
    color: #3a3c3d;
}

.bg-grayd {
    background-color: #bcc2c5 !important;
}

.bg-gray2{
    background-color: #e8e7e7;
}

/* --------------[Buttons]--------------*/

.btn-primary {
    border: #08941c solid 1px !important;
    color: #08941c !important;
    background-color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #08941c !important;
    color: #e4e4f5 !important;
}

.btn-primary:active,
.btn-primary:focus {
    background-color: #08941c !important;
    color: #e4e4f5 !important;
}

.btn:disabled{
    background-color: #08941c !important;
    color: #e4e4f5 !important;
}

.disabled{
    background-color: #bcc2c5 !important;
    color: #e4e4f5 !important;
}

.btn-outline-primary {
    border: #0f89d1 solid 1px !important;
    color: #0f89d1 !important;
    background-color: #ffffff !important;
}

.btn-outline-primary:hover {
    background-color: #0f89d1 !important;
    color: #e4e4f5 !important;
}

.btn-alert-primary {
    border: #d80c14 solid 1px !important;
    color: #d80c14 !important;
    background-color: #ffffff !important;

}

.btn-alert-primary:active,
.btn-alert-primary:focus {
    background-color: #d80c14 !important;
    color: #e4e4f5 !important;
}

.btn-alert-primary:hover {
    background-color: #d80c14 !important;
    color: #e4e4f5 !important;
}

.btn-outline-primary:active,
.btn-outline-primary:focus {

    background-color: #0f89d1 !important;
    color: #e4e4f5 !important;
}

.btn-sidebar-primary {
    border: #ffffff solid 2px !important;
    color: #e4e4f5 !important;
}


/* --------------[Estudies]--------------*/
.n-report {
    width: 30%;
    border: #0f89d1 solid 1px !important;
    color: #0f89d1;
    background-color: #ffffff;
}


.listEstudio {
    width: 100%;
    overflow-y: auto;
    height: 320px;
}


/* --------------[Tables]--------------*/

.table-dia {
    background-color: #040362 !important;
    color: #ffffff !important;
}

table.table-dia thead th {
    background-color: #040362 !important;
    color: #ffffff !important;
}


.table tbody td {
    min-height: 80px;
    height: auto;
    vertical-align: middle;
    white-space: normal;

}

.table tbody td:nth-child() {
    min-height: 25vh;
    display: flex;
    align-items: center;
}

.table tbody td:last-child {
    white-space: nowrap;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

td:last-child {
    width: 25%;
    white-space: nowrap;
    text-align: center;
}

.footButton {
    padding-top: 50px;
}

/* --------------[DropwDown]--------------*/

.dropdown-menu li a:focus,
.dropdown-menu li a:active {
    background-color: transparent !important;
    color: inherit !important;
    outline: none !important;
    box-shadow: none !important;
}


    @media (max-width: 768px) {
      .btn-flotante {
        transform: translateX(-30%) !important;
      }
    }

    #studyTable td,
    #studyTable th {
      border: none;
    }

    #studyTable {
      border: none;
      border-collapse: collapse;
    }

    #studyTable tbody tr {
      border-bottom: none !important;
    }

    .search-table {
      width: 340px;
    }