/* Admin Menu Bar */
.admin-menu {
  background: var(--bg-dark-secondary, #1a1a2e);
  border-bottom: 2px solid var(--zone-accent-admin);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 64px;
  z-index: 90;
}

/* Adjust flash messages positioning on admin pages */
body:has(.admin-menu) .flash-messages {
  top: 136px; /* Below header (80px) + admin menu (56px) */
}

.admin-menu-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
}

.admin-menu-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-menu-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
}

.admin-menu-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.admin-menu-link.active {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.15);
}

.admin-menu-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #dc2626;
}

.admin-menu-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.admin-menu-user {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: #d1d5db;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.admin-menu-signout {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #dc2626;
  color: white;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-menu-signout:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.admin-menu-actions form {
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .admin-menu-container {
    flex-direction: column;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    min-height: auto;
  }

  .admin-menu-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-menu-nav::-webkit-scrollbar {
    height: 3px;
  }

  .admin-menu-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
  }

  .admin-menu-actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-menu-user {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-menu-signout {
    flex-shrink: 0;
  }

  .admin-menu-link {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .admin-menu-link {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
  
  .admin-menu-user {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
  }
  
  .admin-menu-signout {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
  }
}
