/* ========================================
   Material Design Theme (White & Navy)
   ======================================== */
:root {
  --md-primary: #1A237E;
  --md-primary-dark: #001f3f;
  --md-surface: #FFFFFF;
  --md-on-primary: #FFFFFF;
  --md-on-surface: #212121;
  --md-secondary: #1A237E;
  --md-outline: #E0E0E0;
  --md-success: #43A047;
  --md-grey-600: #757575;
}

/* Override Bootstrap primary for frontend */
body.frontend-layout .text-primary,
body.frontend-layout a.text-primary {
  color: var(--md-primary) !important;
}

body.frontend-layout .btn-primary {
  background-color: var(--md-primary);
  border-color: var(--md-primary);
}

body.frontend-layout .btn-primary:hover {
  background-color: var(--md-primary-dark);
  border-color: var(--md-primary-dark);
}

body.frontend-layout .btn-outline-primary {
  color: var(--md-primary);
  border-color: var(--md-primary);
}

body.frontend-layout .btn-outline-primary:hover {
  background-color: var(--md-primary);
  border-color: var(--md-primary);
  color: var(--md-on-primary);
}

body.frontend-layout .bg-primary {
  background-color: var(--md-primary) !important;
}

body.frontend-layout .border-primary {
  border-color: var(--md-primary) !important;
}

body.frontend-layout .card-outline.card-primary {
  border-color: var(--md-primary);
}

body.frontend-layout .card-outline.card-primary .card-body i.text-primary {
  color: var(--md-primary) !important;
}

/* Pricing cards - Shaynaaa style */
.pricing-card {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--md-outline);
  background: var(--md-surface);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pricing-card.pricing-card-highlight {
  background: var(--md-primary-dark);
  border-color: var(--md-primary-dark);
  position: relative;
  transform: scale(1.02);
}

@media (max-width: 991.98px) {
  .pricing-card.pricing-card-highlight {
    transform: none;
  }
}

.pricing-card-highlight:hover {
  box-shadow: 0 12px 32px rgba(0, 31, 63, 0.3);
}

.pricing-card .plan-name {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--md-primary);
}

.pricing-card-highlight .plan-name {
  color: var(--md-on-primary);
}

.pricing-card .plan-tagline {
  font-size: 0.9rem;
  color: var(--md-grey-600);
}

.pricing-card-highlight .plan-tagline {
  color: rgba(255, 255, 255, 0.85);
}

.pricing-card .plan-price {
  color: var(--md-on-surface);
  font-weight: 700;
}

.pricing-card-highlight .plan-price,
.pricing-card-highlight .plan-period,
.pricing-card-highlight .plan-yearly {
  color: var(--md-on-primary);
}

.pricing-card-highlight .list-unstyled li {
  color: var(--md-on-primary);
}

.pricing-card-highlight .list-unstyled i.fa-check {
  color: var(--md-success) !important;
}

.badge-popular {
  background: var(--md-primary) !important;
  color: var(--md-on-primary) !important;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Trial badge on highlighted card - ensure visibility */
.pricing-card-highlight .badge-info {
  background: rgba(255, 255, 255, 0.25) !important;
  color: var(--md-on-primary) !important;
}

.btn-plan-cta {
  background: var(--md-primary);
  border-color: var(--md-primary);
  color: var(--md-on-primary);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  min-height: 44px;
  border-radius: 8px;
}

.btn-plan-cta:hover {
  background: var(--md-primary-dark);
  border-color: var(--md-primary-dark);
  color: var(--md-on-primary);
}

.btn-plan-outline {
  border: 2px solid var(--md-outline);
  color: var(--md-on-surface);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  min-height: 44px;
  border-radius: 8px;
  background: transparent;
}

.btn-plan-outline:hover {
  border-color: var(--md-primary);
  color: var(--md-primary);
  background: transparent;
}

/* Trust Badge: Data Protection - prominent visibility */
.trust-badge-section {
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.06) 0%, rgba(0, 31, 63, 0.04) 100%);
}

.trust-badge-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--md-surface);
  border: 2px solid var(--md-primary);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(26, 35, 126, 0.12);
}

.trust-badge-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-primary);
  color: var(--md-on-primary);
  border-radius: 12px;
  font-size: 1.75rem;
}

.trust-badge-content {
  text-align: left;
}

.trust-badge-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--md-primary);
  margin-bottom: 0.35rem;
}

.trust-badge-text {
  font-size: 1rem;
  color: var(--md-on-surface);
  line-height: 1.5;
}

.trust-badge-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--md-primary);
}

.trust-badge-link:hover {
  color: var(--md-primary-dark);
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .trust-badge-card {
    flex-direction: column;
    text-align: center;
  }

  .trust-badge-content {
    text-align: center;
  }
}

/* How to Subscribe numbered circles */
.subscribe-step {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  font-size: 1.5rem;
  background: var(--md-primary);
  color: var(--md-on-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 575.98px) {
  .subscribe-step {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    font-size: 1.25rem;
  }
}

/* FAQ accordion navy theme */
body.frontend-layout #accordion .btn-link {
  color: var(--md-on-surface);
}

body.frontend-layout #accordion .btn-link:hover {
  color: var(--md-primary);
}

body.frontend-layout #accordion .card-header {
  background-color: #f8f9fa;
}

/* Mobile-friendly: touch targets, responsive spacing */
@media (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section .btn-lg {
    width: 100%;
    max-width: 100%;
  }

  .pricing-card {
    margin-bottom: 1rem;
  }

  section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .badge {
    font-size: 0.7rem;
  }
}

/* Hero headline: fixed height so typing effect never pushes content below */
.hero-headline-wrap {
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-headline-wrap h1 {
  margin-bottom: 0 !important;
}

@media (max-width: 767px) {
  .hero-headline-wrap {
    height: 6rem;
  }
}

/* Hero typing effect – bold navy words */
.hero-typing {
  color: var(--md-primary, #1A237E);
  font-weight: 700;
}

.hero-typing-cursor {
  color: var(--md-primary, #1A237E);
  font-weight: 700;
  animation: hero-cursor-blink 1s step-end infinite;
}

@keyframes hero-cursor-blink {
  50% {
    opacity: 0;
  }
}

/* Navbar link colors - navy theme */
body.frontend-layout .navbar .nav-link {
  color: var(--md-on-surface) !important;
}

body.frontend-layout .navbar .nav-link:hover {
  color: var(--md-primary) !important;
}

/* Frontend landing page styles */
.frontend-layout {
  padding-top: 0;
}

.hero-section {
  min-height: 400px;
}

.footer-frontend a:hover {
  opacity: 0.8;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* FAQ accordion button styling */
#accordion .btn-link {
  color: #333;
  text-decoration: none;
}

#accordion .btn-link:hover {
  text-decoration: none;
  color: #007bff;
}

#accordion .card-header {
  background-color: #f8f9fa;
}

/* Navbar fixed - add padding to body for first section */
body.frontend-layout {
  padding-top: 0;
}

/* Google Play badge - official-style */
.btn-google-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 14px;
  background: linear-gradient(180deg, #3c4043 0%, #1a1a1a 100%);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  min-height: 52px;
}

.btn-google-play:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.btn-google-play .gp-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.btn-google-play .gp-name {
  font-size: 18px;
  font-weight: 500;
}

.btn-google-play .gp-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.btn-google-play.disabled-badge {
  cursor: default;
  opacity: 0.85;
}

.btn-google-play.disabled-badge:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Google Play badge - blue (like Play icon, live download link) */
.btn-google-play.btn-google-play-green {
  background: linear-gradient(180deg, #5c9ef8 0%, #4285f4 50%, #3367d6 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.4);
}

.btn-google-play.btn-google-play-green:hover {
  color: #fff;
  background: linear-gradient(180deg, #7ab3f9 0%, #5c9ef8 50%, #4285f4 100%);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.5);
}

/* Mermaid diagram container */
#attendance-flow {
  min-height: 200px;
}

#attendance-flow svg {
  max-width: 100%;
  height: auto;
}

/* Backend flow pre block */
#in-action pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 13px;
}

/* See It In Action – screenshot grid (browser-frame style, like “Real Examples”) */
.screenshot-showcase {
  --mockup-radius: 10px;
  --mockup-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  --mockup-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
}

.screenshot-mockup-card {
  background: #fff;
  border-radius: var(--mockup-radius);
  box-shadow: var(--mockup-shadow);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.screenshot-mockup-card:hover {
  box-shadow: var(--mockup-shadow-hover);
  transform: translateY(-2px);
}

.mockup-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #f1f3f4;
  border-bottom: 1px solid #e8eaed;
}

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

.mockup-dot-red {
  background: #ff5f57;
}

.mockup-dot-yellow {
  background: #febc2e;
}

.mockup-dot-green {
  background: #28c840;
}

.mockup-img-wrap {
  padding: 0;
  overflow: hidden;
  background: #fff;
  flex: 1;
  min-height: 200px;
}

.mockup-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.mockup-caption {
  padding: 12px 14px 14px;
  margin: 0;
  font-size: 0.875rem;
  color: var(--md-grey-600, #757575);
  text-align: center;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

/* See It In Action – screenshot slideshow: full width, berjalan terus, slide sejajar */
.screenshot-carousel {
  position: relative;
  padding: 0 3rem;
  max-width: 100%;
  width: 100%;
}

.screenshot-carousel .carousel-item {
  padding: 0.5rem 0 2.5rem;
  min-height: 320px;
  align-items: stretch;
}

/* 1 baris saja: 6 kartu sejajar, tidak wrap di lg/md */
.screenshot-carousel .carousel-item .row.row-one-line {
  align-items: stretch;
  width: 100%;
  flex-wrap: nowrap;
}

@media (min-width: 768px) {
  .screenshot-carousel .carousel-item .row.row-one-line {
    flex-wrap: nowrap;
  }
}

.screenshot-carousel .carousel-item .row [class*="col"] {
  display: flex;
}

.screenshot-carousel .carousel-item .screenshot-mockup-card {
  width: 100%;
}

.screenshot-carousel .carousel-indicators {
  margin-bottom: 0.25rem;
}

.screenshot-carousel .carousel-indicators li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--md-primary, #1A237E);
  border: none;
}

.screenshot-carousel .carousel-indicators li.active {
  background-color: var(--md-primary-dark, #001f3f);
  transform: scale(1.25);
}

/* Grid 2×3 per slide, full width */
.screenshot-carousel-grid .carousel-inner {
  min-height: 0;
}

.screenshot-carousel-grid .screenshot-mockup-card .mockup-img-wrap {
  min-height: 120px;
  flex: 1;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.screenshot-carousel-grid .mockup-img-wrap img {
  max-height: 260px;
  width: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.screenshot-carousel-grid .mockup-caption {
  padding: 8px 10px 10px;
  font-size: 0.8rem;
}

@media (max-width: 767.98px) {
  .screenshot-carousel {
    padding: 0 2.5rem;
  }

  .screenshot-carousel .carousel-item {
    min-height: 280px;
  }

  .screenshot-carousel .carousel-item .row.row-one-line {
    flex-wrap: wrap;
  }

  .screenshot-carousel-grid .mockup-img-wrap img {
    max-height: 160px;
  }
}

/* Features section: slideshow – 3 simple cards per slide (no mockup) */
.features-carousel-slides {
  position: relative;
  padding: 0 3rem;
  max-width: 100%;
}

.features-carousel-slides .carousel-item {
  padding: 0.5rem 0 2.5rem;
  min-height: 280px;
  align-items: stretch;
}

.features-carousel-slides .carousel-item .row.row-one-line {
  align-items: stretch;
  width: 100%;
  flex-wrap: nowrap;
}

.features-carousel-slides .carousel-item .row [class*="col"] {
  display: flex;
}

.features-carousel-slides .feature-card {
  width: 100%;
  border-radius: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Soft background per card: 1st = indigo tint, 2nd = blue tint, 3rd = light purple */
.features-carousel-slides .row-one-line > [class*="col"]:nth-child(1) .feature-card {
  background-color: #E8EAF6;
}

.features-carousel-slides .row-one-line > [class*="col"]:nth-child(2) .feature-card {
  background-color: #E3F2FD;
}

.features-carousel-slides .row-one-line > [class*="col"]:nth-child(3) .feature-card {
  background-color: #F3E5F5;
}

.features-carousel-slides .feature-card:hover {
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-2px);
}

.feature-card-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #212121;
}

.feature-card-desc {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Indicator dots: active = navy, inactive = light purple, uniform size, even spacing */
.features-carousel-slides .carousel-indicators {
  margin-bottom: 0.25rem;
  gap: 10px;
}

.features-carousel-slides .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #C5CAE9;
  border: none;
  margin: 0 5px;
  transition: background-color 0.2s ease;
}

.features-carousel-slides .carousel-indicators li.active {
  background-color: #1A237E;
}

@media (min-width: 768px) {
  .features-carousel-slides .carousel-item .row.row-one-line {
    flex-wrap: nowrap;
  }
}

@media (max-width: 767.98px) {
  .features-carousel-slides {
    padding: 0 2.5rem;
  }

  .features-carousel-slides .carousel-item {
    min-height: 260px;
  }

  .features-carousel-slides .carousel-item .row.row-one-line {
    flex-wrap: wrap;
  }

  .feature-card-icon {
    font-size: 1.85rem;
  }

  .feature-card-title {
    font-size: 1rem;
  }

  .feature-card-desc {
    font-size: 0.8rem;
  }
}