/* Custom styles for credit card calculator */

/* Loading animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
  transform: translateY(0);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Button pulse animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(30, 64, 175, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 64, 175, 0); }
}

.btn-pulse {
  animation: pulse 2s infinite;
}

/* Calculator result animation */
.result-slide {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #1e40af, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Focus states */
input:focus,
select:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .mobile-text-sm {
    font-size: 0.875rem;
  }
  
  .mobile-p-4 {
    padding: 1rem;
  }
}

/* Warning animations */
.warning-flash {
  animation: warningFlash 2s ease-in-out infinite;
}

@keyframes warningFlash {
  0%, 100% { background-color: rgba(239, 68, 68, 0.1); }
  50% { background-color: rgba(239, 68, 68, 0.2); }
}

/* Success animations */
.success-glow {
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.3);
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #1e40af;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Table responsive */
@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.75rem;
  }
  
  .table-responsive th,
  .table-responsive td {
    padding: 0.5rem 0.25rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .print-break {
    page-break-before: always;
  }
}