/* Sağ üst — sadece ikon */
.auth-top-actions {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1200;
  padding: 1rem 1.15rem;
  pointer-events: none;
}

.auth-top-actions .theme-icon-btn {
  pointer-events: auto;
}

.theme-icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.theme-icon-btn i {
  font-size: 1.2rem;
  pointer-events: none;
}

.theme-icon-btn:focus {
  outline: none;
}

.theme-icon-btn:focus-visible {
  outline: 2px solid rgba(140, 82, 255, 0.75);
  outline-offset: 3px;
}

/* Giriş / auth */
.auth-body .theme-icon-btn {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

[data-theme="light"] .auth-body .theme-icon-btn {
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.12);
}

.auth-body .theme-icon-btn:hover {
  transform: scale(1.07);
  background: rgba(140, 82, 255, 0.45);
  color: #fff;
  box-shadow: 0 6px 24px rgba(140, 82, 255, 0.35);
}

[data-theme="light"] .auth-body .theme-icon-btn:hover {
  background: rgba(109, 40, 217, 0.12);
  color: #6d28d9;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.2);
}

/* Eski alt düğme — gizle */
.auth-shell .theme-toggle-btn,
.auth-shell [data-theme-toggle]:not(.theme-icon-btn) {
  display: none !important;
}

/* Uygulama üst bar */
.admin-topbar .theme-icon-btn {
  background: var(--po-surface);
  color: var(--po-text);
  border: 1px solid var(--po-border);
  box-shadow: none;
}

.admin-topbar .theme-icon-btn:hover {
  background: var(--po-surface-hover);
  transform: scale(1.05);
  color: var(--po-text);
}
