/* ==========================================================================
   Attendance Analyzer — Clean White / Light Theme Design System
   Left Sidebar Navigation Layout • Big Razorpay Button • Fully Responsive
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --primary: #4338ca;
  --primary-light: #6366f1;
  --primary-hover: #3730a3;
  --primary-glow: rgba(99, 102, 241, 0.12);
  
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  
  --bg-page: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  
  --border-light: #e2e8f0;
  --border-card: #e2e8f0;
  --border-glow: rgba(99, 102, 241, 0.25);
  
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-sidebar: 4px 0 24px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.08);
  
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --sidebar-width: 270px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
}

/* Subtle background accent glow */
body::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Left Sidebar Navigation Layout
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 20px 24px;
  box-shadow: var(--shadow-sidebar);
  z-index: 1000;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5 0%, #0284c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  color: white;
  flex-shrink: 0;
}

.brand-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  border: 1.5px solid #e2e8f0;
  flex-shrink: 0;
}

.brand-title {
  font-size: 19px;
  font-weight: 850;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
  flex: 1;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-menu li a svg {
  width: 19px;
  height: 19px;
  stroke: var(--text-muted);
  transition: stroke 0.2s;
}

.sidebar-menu li a:hover {
  background: var(--bg-card-subtle);
  color: var(--primary);
}

.sidebar-menu li a:hover svg {
  stroke: var(--primary);
}

.sidebar-menu li a.active {
  background: #eef2ff;
  color: var(--primary);
  font-weight: 750;
}

.sidebar-menu li a.active svg {
  stroke: var(--primary);
}

.sidebar-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.btn-sidebar-install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 850;
  letter-spacing: -0.2px;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.btn-sidebar-install:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
}

/* Mobile Header Bar */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 990;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.mobile-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
}

.mobile-brand-link:hover .brand-title {
  color: var(--primary);
}

.mobile-menu-btn {
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.content-container {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 36px 64px;
  flex: 1;
}

/* Hero Section */
.hero {
  padding: 24px 0 40px;
  text-align: left;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.4);
}

.hero-title {
  font-size: 44px;
  line-height: 1.18;
  margin-bottom: 16px;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 17.5px;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
}

.btn-install-large {
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.3px;
  min-width: 250px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 26px rgba(79, 70, 229, 0.42);
}

.btn-install-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.52);
}

.btn-subtle {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-subtle:hover {
  background: var(--bg-card-subtle);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* White Card System */
.white-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

/* ==========================================================================
   Extension Screenshot Showcase Slider (Clean Frameless Design)
   ========================================================================== */
.showcase-slider-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 36px -4px rgba(15, 23, 42, 0.07), 0 4px 14px -2px rgba(15, 23, 42, 0.03);
  margin: 32px 0 40px;
  border: none;
}

.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f8fafc;
  border: none;
}

.slider-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  border: none;
}

.slide-item {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: none;
}

.slide-item img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
  border: none;
  border-radius: var(--radius-lg);
}

/* Slider Controls */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #e2e8f0;
  color: var(--text-main);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  color: var(--primary);
  border-color: #cbd5e1;
}

.slider-prev-btn { left: 16px; }
.slider-next-btn { right: 16px; }

/* Slider Dots & Indicators (Sleek Blue Pill Active Indicator) */
.slider-footer {
  background: transparent;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-dot.active {
  background: var(--primary);
  width: 32px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.35);
}

/* ==========================================================================
   Beta / Under Development Page Styling
   ========================================================================== */
.beta-card {
  max-width: 680px;
  margin: 10px auto 40px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 750;
  color: var(--primary);
  margin-bottom: 20px;
}

.beta-title {
  font-size: 32px;
  font-weight: 850;
  margin-bottom: 12px;
  color: var(--text-main);
}

.beta-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.beta-form-container {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-top: 24px;
  text-align: left;
}

.beta-form-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.beta-form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.beta-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .beta-grid-2 {
    grid-template-columns: 1fr;
  }
}

.beta-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.beta-field label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.beta-input, .beta-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1;
  font-size: 14.5px;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.beta-input:focus, .beta-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.beta-textarea {
  min-height: 80px;
  resize: vertical;
}

.btn-beta-submit {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-beta-submit:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #c7d2fe;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-purple { background: #eef2ff; color: #4f46e5; }
.icon-cyan { background: #e0f2fe; color: #0284c7; }
.icon-emerald { background: #d1fae5; color: #059669; }
.icon-amber { background: #fef3c7; color: #d97706; }

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Big Razorpay Button & Payment Container
   ========================================================================== */
.payment-card {
  max-width: 620px;
  margin: 20px auto;
  text-align: center;
}

.payment-title {
  font-size: 32px;
  margin-bottom: 12px;
}

.payment-desc {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 500px;
  margin: 0 auto 30px;
}

/* Enlarged Razorpay Embed Box */
.razorpay-large-container {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  position: relative;
}

/* Arrow Callout */
.support-arrow-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #4338ca;
  margin-bottom: 16px;
  animation: bounceArrow 1.5s infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Scale up Razorpay button for high visibility */
.razorpay-large-container form {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  transform: scale(1.35);
  transform-origin: center;
  margin: 10px 0;
}

/* Razorpay Skeleton & Loading Animation */
.razorpay-loading-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.razorpay-skeleton {
  width: 100%;
  max-width: 340px;
  height: 56px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.razorpay-loading-text {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinLoader 0.75s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

.charity-pledge-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 14.5px;
  color: #15803d;
  line-height: 1.6;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dev-support-msg-box {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 14px;
  font-size: 14px;
  color: #3730a3;
  line-height: 1.6;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* ==========================================================================
   Privacy Policy Styling
   ========================================================================== */
.policy-card {
  padding: 40px;
}

.policy-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.policy-title {
  font-size: 32px;
  margin-bottom: 8px;
}

.policy-updated {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.policy-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.policy-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
}

.policy-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.policy-section h2 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.policy-section p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.policy-section ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.policy-section li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 6px;
}

/* ==========================================================================
   Advertise Notice Box
   ========================================================================== */
.ad-notice-box {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin: 20px 0 28px;
  text-align: left;
}

.ad-notice-box h3 {
  color: #854d0e;
  font-size: 18px;
  margin-bottom: 8px;
}

.ad-notice-box p {
  color: #713f12;
  font-size: 15px;
  margin: 0;
  line-height: 1.65;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  padding: 28px 36px;
  margin-top: auto;
}

.footer-content {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-credit {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-credit strong {
  color: var(--text-main);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   Live Interactive Attendance Calculator Widget
   ========================================================================== */
.calc-sandbox-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  margin: 44px 0 32px;
}

.calc-sandbox-header {
  text-align: center;
  margin-bottom: 28px;
}

.calc-sandbox-title {
  font-size: 24px;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.calc-sandbox-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}

@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.calc-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.calc-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.calc-targets {
  display: flex;
  gap: 8px;
}

.calc-target-btn {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calc-target-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.calc-results {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-pct-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.calc-pct-value {
  font-size: 38px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
}

.calc-badge-safe {
  background: #dcfce7;
  color: #15803d;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.calc-badge-warning {
  background: #fef3c7;
  color: #b45309;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.calc-badge-danger {
  background: #fee2e2;
  color: #b91c1c;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.calc-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 14px;
}

.calc-stat-row:last-child {
  border-bottom: none;
}

.calc-stat-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.calc-stat-value {
  font-weight: 800;
  color: var(--text-primary);
}

/* ==========================================================================
   Footer Styling
   ========================================================================== */
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1200;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .mobile-topbar {
    display: flex;
  }
  
  .main-wrapper {
    margin-left: 0;
    padding-top: 64px;
  }
  
  .content-container {
    padding: 28px 20px 48px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .white-card {
    padding: 24px 18px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
