/* Styles for dashboard navigation (nav-dash)
   Accent colors matched to sidebar: orange #f59e0b and darker #d97706
*/
:root{
  --accent: #f59e0b;
  --accent-600: #d97706;
  --bg: #ffffff;
  --muted: #6b7280;
  --border: #e9ecef;
}

.nav-dash{
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(16,24,40,0.04);
}

.nav-dash .brand{
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-dash .brand img{
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid transparent;
}

.nav-dash .brand .title{
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}

.nav-dash .nav-items{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-dash .nav-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 160ms ease;
}

.nav-dash .nav-link i{
  color: var(--accent-600);
  font-size: 14px;
}

.nav-dash .nav-link:hover{
  background: linear-gradient(90deg, rgba(245,158,11,0.08), rgba(217,119,6,0.06));
  color: #111827;
  transform: translateY(-1px);
}

.nav-dash .nav-link.active{
  background: linear-gradient(90deg, var(--accent), var(--accent-600));
  color: #fff;
  box-shadow: 0 6px 18px rgba(245,158,11,0.12);
}

.nav-dash .nav-link .label{
  display: inline-block;
}

/* Small badge for notifications / urgent */
.nav-dash .badge{
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff3cd;
  color: var(--accent-600);
  font-weight: 700;
  font-size: 11px;
  margin-left: 6px;
}

/* Avatar */
.nav-dash .avatar{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(15,23,42,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.nav-dash .avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Collapsed / compact state */
.nav-dash.compact{
  gap: 10px;
  padding: 8px 10px;
}

.nav-dash.compact .brand .title,
.nav-dash.compact .nav-link .label{
  display: none;
}

/* Responsive */
@media (max-width: 900px){
  .nav-dash{
    padding: 8px 10px;
    gap: 10px;
  }
  .nav-dash .brand .title{
    display: none;
  }
}

@media (max-width: 480px){
  .nav-dash{
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav-dash .nav-items{
    width: 100%;
    justify-content: flex-end;
  }
}

/* Dedicated style for the "Ke Dashboard" button */
.nav-dash .ke-dashboard-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(245,158,11,0.12);
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
}

.nav-dash .ke-dashboard-btn i{ color: #fff; font-size: 15px; }

.nav-dash .ke-dashboard-btn:hover{
  background: var(--accent-600);
  transform: translateY(-2px);
}

.nav-dash .ke-dashboard-btn:focus{
  outline: 3px solid rgba(245,158,11,0.16);
  outline-offset: 2px;
}

@media (max-width: 600px){
  .nav-dash .ke-dashboard-btn{ padding: 8px 10px; font-size: 13px; }
}

@media (max-width: 420px){
  .nav-dash .ke-dashboard-btn{ width: 100%; justify-content: center; }
}
