/* Custom CSS for Maheshwari Foundation Website - Classy Minimal Aesthetic */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1d4ed8;
}

/* Typography Defaults & Smooth Scroll */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: #fafbfc;
}
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Glassmorphism Navigation */
.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.dark .glass-nav {
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Before / After Image Slider */
.ba-container {
  position: relative;
  user-select: none;
  overflow: hidden;
  border-radius: 1.5rem;
}
.ba-img-after {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.ba-img-before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  z-index: 10;
}
.ba-img-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  max-width: none;
  object-fit: cover;
}
.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #ffffff;
  z-index: 20;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.ba-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* India SVG Map Highlights */
.in-state {
  fill: #e2e8f0;
  stroke: #ffffff;
  stroke-width: 1.2;
  transition: all 0.3s ease;
  cursor: pointer;
}
.dark .in-state {
  fill: #1e293b;
  stroke: #0f172a;
}
.in-state:hover {
  fill: #2563eb;
  stroke: #60a5fa;
  stroke-width: 2;
  filter: drop-shadow(0px 4px 10px rgba(37, 99, 235, 0.4));
}
.in-state.active {
  fill: #2563eb;
  stroke: #ffffff;
  stroke-width: 2.5;
}

/* Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.animate-float {
  animation: floatSlow 5s ease-in-out infinite;
}

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

/* Printable Receipt */
@media print {
  body * {
    visibility: hidden;
  }
  #printableReceipt, #printableReceipt * {
    visibility: visible;
  }
  #printableReceipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
  }
}
