/* Amer Security - Main Stylesheet (Light Mode Theme) */

:root {
  --primary: #1e40af;       /* Royal Blue */
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --secondary: #059669;     /* Emerald Green (Trust & Payment) */
  --secondary-hover: #047857;
  --accent-red: #dc2626;    /* Warning / Lock state */
  --accent-amber: #d97706;  /* Overdue warning */
  --bg-slate: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --shadow-glow: 0 0 35px -5px rgba(37, 99, 235, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-slate);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Typography Enhancements */
.font-bengali {
  font-family: 'Hind Siliguri', sans-serif;
}
.font-english {
  font-family: 'Inter', sans-serif;
}

/* Gradients & Glows */
.gradient-primary {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
}
.gradient-secondary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}
.gradient-badge {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.hero-glow-bg {
  background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.09) 0%, rgba(248, 250, 252, 0) 70%);
}

/* Phone Mockup Frame */
.phone-mockup-container {
  perspective: 1200px;
}
.phone-mockup {
  width: 310px;
  height: 620px;
  background: #0f172a;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.2);
  position: relative;
  margin: 0 auto;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.phone-mockup:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 70px -15px rgba(37, 99, 235, 0.25), 0 0 0 2px rgba(37, 99, 235, 0.4);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: #ffffff;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  width: 120px;
  height: 22px;
  background: #0f172a;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 40;
}
.phone-notch::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #1e293b;
  border-radius: 50%;
  position: absolute;
  top: 7px;
  right: 24px;
}

/* Phone States (Normal vs Locked) */
.phone-state {
  transition: opacity 0.35s ease, transform 0.35s ease;
  height: 100%;
  width: 100%;
}
.phone-state.hidden-state {
  display: none;
  opacity: 0;
  transform: scale(0.96);
}
.phone-state.active-state {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: scale(1);
}

/* Pulsing Badge & Radar */
.pulse-radar {
  position: relative;
}
.pulse-radar::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background-color: inherit;
  animation: radarPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  opacity: 0.6;
}
@keyframes radarPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* Interactive Card Hover */
.feature-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-color);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px rgba(30, 64, 175, 0.12);
  border-color: #93c5fd;
}

/* Modal Backdrops */
.modal-overlay {
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
}

/* Range Slider Customization */
input[type="range"] {
  accent-color: #2563eb;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.5);
}

/* Print/Challan preview card */
.receipt-paper {
  background: #fff;
  border: 1px dashed #cbd5e1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

