/* Admin tema geçişi — sidebar + üst bar */

.admin-theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid var(--admin-border);
  background: var(--admin-overlay);
  color: var(--admin-text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.admin-theme-toggle:hover {
  background: var(--admin-overlay-hover);
  border-color: var(--admin-border-strong);
}

.admin-theme-toggle:focus-visible {
  outline: 2px solid var(--admin-accent);
  outline-offset: 2px;
}

.admin-theme-toggle__ico-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: var(--admin-accent);
}

.admin-theme-toggle__icon {
  position: absolute;
  inset: 0;
  width: 1.125rem;
  height: 1.125rem;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.2s, transform 0.2s;
}

.admin-theme-toggle__icon--sun {
  opacity: 1;
  transform: scale(1);
}

[data-admin-theme="dark"] .admin-theme-toggle__icon--sun {
  opacity: 0;
  transform: scale(0.82);
}

[data-admin-theme="dark"] .admin-theme-toggle__icon--moon {
  opacity: 1;
  transform: scale(1);
}

.admin-theme-toggle__label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.admin-theme-toggle--compact {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  justify-content: center;
  flex-shrink: 0;
}

.admin-theme-toggle--compact .admin-theme-toggle__label {
  display: none;
}
