menu-bar {
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    padding: 0 0px; 
    margin: 0;
}
menu-bar a {
    text-decoration: none;
    color: white; 
    font-size: 16px;
    font-weight: bold;
    padding: 5px 10px; 
    transition: background-color 0.3s ease;
    display: flex; 
    align-items: center; 
}
menu-bar a:not(.active):hover {
    background-color: var(--secondary-color); 
    color: white; 
    text-decoration: none;
}
menu-bar img {
    transition: transform 0.3s ease, filter 0.3s ease;
    margin-right: 5px; 
}
menu-bar a:not(.active):hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}
menu-bar a:visited {
    color: white;
    text-decoration: none;
}
menu-bar a.active {
    color: white;
    background-color: var(--secondary-color);
    text-decoration: none;
}
.nav-link.database::before {
    background-image: var(--icon-database);
}
.nav-link.users::before {
    background-image: var(--icon-users);
}
.nav-link.strains::before {
    background-image: var(--icon-strains);
}
.nav-link.batches::before {
    background-image: var(--icon-batches);
}
.nav-link.controles::before {
    background-image: var(--icon-controles);
}
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px; 
    font-size: 16px;
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}
.nav-link::before {
    content: '';
    display: inline-block;
    width: 30px; 
    height: 30px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.nav-link.home::before {
    background-image: var(--icon-home);
}
.nav-link.searches::before {
    background-image:  var(--icon-buscar);
}
.nav-link.small::before {
    width: 24px;
    height: 24px;
}
.nav-link.large::before {
    width: 60px;
    height: 60px;
}
.nav-link.active {
    font-weight: bold;
    color: var(--active-color);
}
.nav-link:hover::before, .nav-link.active::before {
    transform: scale(1.4);
    filter: brightness(1.2);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}
.nav-link.active::before {
    margin-right: 10px; 
}
    .nav-link {
        width: 100%;
        text-align: left;
        padding: 10px;
    }
@media (max-width: 728px) {
    .menu-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-link {
        width: 100%;
        text-align: left;
        padding: 10px;
        font-size: clamp(14px, 3.5vw, 16px);
    }
    .menu-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    .menu-right .username {
        width: auto;
        text-align: right;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 3px;
        white-space: nowrap;
    }
    .menu-right .icons {
        display: flex;
        gap: 10px;
    }
    .menu-right a {
        text-align: right;
        padding: 5px 0;
        font-size: clamp(14px, 3.5vw, 16px);
    }
    .nav-link::before,
    .menu-right .icons svg,
    .menu-right .username svg,
    .menu-right a svg,
    .menu-right .en_US {
        width: clamp(20px, 5vw, 30px);
        height: clamp(20px, 5vw, 30px);
    }
}
@media (max-width: 728px) {
    .top-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .top-bar .headerlogo {
        margin-bottom: 10px;
        width: clamp(60px, 15vw, 100px); 
        height: clamp(34px, 10vw, 80px); 
    }
    .top-bar .cat_header {
        font-size: clamp(16px, 4vw, 20px); 
    }
    .tbl-top {
        width: 100%;
        text-align: center;
    }
    .tbl-top td {
        display: block;
        width: 100%;
    }
    .search-form input {
        width: clamp(80px, 20vw, 120px); 
        font-size: clamp(14px, 4vw, 16px); 
    }
    .search-form button {
        font-size: clamp(14px, 4vw, 16px); 
    }
}

.flex.justify-between.items-center.px-4.first-line {
    background-color: var(--primary-color);
    min-height: 36px; /* Mantiene color en toda la línea */
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.first-line a,
.first-line .username,
.first-line .feather {
    color: white !important; /* Asegura que no se vuelva invisible */
    stroke: white !important;
}

.flex.justify-between.items-center.px-4.py-2 a,
.flex.justify-between.items-center.px-4.py-2 .nav-link {
    color: white !important;
}
.flex.justify-between.items-center.px-4.py-2 svg {
    stroke: white !important;
    fill: none !important;
}
.flex.justify-between.items-center.px-4.py-2 .nav-link::before {
    filter: none !important; 
}
.menu-right svg.feather {
    width: 30px !important;
    height: 30px !important;
    transition: transform 0.3s ease;
}
.menu-right a:hover svg.feather {
    transform: scale(1.4);
}
.flex.justify-between.items-center.px-4.py-2 {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    overflow: visible; 
}
.nav-link::before {
    transition: transform 0.3s ease;
}
.nav-link:hover::before, 
.nav-link.active::before {
    transform: scale(1.8); 
}
.flex.justify-between.items-center.px-4.py-2 .nav-link {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}
.flex.justify-between.items-center.px-4.py-2 {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    overflow: visible; 
}
.nav-link::before {
    transition: transform 0.3s ease;
}
.nav-link:hover::before, 
.nav-link.active::before {
    transform: scale(1.8); 
}
/* === Enlaces Globales === */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px; /* Reducido para evitar exceso de espacio */
    font-size: 16px;
    text-decoration: none;
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
}
.nav-link:hover {
    color: var(--active-color);
}
.nav-link::before {
    content: '';
    display: inline-block;
    width: var(--icon-size);
    height: var(--icon-size);
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}
.nav-link:hover::before {
    transform: scale(1.6);
}


   .submenu-bar a {
    background-color: white;
    color: var(--primary-color);
    padding: 6px 14px;
    font-weight: bold;
    border-radius: 3px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    white-space: nowrap;
    font-size: 13px;
    border: 1px solid var(--primary-color);
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  
  .submenu-bar a:hover {
    background-color: var(--primary-color);
    color: white;
  }

   .submenu-icon {
    width: 40px;
    height: 40px;
    padding: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
  }
  
  .submenu-icon.strains {
    background-image: var(--icon-strains);
  }
  .submenu-icon.batches {
    background-image: var(--icon-batches);
  }
  .submenu-icon.controles {
    background-image: var(--icon-controles);
  }
  
 
  