/* ==========================================================================
   Icon Button
   Used for navbar actions (messages, notifications, theme toggle, ...).
   ========================================================================== */

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.icon-button:hover {
  background-color: var(--color-surface-secondary);
  color: var(--color-text-primary);
}

.icon-button-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-danger);
  border: 2px solid var(--color-surface);
}

/* Theme toggle icon swap — CSS-driven, no JS icon logic needed */
.icon-theme-dark {
  display: none;
}

[data-theme="dark"] .icon-theme-light {
  display: none;
}

[data-theme="dark"] .icon-theme-dark {
  display: block;
}
