.app-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  height: 70px;
  padding: 0 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.app-header-title {
  font-size: 1.5em;
  color: #fff;
  flex-shrink: 0;
  margin: 0;
  white-space: nowrap;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.app-header-links {
  display: flex;
  gap: 8px;
}

.app-header-links a {
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  transition: background 0.3s;
  font-size: 0.9em;
  white-space: nowrap;
}

.app-header-links a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.app-header-links a.active {
  background: rgba(255, 255, 255, 0.35);
  font-weight: 600;
}

/* Compact nav: hidden by default, shown below 1200px */
.app-header-nav-compact {
  display: none;
  position: relative;
}

.app-header-nav-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  font-size: 0.9em;
  color: #fff;
  cursor: default;
  white-space: nowrap;
  user-select: none;
}

.app-header-nav-arrow {
  font-size: 0.75em;
  opacity: 0.8;
  transition: transform 0.2s;
}

.app-header-nav-compact:hover .app-header-nav-arrow {
  transform: rotate(180deg);
}

.app-header-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 6px;
  min-width: 200px;
  z-index: 9999;
  flex-direction: column;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.15));
}

.app-header-nav-compact:hover .app-header-nav-dropdown {
  display: flex;
}

.app-header-nav-dropdown a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 0.9em;
  white-space: nowrap;
  transition: background 0.15s;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.app-header-nav-dropdown a:first-child { border-radius: 10px 10px 0 0; }
.app-header-nav-dropdown a:last-child  { border-bottom: none; border-radius: 0 0 10px 10px; }

.app-header-nav-dropdown a:hover  { background: #f5f5f5; }
.app-header-nav-dropdown a.active { color: #667eea; font-weight: 600; background: #f0f2ff; }

/* Breakpoints */
@media (max-width: 1199px) {
  .app-header-links      { display: none; }
  .app-header-nav-compact { display: block; }
}

