html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background:rgba(255,255,255,0);
}

body {
    background-color: #ffffff;
    font-family: "Arial", sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
    max-height: 80vh; /* Limitar altura al 80% de la pantalla */
    overflow-y: auto; /* Permitir scroll si es necesario */
}
body .dark-mode {
    background-color: #000;/*#121212;*/
    color: #e0e0e0;
}

login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh; /* Limitar altura al 80% de la pantalla */
}

register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh; /* Limitar altura al 80% de la pantalla */
}
.navbar {
    background-color: #0c2340 !important;
    color: white;
    padding: 10px 20px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 999;
    transition: all 0.3s ease;
}

.navbar .navbar-brand img.logo {
    height: 48px;
    margin-right: 10px;
}

.navbar h1 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
}

.navbar .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.7) !important; /* Background with glassmorphism effect */
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar .dropdown-menu a.dropdown-item {
    color: #0c2544 !important;
}

.dropdown-menu {
    right: 0; /* Alinear el men� a la derecha */
    left: auto; /* Asegurar que no haya ning�n desplazamiento a la izquierda */
    top: 100%;
}

.btn.rounded-circle {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    overflow: hidden;
    padding-right: 55px;
    margin-right: 20px;
}

button {
    background-color: #0c2544;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1e3a5f;
}

#navbarMenu {
    display: none;
}

.sidebar {
    background-color: rgba(12, 37, 68, 0.8) !important; /* Slightly transparent dark blue */
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f5f5f5 !important; /* White color for links */
    position: absolute;
    top: 90px;
    left: 5px;
    bottom: 60px;
    width: 200px;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #f5f5f5 !important;
}

.sidebar .nav-link:hover {
    color: #1e3a5f !important;
}

.main-content {
    padding: 15px;
    margin-left: 220px; /* Space for the fixed sidebar */
    flex: 1;
}

.card.glass-card {
    background: rgba(12, 37, 68, 0.8) !important; /*Background with glassmorphism effect */
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur(10px);
    margin-bottom: 10px;
    height: 110px;
    -webkit-backdrop-filter: blur(10px);
    color: #fff; /* Ensure text is readable */
    text-align: center; /* Center-align text and images */
}

.card.glass-card .card-img-top {
    width: 95%; /* Set the width of the image to 90% of the button */
    margin: 0 auto; /* Center the image horizontally */
    display: block; /* Ensure the image is treated as a block element */
}

.card-title {
    color: #fff !important;
}

footer, .footer {
    background-color: #0c2340 !important;
    color: white !important;
    font-size: 0.9rem;
    padding: 10px;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.footer #footer-controls {
    display: flex;
    align-items: center;
}

.footer .block-container {
    margin-left: auto;
}

.footer-link {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-link:hover {
    color: #084298;
    text-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
}

.footer-link i {
    margin-right: 5px;
}

@media (max-width: 576px) {
    .footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer .container > div {
        margin-bottom: 10px;
    }
}

/* Ensure the styles are applied */
.container, .row, .col-md-2, .col-md-10, .col-md-4, .mb-4, .text-center, .card, .card-body, .nav, .nav-item, .nav-link {
    box-sizing: border-box;
}

#buttonA, #buttonB, #buttonC, #buttonD, #buttonR, #buttonT, #buttonI, #buttonM {
    display: none;
}

/* Watermark del logo */
#watermarkLogo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.8;
    max-width: 90%;
    pointer-events: none;
    display: block; /* Siempre visible */
}

#logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    opacity: 0.1;
    max-width: 90%;
    pointer-events: none;
    display: none; /* Inicialmente oculto */
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

@keyframes loading {
    0% {
        cy: 10;
    }

    25% {
        cy: 3;
    }

    50% {
        cy: 10;
    }
}

body {
    background: #333;
    font-family: sans-serif;
    overflow: hidden;
}

@keyframes cdp-in {
    from {
        transform: scale(1.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cdp {
    position: relative;
    text-align: center;
    padding: 20px 0;
    font-size: 0;
    z-index: 6;
    margin: 50px 0;
    animation: cdp-in 500ms ease both;
    animation-timeout: 200ms;
    &_i

{
    font-size: 14px;
    text-decoration: none;
    transition: background 250ms;
    display: inline-block;
    text-transform: uppercase;
    margin: 0 3px 6px;
    height: 38px;
    min-width: 38px;
    border-radius: 38px;
    border: 2px solid #fff;
    line-height: 38px;
    padding: 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: .03em;
    display: none;
    &:first-child, &:last-child

{
    padding: 0 16px;
    margin: 0 12px 6px;
}

&:last-child,
&:nth-child(2),
&:nth-last-child(2) {
    display: inline-block;
}

}

&_i:hover {
    background-color: #000;
    color: #fff;
}

&:not([actpage="1"]) &_i:nth-child(1) {
    display: inline-block;
}

}

@for $i from 1 through 80 {
    .cdp[actpage="#{$i}"] {
        /* 3 before*/
        .cdp_i:nth-child(#{$i - 2}):not(:first-child):not(:nth-child(2))

{
    display: inline-block;
    pointer-events: none;
    color: transparent;
    border-color: transparent;
    width: 50px;
    &:after

{
    content: '...';
    color: #fff;
    font-size: 32px;
    margin-left: -6px;
}

}

// 2 before
.cdp_i:nth-child(#{$i - 1}):not(:first-child) {
    display: inline-block;
}

// before
.cdp_i:nth-child(#{$i}):not(:first-child) {
    display: inline-block;
}

// active
.cdp_i:nth-child(#{$i + 1}) {
    background-color: #000;
    color: #fff;
    display: inline-block;
    +.cdp_i:last-child

{
    display: none !important;
}

}

// next
.cdp_i:nth-child(#{$i + 2}):not(:last-child) {
    display: inline-block;
}

// 2 next
.cdp_i:nth-child(#{$i + 3}):not(:last-child) {
    display: inline-block;
}

// 3 next
.cdp_i:nth-child(#{$i + 4}):not(:last-child):not(:nth-last-child(2)) {
    display: inline-block;
    pointer-events: none;
    color: transparent;
    border-color: transparent;
    width: 50px;
    &:after

{
    content: '...';
    color: #fff;
    font-size: 32px;
    margin-left: -6px;
}

}
}
}

/* Asegurar que el navbar mantenga su estructura consistente */
.navbar-brand {
    display: flex;
    align-items: center;
    height: 60px;
    margin-left: 20px; /* Mover el logo un poco más a la derecha */
}

/* Excepción para la página de Login - logo en posición original */
body:has(.login-page) .navbar-brand,
.login-page ~ .navbar .navbar-brand {
    margin-left: 0; /* Logo en posición original para Login */
}

.navbar h1 {
    display: flex;
    align-items: center;
    height: 60px;
}

#navbarButtons {
    display: flex;
    align-items: center;
    height: 60px;
}

/* Asegurar que el contenido del navbar se alinee correctamente */
.navbar > .container,
.navbar > .container-fluid {
    display: flex;
    align-items: center;
    height: 80px;
}

/* Asegurar que los elementos del navbar no cambien de tamaño */
.navbar .user-section {
    display: flex;
    align-items: center;
    height: 60px;
    margin-right: 20px; /* Espacio entre el avatar y el borde del navbar */
}

.navbar .btn {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
