/* UTILITIES */
* {
    box-sizing: border-box;
}


a {
    text-decoration: none;
}

li {
    list-style: none;
}

/* NAVBAR STYLING STARTS */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px;
    background-color: white;
    color: #fff;
    margin-bottom: 3px !important;
}

.nav-links{
    margin-top: 20px;
}

.nav-links a {
    color: #000;
}

/* LOGO */
.logo-img {
    height: 50px;
}

/* NAVBAR MENU */
.menu {
    display: flex;
    gap: 1em;
    font-size: 14px;
}

.menu li:hover {
    border-radius: 5px;
    transition: 0.3s ease;
}

.menu a:hover {
    color: #1463FF;
}

.menu li {
    padding: 5px 14px;
}

/* DROPDOWN MENU */
.services {
    position: relative;
}

.dropdown-user {
    padding: 1em 0;
    position: absolute;
    display: none;
    border-radius: 8px;
    border-color: #000;
    top: 100%;
    background-color: white;
    width: 100%;
    border-radius: 9px !important;
    margin-top: 0.5rem;
}
.dropdown-list {
    padding: 1em 0;
    position: absolute;
    display: none;
    border-radius: 8px;
    border-color: #000;
    top: 100%;
    background-color: white;
    border-radius: 9px !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2) !important;
    min-width: 80%;
    white-space: nowrap;
}

.dropdown li + li {
    margin-top: 10px;
}

.dropdown li {
    padding: 0.5em 1em;
    width: 100%;
    text-align: start !important;
}

.dropdown li:hover {
    background-color: #1463FF;
}

.dropdown li:hover a {
    color: #fff;
}

.services:hover .dropdown {
    display: block;
}

/* RESPONSIVE NAVBAR MENU STARTS */

/* CHECKBOX HACK */

#checkbox_toggle {
    display: none !important;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    font-size: 24px;
    user-select: none;
    background-color: #1463FF;
    padding: 0.5rem;
    float: right;
    border-radius: 9px;
}

.close {
    display: none !important;
    font-size: 24px;
    user-select: none;
    background-color: #1463FF;
    padding: 0.5rem;
    border-radius: 9px;
}


/* APPLYING MEDIA QUERIES */
@media (max-width: 768px) {
    .menu {
        display:none;
        position: absolute;
        background-color:white;
        right: 0;
        left: 0;
        text-align: center;
        padding: 16px 0;
    }

    .menu li:hover {
        display: inline-block;
        background-color:#1463FF;
        transition: 0.3s ease;
    }

    .menu li + li {
        margin-top: 12px;
    }

    #checkbox_toggle:checked ~ .menu {
        display: block;
        top: 100px;
    }

    .hamburger {
        display: block; /* Asegúrate de que el menú hamburguesa se muestre */
        margin-left: auto; /* Empuja el menú hamburguesa a la derecha */
    }

    .dropdown {
        left: 50%;
        top: 30px;
        transform: translateX(35%);
    }

    .dropdown li:hover {
        background-color: #1463FF;
    }

    #checkbox_toggle:checked ~ .close {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    #checkbox_toggle:checked ~ .hamburger {
        display: none;
    }
}

/* User Container Styles */
.user-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 20px;
}

.user-container-name {
    color: #fff;
    font-size: 14px;
    padding: 5px 10px;
    background: linear-gradient(45deg, #1463FF, #FF1F4D) ;
    border-radius: 9px !important;
}

.user-container a {
    color: #000;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
}

.divider {
    background: linear-gradient(45deg, #1463FF, #FF1F4D);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between; /* Alinea elementos a ambos extremos */
        align-items: center; /* Centra los elementos verticalmente */
    }

    .user-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* Ajusta para centrar exactamente */
        display: block;
        text-align: center;
        top: 7rem;
        width: 100%;
    }

    #checkbox_toggle:checked ~ .menu {
        display: block;
    }
}

.services > a::after {
    content: " \25BC"; /* Código Unicode para la flecha hacia abajo */
    font-size: 0.8em; /* Ajusta el tamaño de la flecha según necesites */
    margin-left: 5px; /* Espacio entre el texto y la flecha */
}

.navbar-bottom-bar {
    width: 100%;
    height: 6px;
    background-color: #1463FF;
}

.dropdown li:hover, .dropdown li:active {
    background-color: #1463FF; /* Color de fondo azul */
    color: #fff !important; /* Color del texto blanco */
}

.dropdown li:hover a, .dropdown li:active a {
    color: #fff; /* Asegura que los enlaces también cambien a blanco */
}
