/* ==========================================================================
   DATABOARD ID - BOOTSTRAP 5 CUSTOMIZATION & RED-WHITE THEME
   Font: Inter | Icons: Font Awesome 6 | Framework: Bootstrap 5.3
   ========================================================================== */

:root {
  --bs-primary: #DC2626;
  --bs-primary-rgb: 220, 38, 38;
  --bs-danger: #DC2626;
  --bs-danger-rgb: 220, 38, 38;
  --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --bs-body-color: #374151;
  --bs-heading-color: #111827;
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--bs-body-color);
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

/* Red accents & buttons */
.btn-danger {
  background-color: #DC2626;
  border-color: #DC2626;
  font-weight: 600;
}

.btn-danger:hover, .btn-danger:focus {
  background-color: #B91C1C;
  border-color: #B91C1C;
}

.btn-outline-danger {
  color: #DC2626;
  border-color: #DC2626;
  font-weight: 600;
}

.btn-outline-danger:hover {
  background-color: #FEF2F2;
  color: #B91C1C;
  border-color: #B91C1C;
}

.text-danger-custom {
  color: #DC2626 !important;
}

.bg-danger-subtle-custom {
  background-color: #FEF2F2 !important;
  color: #DC2626 !important;
}

.border-danger-custom {
  border-color: rgba(220, 38, 38, 0.3) !important;
}

/* Navbar */
.site-navbar {
  border-bottom: 1px solid #E5E7EB;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111827 !important;
  font-size: 1.25rem;
}

.brand-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  background-color: #DC2626;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: #4B5563 !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: #DC2626 !important;
  background-color: #FEF2F2;
}

/* Section Header */
.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #DC2626;
  background-color: #FEF2F2;
  border: 1px solid #FEE2E2;
  padding: 5px 14px;
  border-radius: 50rem;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1.25;
}

.section-desc {
  font-size: 1.0625rem;
  color: #6B7280;
  max-width: 640px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 50px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
  border-bottom: 1px solid #E5E7EB;
}

.hero-title {
  font-size: 2.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  line-height: 1.18;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #4B5563;
}

/* Dashboard Mockup in Hero */
.dashboard-mockup-wrapper {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.mockup-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  font-size: 0.75rem;
  color: #6B7280;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background-color: #EF4444; }
.dot-yellow { background-color: #F59E0B; }
.dot-green { background-color: #10B981; }

.mockup-body {
  padding: 20px;
}

.hero-canvas-container {
  width: 100%;
  height: 180px;
  position: relative;
}

.hero-canvas-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Benefit Cards */
.benefit-card {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 28px 24px;
  background: #FFFFFF;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  border-color: #D1D5DB;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.benefit-card.popular-card {
  border-color: #DC2626;
  position: relative;
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #DC2626;
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50rem;
}

.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FEF2F2;
  color: #DC2626;
  font-size: 1.25rem;
  margin-bottom: 18px;
}

/* Trust Strip */
.trust-strip {
  padding: 36px 0;
  border-bottom: 1px solid #E5E7EB;
  background-color: #FFFFFF;
}

.trust-title {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6B7280;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.trust-badges-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background-color: #F9FAFB;
  border: 1px solid #E5E7EB;
  padding: 8px 18px;
  border-radius: 50rem;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.trust-item:hover {
  border-color: #DC2626;
  color: #DC2626;
  background-color: #FEF2F2;
}

/* Live Demo Module (Sidebar Sejajar di Samping & Konten di Kanan) */
.demo-dashboard-layout {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100%;
  min-height: 560px;
  background-color: #FFFFFF;
}

.demo-sidebar {
  width: 230px !important;
  min-width: 230px !important;
  max-width: 230px !important;
  flex: 0 0 230px !important;
  background-color: #F9FAFB;
  border-right: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
}

.demo-main-content {
  flex: 1 1 0% !important;
  min-width: 0 !important; /* Mencegah overflow dan menjamin posisi sejajar horizontal */
  background-color: #FFFFFF;
  padding: 1.5rem;
  overflow-x: hidden;
}

@media (max-width: 767.98px) {
  .demo-dashboard-layout {
    flex-direction: column !important;
  }
  .demo-sidebar {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
  }
  .demo-main-content {
    padding: 1rem;
  }
}

.demo-sidebar-btn {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4B5563;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
}

.demo-sidebar-btn:hover {
  background-color: #E5E7EB;
  color: #111827;
}

.demo-sidebar-btn.active {
  background-color: #FEF2F2;
  color: #DC2626;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.demo-kpi-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 16px;
  height: 100%;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
}

.canvas-wrapper canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-wrapper.donut-wrapper {
  height: 180px;
}

.donut-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 3px 0;
}

.donut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Pricing Cards */
.pricing-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.pricing-card:hover {
  border-color: #D1D5DB;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.pricing-card.popular-pricing {
  border: 2px solid #DC2626;
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.1);
}

.price-val {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}

.pricing-card.popular-pricing .price-val {
  color: #DC2626;
}

.plan-features-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 28px;
  flex-grow: 1;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  margin-bottom: 12px;
  color: #4B5563;
}

.plan-features-list li strong {
  color: #111827;
}

.plan-features-list li.disabled {
  color: #9CA3AF;
  text-decoration: line-through;
}

/* Switch UI for Billing */
.billing-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  padding: 6px 18px;
  border-radius: 50rem;
}

.form-check-input:checked {
  background-color: #DC2626;
  border-color: #DC2626;
}

/* Range Slider */
.form-range::-webkit-slider-thumb {
  background-color: #DC2626;
}

.form-range::-moz-range-thumb {
  background-color: #DC2626;
}

/* Accordion */
.accordion-button:not(.collapsed) {
  color: #DC2626;
  background-color: #FEF2F2;
  box-shadow: none;
}

.accordion-button:focus {
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.15);
}

/* CTA Card */
.cta-banner-card {
  background-color: #DC2626;
  border-radius: 16px;
  padding: 50px 32px;
  color: #FFFFFF;
}

/* Footer */
.site-footer {
  border-top: 1px solid #E5E7EB;
  background-color: #FFFFFF;
  padding: 60px 0 24px;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 14px;
}

.footer-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-list li {
  font-size: 0.875rem;
  color: #4B5563;
  margin-bottom: 8px;
}

.footer-list a {
  color: #4B5563;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-list a:hover {
  color: #DC2626;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background-color: #F3F4F6;
  border: 1px solid #E5E7EB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4B5563;
  text-decoration: none;
  transition: all 0.15s ease;
}

.social-btn:hover {
  background-color: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
}
