/* core/static/css/components/navbar.css */

/* =========================
   NAVBAR
========================= */
.nav-wrap{
  padding-top: 12px;
}

.nav-pill{
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: var(--shadow);
  max-width: 100%;
}

.nav-row{
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  min-width: 0;
}

.brand-logo{
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  font-size: 1.1rem;
}

.brand-name{
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.6rem;
  line-height: 1.2;
}


.nav-menu{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  margin-left: auto;
}

/* Desktop */
@media (min-width: 992px){
  .nav-menu{
    margin-left: auto;
    margin-right: 16px;
  }
  .nav-actions{
    margin-left: 0;
  }
}

.nav-link-item{
  text-decoration: none;
  font-weight: 600;
  color: rgba(37, 99, 235, 0.75);
}

.nav-link-item:hover{
  transform: translateY(-1px);
  opacity: .95;
  color: rgb(30, 75, 170);
}

.nav-link-item.is-active{
  color: rgb(3, 40, 126);
}

.nav-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}

.nav-hamburger{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(37,99,235,0.14);
  color: rgba(37,99,235,1);
  align-items: center;
  justify-content: center;
}

.nav-hamburger i{
  font-size: 22px;
}

.nav-profile{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.14);
  color: rgba(37,99,235,1);
  text-decoration: none;
  border: 0;
}

.nav-profile i{
  font-size: 20px;
}

/* Offcanvas links */
.mobile-link{
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  color: #0f172a;
}

.mobile-link:hover{
  background: rgba(15,23,42,0.06);
}

/* Mobile tweaks */
@media (max-width: 576px){
  .nav-pill{ padding: 10px 12px; }
  .nav-row{ gap: 10px; }

  .brand-logo{ width: 30px; height: 30px; }

  .brand-name{
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
  }
}

@media (max-width: 991.98px){
  .nav-actions{ margin-left: auto; }
}

/* Dropdown perfil */
.nav-dropdown{
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.10);
  padding: 8px;
  min-width: 220px;
}

.nav-dd-item{
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
}

.nav-dd-item:hover{
  background: rgba(15, 23, 42, 0.06);
}

.nav-dd-danger{ color: #dc2626; }
.nav-dd-danger:hover{ background: rgba(220, 38, 38, 0.10); }

.mobile-section-title{
  margin: 0 0 8px 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.65);
}

.mobile-link-danger{ color: #dc2626; }
