/* Generic IconButton styling */
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  background: var(--color-bg-elevated);
  color: var(--color-text);
  cursor: pointer;
  min-width: 33px;
  min-height: 33px;
  padding: 0;
  box-sizing: border-box;
}

.icon-button:hover { background: var(--color-border); }
.icon-button:active { transform: translateY(1px); }

.icon-button.primary { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.icon-button.primary:hover { filter: brightness(1.05); }

.icon-button.success { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.icon-button.success:hover { filter: brightness(1.1); }

.icon-button.ghost { background: var(--color-bg-elevated); }

/* Mobile touch target improvements */
@media (max-width: 768px) {
  .icon-button {
    min-width: var(--min-touch-target);
    min-height: var(--min-touch-target);
  }
  
  /* Keep icon size consistent to prevent blurriness */
  .icon-button svg {
    font-size: 1rem;
    width: 1em;
    height: 1em;
  }
}

/* Disable hover effects on touch devices */
@media (pointer: coarse) {
  .icon-button:hover { background: var(--color-bg-elevated); }
  .icon-button.ghost:hover { background: var(--color-bg-elevated); }
  .icon-button:active { background: var(--color-border); }
}

