/* Swift Loans - Custom Brand Styles & Utilities */

:root {
  --primary: #00875a;
  --primary-hover: #00704a;
  --primary-light: #e3fcef;
  --secondary: #0f172a;
  --accent: #2563eb;
  --brand-green: #00875a;
  --surface: #ffffff;
  --background: #f8fafc;
  --border: #e2e8f0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Brand Gradient */
.bg-brand-gradient {
  background: linear-gradient(135deg, #0a2540 0%, #0d3b66 50%, #00875a 100%);
}

.text-gradient {
  background: linear-gradient(135deg, #00875a 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Slider Styling */
.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #e2e8f0;
  outline: none;
  transition: opacity .2s;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #00875a;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 135, 90, 0.4);
  border: 3px solid #ffffff;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #00704a;
}

.custom-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #00875a;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 135, 90, 0.4);
  border: 3px solid #ffffff;
}

/* Card Glow and Hover */
.loan-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.loan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Trust Badges */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Status Badges */
.badge-pending {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.badge-approved {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.badge-review {
  background-color: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}
.badge-contacted {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.badge-rejected {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Modal Animations */
.modal-backdrop {
  backdrop-filter: blur(4px);
  transition: opacity 0.25s ease-out;
}

.modal-content-box {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-out;
}

/* Shimmer Loading */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
