
.navbar {
    background-color: var(--tertiary-color); /* background color as needed */
    height: 80px; /* Adjust the height as needed */
    font-family: 'Nunito', sans-serif;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 98%;
    border-radius: 10px; /* Rounded borders */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow */
    margin: 12px 12px 12px 12px;
   padding: 5px 5px 5px 5px;
}

.navbar-nav {
    margin-left: auto; /* Pushes the navbar items to the right */
}


.nav-item {
    text-align: right; /* Align text to the right */
}


.nav-item .nav-link {
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    transition: transform 0.3s ease, filter 0.3s ease;
    padding: 2px 2px 2px 2px   ; /* Adjust padding as needed */
    text-align: right; /* Center align text */
}

.nav-item .nav-link:hover,
.nav-item .nav-link:focus {
    transform: translateY(-5px);
    transform: scale(1.2); /* Scale the text on hover */
    filter: brightness(1.2);
}

/* Mobile Navigation Styles */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(166, 218, 247, 0.5);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(166, 218, 247, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
    gap: 10px;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    /* padding: 10px 15px !important; */
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link:hover, .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateX(5px);
}

.nav-link i {
    width: 24px;
    text-align: center;
}


/* Mobile specific styles */
@media (max-width: 991.98px) {
    #content {
        margin-left: 0;
        padding: 15px;
    }

    .navbar-collapse {
        position: fixed;
        top: 80px;
        left: 15px;
        right: 15px;
        z-index: 1000;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        background: var(--quaternary-color);
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    #navcol-1 {
        background-color: var(--quaternary-color);
        border-radius: 10px;
        margin-top: 15px;
        padding: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item {
        margin-bottom: 5px;
    }

    .nav-link {
        padding: 12px 15px !important;
    }

    .persona-image {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .persona-image img {
        width: 30px !important;
        height: 30px !important;
    }

    #logout {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Desktop specific styles */
@media (min-width: 992px) {
    .navbar-collapse {
        justify-content: flex-end;
    }

    .navbar-nav {
        align-items: center;
    }

    .persona-image {
        margin-left: 15px;
        padding-left: 15px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Animation for mobile menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-collapse.collapsing {
    animation: slideDown 0.3s ease-in-out;
}

@media (max-width: 1024px) {
        .navbar-collapse {
          background-color:  var(--secondary-color); /* Fondo oscuro */
          width: auto !important; /* Ajusta el ancho automáticamente */
          display: inline-block;
        }
        .navbar-collapse a {
          color: #ffffff; /* Letras blancas */
        }
}


.navbar-nav.custom-nav-spacing {
    margin-right: 15px; /* Margin from the end */

}


.custom-nav-spacing .nav-item {
  margin-right: 15px; /* Adjust the value as needed */
}
