/* Admin Header Styles */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 70px;
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 100%;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.sidebar-toggle-btn {
  display: none;
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle-btn:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sidebar-toggle-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-left h1 {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.2;
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 100%;
}

.back-to-dashboard-btn {
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-medium);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  vertical-align: middle;
  flex-shrink: 0;
}

.back-to-dashboard-btn:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-border-dark);
  color: var(--color-text-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-to-home-btn {
  background: var(--color-info-light);
  color: var(--color-info);
  border: 1px solid var(--color-info-light);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  vertical-align: middle;
  flex-shrink: 0;
}

.back-to-home-btn:hover {
  background: var(--color-info-light);
  border-color: var(--color-info);
  color: var(--color-info-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-center {
  flex: 1;
  max-width: 500px;
  margin: 0 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-medium);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.search-bar:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--form-input-focus-shadow);
}

.global-search {
  flex: 1;
  padding: 10px 15px;
  border: none;
  background: none;
  font-size: 0.95rem;
  outline: none;
}

.global-search::placeholder {
  color: var(--color-text-muted);
}

.search-btn {
  padding: 10px 15px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.search-btn:hover {
  color: var(--color-text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--color-bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
}

.user-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-success);
  background: var(--color-success-light);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--color-bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.notification-btn:hover {
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--color-danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

.theme-toggle-btn {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-border-medium);
  transform: scale(1.05);
}

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

.logout-btn {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-medium);
  color: var(--color-text-primary);
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-border-dark);
}

/* Dark theme support */
[data-theme='dark'] .admin-header {
  background: var(--color-bg-primary);
  border-bottom-color: var(--color-border-light);
}

[data-theme='dark'] .header-left h1 {
  color: var(--color-text-primary);
}

[data-theme='dark'] .sidebar-toggle-btn {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

[data-theme='dark'] .sidebar-toggle-btn:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

[data-theme='dark'] .search-bar {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-light);
}

[data-theme='dark'] .global-search {
  color: var(--color-text-primary);
}

[data-theme='dark'] .global-search::placeholder {
  color: var(--color-text-muted);
}

[data-theme='dark'] .search-btn {
  color: var(--color-text-secondary);
}

[data-theme='dark'] .search-btn:hover {
  color: var(--color-text-primary);
}

[data-theme='dark'] .admin-user-info {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-light);
}

[data-theme='dark'] .user-name {
  color: var(--color-text-primary);
}

[data-theme='dark'] .user-avatar {
  background: var(--color-bg-tertiary);
}

[data-theme='dark'] .notification-btn {
  color: var(--color-text-secondary);
}

[data-theme='dark'] .notification-btn:hover {
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

[data-theme='dark'] .theme-toggle-btn {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-light);
}

[data-theme='dark'] .theme-toggle-btn:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-border-medium);
}

[data-theme='dark'] .logout-btn {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-light);
  color: var(--color-text-primary);
}

[data-theme='dark'] .logout-btn:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-border-medium);
}

[data-theme='dark'] .back-to-dashboard-btn {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border-color: var(--color-border-light);
}

[data-theme='dark'] .back-to-dashboard-btn:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-border-medium);
}

[data-theme='dark'] .back-to-home-btn {
  background: var(--color-bg-secondary);
  color: var(--color-info);
  border-color: var(--color-border-light);
}

[data-theme='dark'] .back-to-home-btn:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-border-medium);
}

/* Mobile responsive design */
