/* Top Navigation Bar */
.top-bar {
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--primary-dark);
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger button to toggle sidebar */
.btn-sidebar-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  transition: all 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}

.btn-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-sidebar-toggle:active {
  transform: scale(0.95);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-sub {
  font-size: 11.5px;
  opacity: 0.85;
  font-weight: 400;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  padding-left: 10px;
  white-space: nowrap;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  flex-shrink: 0;
}

.badge-info {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  white-space: nowrap;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
  flex-shrink: 0;
}

.status-dot.error {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.status-dot.loading {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.btn-settings-icon {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 2px 6px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.btn-settings-icon:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .top-bar {
    padding: 6px 10px;
  }

  .brand-sub {
    display: none; /* Hide subtitle on phones to save space */
  }

  .brand-title {
    font-size: 12.5px;
  }

  .badge-info {
    font-size: 11px;
    padding: 2px 6px;
  }

  #status-label {
    display: none; /* Hide text label on mobile, only show status dot */
  }
}
