/* Custom styles for Saving on Bank Interest (SBI) - sbihome.loan */

:root {
  --primary-emerald: #059669;
  --primary-dark: #065f46;
  --primary-light: #10b981;
  --accent-gold: #f59e0b;
  --slate-dark: #0f172a;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

/* Custom Range Slider Styling with large mobile touch targets */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  outline: none;
  margin: 16px 0;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #059669;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #059669;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:focus::-webkit-slider-thumb {
  transform: scale(1.18);
  background: #047857;
}

/* Chips Buttons */
.quick-chip {
  transition: all 0.2s ease;
}
.quick-chip:hover {
  border-color: #059669;
  color: #059669;
}
.quick-chip.active {
  background-color: #059669;
  color: #ffffff;
  border-color: #059669;
}

/* Donut Chart SVG Animations */
.donut-segment {
  transition: stroke-dasharray 0.4s ease-out, stroke-dashoffset 0.4s ease-out;
}

/* Modal Backdrop & Animations */
.modal-backdrop {
  backdrop-filter: blur(4px);
  background-color: rgba(15, 23, 42, 0.7);
}

.modal-content {
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Sticky Mobile Bottom Bar */
.mobile-sticky-bar {
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

/* Custom Table scroll styling */
.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Print Friendly Styles for Amortization Schedule */
@media print {
  header, footer, .mobile-sticky-bar, #lead-modal, .no-print {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  #amortization-schedule-container {
    display: block !important;
  }
}
