/**
 * shadcn/ui Styles for ISP Débito Automático Frontend
 * Modern, accessible design system
 */

/* CSS Custom Properties (shadcn/ui variables) */
:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 221.2 83.2% 53.3%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 222.2 84% 4.9%;
  --muted: 210 40% 96%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96%;
  --accent-foreground: 222.2 84% 4.9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 221.2 83.2% 53.3%;
  --radius: 0.5rem;
  --success: 142 76% 36%;
  --warning: 38 92% 50%;
}

/* Dark mode variables */
.dark {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  --primary: 217.2 91.2% 59.8%;
  --primary-foreground: 222.2 84% 4.9%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 224.3 76.3% 94.1%;
}

/* Base reset and utilities */
* {
  box-sizing: border-box;
}

/* Main container */
.isp-debito-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Card component */
.shadcn-card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  margin-bottom: 1.5rem;
}

.shadcn-card-header {
  padding: 1.5rem 1.5rem 0;
}

.shadcn-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
  letter-spacing: -0.025em;
  margin: 0 0 0.25rem 0;
}

.shadcn-card-description {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin: 0;
}

.shadcn-card-content {
  padding: 1.5rem;
}

.shadcn-card-footer {
  display: flex;
  align-items: center;
  padding: 0 1.5rem 1.5rem;
}

/* Button component */
.shadcn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.shadcn-button:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.shadcn-button:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Button variants */
.shadcn-button-default {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  height: 2.5rem;
  padding: 0 1rem;
}

.shadcn-button-default:hover {
  background: hsl(var(--primary) / 0.9);
}

.shadcn-button-destructive {
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  height: 2.5rem;
  padding: 0 1rem;
}

.shadcn-button-destructive:hover {
  background: hsl(var(--destructive) / 0.9);
}

.shadcn-button-outline {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  height: 2.5rem;
  padding: 0 1rem;
}

.shadcn-button-outline:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.shadcn-button-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  height: 2.5rem;
  padding: 0 1rem;
}

.shadcn-button-secondary:hover {
  background: hsl(var(--secondary) / 0.8);
}

.shadcn-button-ghost {
  height: 2.5rem;
  padding: 0 1rem;
}

.shadcn-button-ghost:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Button sizes */
.shadcn-button-sm {
  height: 2.25rem;
  border-radius: calc(var(--radius) - 2px);
  padding: 0 0.75rem;
  font-size: 0.75rem;
}

.shadcn-button-lg {
  height: 2.75rem;
  border-radius: var(--radius);
  padding: 0 2rem;
}

/* Input component */
.shadcn-input {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  padding: 0 0.75rem;
  font-size: 0.875rem;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.shadcn-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.shadcn-input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  ring-width: 2px;
  ring-color: hsl(var(--ring));
  ring-offset-width: 2px;
  border-color: hsl(var(--ring));
}

.shadcn-input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Error states for inputs and selects */
.shadcn-input-error,
.shadcn-select.shadcn-input-error {
  border-color: hsl(var(--destructive)) !important;
  outline: 2px solid hsl(var(--destructive) / 0.2) !important;
  outline-offset: 2px;
}

.shadcn-select.shadcn-input-error:focus,
.shadcn-input-error:focus {
  outline: 2px solid hsl(var(--destructive)) !important;
  outline-offset: 2px;
  ring-color: hsl(var(--destructive));
  border-color: hsl(var(--destructive)) !important;
}

/* Label component */
.shadcn-label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  display: block;
}

/* Form group */
.shadcn-form-group {
  margin-bottom: 1.5rem;
}

/* Select component */
.shadcn-select {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  padding: 0 0.75rem;
  font-size: 0.875rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.shadcn-select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  ring-width: 2px;
  ring-color: hsl(var(--ring));
  ring-offset-width: 2px;
  border-color: hsl(var(--ring));
}

/* Badge component */
.shadcn-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.shadcn-badge-default {
  border: transparent;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.shadcn-badge-secondary {
  border: transparent;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.shadcn-badge-destructive {
  border: transparent;
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.shadcn-badge-outline {
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.shadcn-badge-success {
  border: transparent;
  background: hsl(var(--success));
  color: hsl(var(--primary-foreground));
}

/* Alert component */
.shadcn-alert {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  padding: 1rem;
  margin-bottom: 1rem;
}

.shadcn-alert-default {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.shadcn-alert-destructive {
  border-color: hsl(var(--destructive) / 0.5);
  color: hsl(var(--destructive));
  background: hsl(var(--destructive) / 0.1);
}

.shadcn-alert-success {
  border-color: hsl(var(--success) / 0.5);
  color: hsl(var(--success));
  background: hsl(var(--success) / 0.1);
}

.shadcn-alert-title {
  margin-bottom: 0.25rem;
  font-weight: 500;
  line-height: 1;
}

.shadcn-alert-description {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Table component */
.shadcn-table {
  width: 100%;
  min-width: 100%;
  caption-side: bottom;
  font-size: 0.875rem;
  border-collapse: collapse;
  table-layout: auto;
}

.shadcn-table-header {
  border-bottom: 1px solid hsl(var(--border));
}

.shadcn-table-header tr {
  border-bottom: 1px solid hsl(var(--border));
}

.shadcn-table-header th {
  height: 3rem;
  padding: 0 0.75rem;
  text-align: left;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.shadcn-table-body tr {
  border-bottom: 1px solid hsl(var(--border));
}

.shadcn-table-body tr:hover {
  background: hsl(var(--muted) / 0.5);
}

.shadcn-table-body td {
  padding: 0.75rem;
  vertical-align: middle;
}

/* Table row styling */
.shadcn-table-row {
  transition: background-color 0.2s ease;
}

.shadcn-table-row:hover {
  background-color: hsl(var(--muted) / 0.5);
}

/* Table container for responsive scrolling */
.shadcn-table-container {
  width: 100%;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: visible;
}

/* Only add scroll on very small screens */
@media (max-width: 640px) {
  .shadcn-table-container {
    overflow-x: auto;
  }
}

.shadcn-table-container::-webkit-scrollbar {
  height: 8px;
}

.shadcn-table-container::-webkit-scrollbar-track {
  background: hsl(var(--muted));
  border-radius: 4px;
}

.shadcn-table-container::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.3);
  border-radius: 4px;
}

.shadcn-table-container::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}

/* Column width optimization */
.shadcn-table th:nth-child(1), .shadcn-table td:nth-child(1) { width: 20%; min-width: 150px; } /* Cliente */
.shadcn-table th:nth-child(2), .shadcn-table td:nth-child(2) { width: 12%; min-width: 100px; } /* Documento */
.shadcn-table th:nth-child(3), .shadcn-table td:nth-child(3) { width: 12%; min-width: 100px; } /* Sucursal */
.shadcn-table th:nth-child(4), .shadcn-table td:nth-child(4) { width: 10%; min-width: 90px; }  /* Tarjeta */
.shadcn-table th:nth-child(5), .shadcn-table td:nth-child(5) { width: 8%; min-width: 70px; }   /* Tipo */
.shadcn-table th:nth-child(6), .shadcn-table td:nth-child(6) { width: 10%; min-width: 80px; }  /* Marca */
.shadcn-table th:nth-child(7), .shadcn-table td:nth-child(7) { width: 8%; min-width: 70px; }   /* Estado */
.shadcn-table th:nth-child(8), .shadcn-table td:nth-child(8) { width: 12%; min-width: 120px; } /* Fecha */
.shadcn-table th:nth-child(9), .shadcn-table td:nth-child(9) { width: 8%; min-width: 100px; }  /* Operador */

/* Tablet responsive adjustments */
@media (max-width: 1024px) {
  .shadcn-table th:nth-child(2), .shadcn-table td:nth-child(2) { display: none; } /* Hide Documento */
  .shadcn-table th:nth-child(9), .shadcn-table td:nth-child(9) { display: none; } /* Hide Operador */
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .shadcn-table th,
  .shadcn-table td {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .shadcn-table th:nth-child(n+6),
  .shadcn-table td:nth-child(n+6) {
    display: none; /* Hide columns 6 and beyond */
  }
}

@media (max-width: 640px) {
  .shadcn-table th:nth-child(3), .shadcn-table td:nth-child(3) { display: none; } /* Hide Sucursal */
  .shadcn-table th:nth-child(5), .shadcn-table td:nth-child(5) { display: none; } /* Hide Tipo */
}

/* Tabs component */
.shadcn-tabs {
  width: 100%;
}

.shadcn-tabs-list {
  display: inline-flex;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: hsl(var(--muted));
  padding: 0.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.shadcn-tabs-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  ring-offset-color: hsl(var(--background));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
}

.shadcn-tabs-trigger:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.shadcn-tabs-trigger:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.shadcn-tabs-trigger[data-state="active"] {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.shadcn-tabs-content {
  ring-offset-color: hsl(var(--background));
}

.shadcn-tabs-content:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Credit Card styling */
.isp-credit-card-display {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.8));
  color: hsl(var(--primary-foreground));
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 1rem 0;
  font-family: 'Courier New', monospace;
}

.isp-card-number {
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  margin: 1rem 0;
}

.isp-card-details {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.875rem;
}

/* Status indicators */
.isp-status-active {
  color: hsl(var(--success));
}

.isp-status-inactive {
  color: hsl(var(--muted-foreground));
}

.isp-status-error {
  color: hsl(var(--destructive));
}

/* Loading states */
.isp-loading {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid hsl(var(--muted-foreground) / 0.3);
  border-radius: 50%;
  border-top-color: hsl(var(--primary));
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Status toggle button styles */
.status-toggle-btn {
  position: relative;
  min-width: 60px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease-in-out !important;
}

.status-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.status-toggle-btn:active {
  transform: translateY(0);
}

.status-toggle-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
  transform: none !important;
}

.status-loading {
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* Grid responsive utility para 2 columnas */
.isp-form-grid-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Radio buttons inline */
.isp-radio-inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.isp-radio-inline {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  transition: all 0.2s ease;
  user-select: none;
}

.isp-radio-inline:hover {
  border-color: hsl(var(--primary));
  background: hsl(var(--accent));
}

.isp-radio-inline input[type="radio"] {
  margin: 0;
  margin-right: 0.5rem;
  cursor: pointer;
  width: 1rem;
  height: 1rem;
  accent-color: hsl(var(--primary));
}

.isp-radio-inline input[type="radio"]:checked + span {
  font-weight: 600;
  color: hsl(var(--primary));
}

.isp-radio-inline:has(input[type="radio"]:checked) {
  border-color: hsl(var(--primary));
  border-width: 2px;
  background: hsl(var(--primary) / 0.05);
}

.isp-radio-inline span {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .isp-debito-container {
    padding: 0.75rem;
  }

  .shadcn-card-content {
    padding: 1rem;
  }

  .shadcn-card-header {
    padding: 1rem 1rem 0;
  }

  .shadcn-card-footer {
    padding: 0 1rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .shadcn-button {
    width: 100%;
  }

  /* Optimizar tamaños de inputs en tablet */
  .shadcn-input,
  .shadcn-select {
    height: 2.5rem;
    font-size: 0.9375rem;
  }

  /* Radio buttons en tablet */
  .isp-radio-inline {
    padding: 0.5rem 0.875rem;
  }

  .isp-radio-inline span {
    font-size: 0.8125rem;
  }
}

/* Media query para móviles */
@media (max-width: 640px) {
  .isp-debito-container {
    padding: 0.5rem;
  }

  .shadcn-card {
    border-radius: calc(var(--radius) + 1px);
  }

  .shadcn-card-content {
    padding: 0.75rem;
  }

  .shadcn-card-header {
    padding: 0.75rem 0.75rem 0;
  }

  .shadcn-card-footer {
    padding: 0 0.75rem 0.75rem;
  }

  /* Grid de 2 columnas permanece en mobile */
  .isp-form-grid-double {
    gap: 0.75rem;
  }

  /* Optimizar inputs para mobile */
  .shadcn-input,
  .shadcn-select {
    height: 2.75rem;
    font-size: 0.875rem;
    padding: 0 0.875rem;
  }

  /* Mejorar legibilidad de labels */
  .shadcn-label {
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
  }

  /* Reducir gaps entre form groups */
  .shadcn-form-group {
    margin-bottom: 1rem;
  }

  /* Títulos más compactos */
  .shadcn-card-title {
    font-size: 1rem;
    line-height: 1.375rem;
  }

  .shadcn-card-description {
    font-size: 0.75rem;
    line-height: 1rem;
  }

  /* Botones más compactos */
  .shadcn-button {
    font-size: 0.8125rem;
  }

  /* Radio buttons en mobile */
  .isp-radio-inline-group {
    gap: 0.5rem;
  }

  .isp-radio-inline {
    padding: 0.5rem 0.75rem;
  }

  .isp-radio-inline span {
    font-size: 0.75rem;
  }

  .isp-radio-inline input[type="radio"] {
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.375rem;
  }
}

/* Media query para móviles muy pequeños */
@media (max-width: 480px) {
  .isp-debito-container {
    padding: 0.375rem;
  }

  .shadcn-card-content {
    padding: 0.625rem;
  }

  .shadcn-card-header {
    padding: 0.625rem 0.625rem 0;
  }

  .shadcn-card-footer {
    padding: 0 0.625rem 0.625rem;
    gap: 0.375rem;
  }

  /* Inputs más grandes en pantallas muy pequeñas para facilitar toque */
  .shadcn-input,
  .shadcn-select {
    height: 3rem;
    font-size: 0.875rem;
  }

  /* Labels aún más compactos */
  .shadcn-label {
    font-size: 0.75rem;
  }

  /* Botones con altura adecuada para toque */
  .shadcn-button {
    min-height: 2.75rem;
    font-size: 0.8125rem;
  }

  .shadcn-button-lg {
    min-height: 3rem;
    font-size: 0.875rem;
  }

  /* Títulos en móviles pequeños */
  .shadcn-card-title {
    font-size: 0.9375rem;
    line-height: 1.25rem;
  }

  .shadcn-card-description {
    font-size: 0.6875rem;
    line-height: 0.9375rem;
  }

  /* Form groups más compactos */
  .shadcn-form-group {
    margin-bottom: 0.875rem;
  }

  /* Radio buttons en móviles muy pequeños */
  .isp-radio-inline-group {
    gap: 0.375rem;
  }

  .isp-radio-inline {
    padding: 0.5rem 0.625rem;
    flex: 1 1 auto;
  }

  .isp-radio-inline span {
    font-size: 0.6875rem;
  }

  .isp-radio-inline input[type="radio"] {
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.25rem;
  }
}

/* Modal styles */
.isp-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.isp-modal.show {
  display: flex;
}

.isp-modal-content {
  position: relative;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close button */
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  padding: 0.25rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.modal-close-btn:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
}

/* WordPress compatibility */
.wp-core-ui .shadcn-button {
  height: auto;
  line-height: normal;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

/* Override WordPress admin styles when needed */
.isp-debito-container * {
  box-sizing: border-box;
}

.isp-debito-container input[type="text"],
.isp-debito-container input[type="email"],
.isp-debito-container input[type="number"],
.isp-debito-container select {
  box-shadow: none;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
}

/* Utility classes */
.hidden {
  display: none !important;
}

.show {
  display: block !important;
}

.text-center {
  text-align: center;
}