/**
 * Custom CSS for Finanzas Personales SaaS
 * Complementing Tailwind CSS
 */

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Custom card hover effects */
.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom button styles */
.btn-gradient {
  background: linear-gradient(to right, #047857, #10b981);
  transition: background 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(to right, #065f46, #059669);
}

/* Dashboard stats card */
.stats-card {
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stats-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom progress bar */
.progress-bar-container {
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* Custom tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: #374151;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Custom modal animation */
.modal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

/* Notification badge */
.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  padding: 3px 6px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
}

/* Custom table styles */
.table-hover tr:hover {
  background-color: #f9fafb;
}

/* Custom form focus effects */
.input-focus {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-focus:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  outline: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .mobile-hide {
    display: none;
  }
  
  .mobile-full {
    width: 100%;
  }
}

/* Print styles for reports */
@media print {
  .no-print {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
  
  .print-break {
    page-break-before: always;
  }
}
