/* Estilos personalizados para FinanzApp */

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  /* Generales */
  .fadeIn {
    animation: fadeIn 0.3s ease-in-out;
  }
  
  .slideIn {
    animation: slideIn 0.3s ease-in-out;
  }
  
  /* Tarjetas */
  .card-zoom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
  }
  
  /* Etiquetas */
  .tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1;
    font-weight: 500;
    margin-right: 4px;
    margin-bottom: 4px;
  }
  
  /* Campos de formulario con validación */
  input:invalid, select:invalid {
    border-color: #EF4444;
  }
  
  input:invalid:focus, select:invalid:focus {
    border-color: #EF4444;
    box-shadow: 0 0 0 1px #EF4444;
  }
  
  .form-error {
    color: #EF4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }
  
  /* Calendario */
  .fc-day-today {
    background-color: rgba(59, 130, 246, 0.05) !important;
  }
  
  .fc-event {
    cursor: pointer;
    padding: 2px 4px;
  }
  
  .fc-event.income {
    background-color: #10B981;
    border-color: #059669;
  }
  
  .fc-event.expense {
    background-color: #EF4444;
    border-color: #DC2626;
  }
  
  .fc-event.transfer {
    background-color: #3B82F6;
    border-color: #2563EB;
  }
  
  /* Tablas */
  table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
  }
  
  /* Toast/Notificaciones */
  .toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
    transition: all 0.3s ease-in-out;
    animation: slideIn 0.3s ease-in-out;
  }
  
  .toast-success {
    background-color: #D1FAE5;
    border-left: 4px solid #10B981;
    color: #065F46;
  }
  
  .toast-error {
    background-color: #FEE2E2;
    border-left: 4px solid #EF4444;
    color: #B91C1C;
  }
  
  .toast-info {
    background-color: #DBEAFE;
    border-left: 4px solid #3B82F6;
    color: #1E40AF;
  }
  
    @media (max-width: 640px) {
    .toast {
      left: 1rem;
      right: 1rem;
    }
    
    .fc-header-toolbar {
      flex-direction: column;
      align-items: flex-start !important;
      gap: 0.5rem;
    }
  }

  /* ===== Separadores de Fecha en Transacciones ===== */
  .date-separator-row td {
    background: transparent !important;
    border: none !important;
    padding-bottom: 0 !important;
  }

  .date-badge {
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: 0.01em;
    transition: background 0.2s;
    user-select: none;
  }

  /* Filas de transacción: hover sutil */
  #transactionsTableBody tr:not(.date-separator-row) {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
  }

  #transactionsTableBody tr:not(.date-separator-row):hover {
    background-color: #f9fafb !important;
  }

  /* Íconos de tipo de transacción */
  #transactionsTableBody .tipo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    margin-right: 0.375rem;
    font-size: 0.65rem;
  }