::-webkit-scrollbar {
    width: 3px;
    
}

::-webkit-scrollbar-thumb {
    background: #444444 !important;

}

::-webkit-scrollbar-track {
    background-color: rgb(0, 0, 0);
}

::-webkit-scrollbar-thumb:hover {
    background: #a829b9;
}

::-webkit-scrollbar-thumb {
    border-radius: 20px;
}





.navbar {
    position: fixed;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px !important;

    color: white;
    font-family: Arial, sans-serif;
    z-index: 9999;
}

.navbar-brand{
    color: white;
    font-size: 24px;
    text-decoration: none;
    font-weight: bold;
}

.nav-item {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    font-size: 15px;
    font-family: Arial, sans-serif;
}

.nav-item li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    transition: background-color 0.3s ease;
}

.nav-item li a:hover {
    background-color: #555;
    border-radius: 5px;
}

/* Estilos del menú de perfil */
.profile-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-picture {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4CAF50;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-name {
    font-weight: bold;
    color: white;
    font-size: 16px;
}

.profile-email {
    font-size: 14px;
    color: #ccc;
}

.logout-link {
    margin-left: 20px;
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.logout-link:hover {
    background-color: #45a049;
}



.profile-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-picture {
    width: auto;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4CAF50;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.profile-menu {
    position: relative;
}

.profile-picture {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}


.profile-menu a {
    text-decoration: none; 
    outline: none;
}

.profile-menu a:focus {
    outline: none; 
}

.dropdown-menu {
    min-width: 200px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.438);
    border-radius: 5px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4.8px);
    -webkit-backdrop-filter: blur(4.8px);
}


.profile-name {
    font-weight: bold;
    display: block;
    color: rgb(189, 189, 189);
}

.profile-email {
    font-size: 0.9rem;
    color: #777;
    display: block;
}

.dropdown-item:hover {
    background-color: transparent;
}

.cerrar-sesion{
    color: red;

}

.cerrar-sesion:hover{
    color: rgb(153, 1, 1);
}





.search-box {
  transition: width 0.6s, border-radius 0.6s, background 0.6s, box-shadow 0.6s;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  background: #ebebeb;
}
.search-box + label .search-icon {
  color: black;
}
.search-box:hover {
  color: white;
  background: #c8c8c8;
  box-shadow: 0 0 0 5px #3d4752;
}
.search-box:hover + label .search-icon {
  color: white;
}
.search-box:focus {
  transition: width 0.6s cubic-bezier(0, 1.22, 0.66, 1.39), border-radius 0.6s, background 0.6s;
  border: none;
  outline: none;
  box-shadow: none;
  padding-left: 15px;
  cursor: text;
  width: 300px;
  border-radius: auto;
  background: #ebebeb;
  color: black;
}
.search-box:focus + label .search-icon {
  color: black;
}
.search-box:not(:focus) {
  text-indent: -5000px;
}

#search-submit {
  position: relative;
  left: -5000px;
}

.search-icon {
  position: relative;
  left: -30px;
  color: white;
  cursor: pointer;
}

.contenedor-rol {
    display: flex;
    justify-content: space-between;
    width: 100%;
}





.container-busqueda{
    position: relative;
    width: 100%;
}

.search-results {
    position: absolute;
    top:100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.603);
    backdrop-filter: blur(8px);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none; 
    border-radius: 5px;
}

.search-result-item {
    padding: 10px;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #1818188f;
}





/* Ajuste responsivo */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .profile-menu {
        margin-top: 15px;
    }

    .search-box:focus {
        width: 70%;
    }
}
