:root {
  --mw-primary: #0a2540;
  --mw-primary-dark: #07192d;
  --mw-primary-light: #163e69;
  --mw-accent: #00d084;
  --mw-accent-dark: #059669;
  --mw-accent-light: #34d399;
  --mw-secondary: #3b82f6;
  --mw-dark: #1e293b;
  --mw-light-bg: #f8fafc;
  --mw-card-border: #e2e8f0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #334155;
  background-color: var(--mw-light-bg);
  overflow-x: hidden;
}

/* Topbar */
.top-bar {
  background-color: var(--mw-primary-dark);
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}
.top-bar a:hover {
  color: var(--mw-accent);
}

/* Navbar */
.navbar-midword {
  background-color: #ffffff;
  box-shadow: 0 4px 20px -2px rgba(10, 37, 64, 0.08);
  padding: 14px 0;
  transition: all 0.3s ease;
}
.navbar-midword .navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--mw-primary);
  display: flex;
  align-items: center;
}
.navbar-midword .brand-badge {
  background: linear-gradient(135deg, var(--mw-primary), var(--mw-primary-light));
  color: white;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-right: 12px;
  box-shadow: 0 4px 10px rgba(10, 37, 64, 0.2);
}
.navbar-midword .nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: #475569;
  padding: 8px 16px !important;
  transition: color 0.2s ease;
}
.navbar-midword .nav-link:hover,
.navbar-midword .nav-link.active {
  color: var(--mw-primary);
}

/* Buttons */
.btn-midword-primary {
  background: linear-gradient(135deg, var(--mw-primary), var(--mw-primary-light));
  color: white;
  font-weight: 600;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.15);
}
.btn-midword-primary:hover {
  background: linear-gradient(135deg, var(--mw-primary-dark), var(--mw-primary));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.25);
}

.btn-midword-accent {
  background: linear-gradient(135deg, var(--mw-accent), var(--mw-accent-dark));
  color: #064e3b;
  font-weight: 700;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 208, 132, 0.25);
}
.btn-midword-accent:hover {
  background: linear-gradient(135deg, var(--mw-accent-light), var(--mw-accent));
  color: #064e3b;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 208, 132, 0.35);
}

.btn-midword-outline {
  border: 2px solid var(--mw-primary);
  color: var(--mw-primary);
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 22px;
  transition: all 0.2s;
}
.btn-midword-outline:hover {
  background-color: var(--mw-primary);
  color: white;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #07192d 0%, #0a2540 60%, #163e69 100%);
  color: white;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 208, 132, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero-badge {
  background: rgba(0, 208, 132, 0.15);
  border: 1px solid rgba(0, 208, 132, 0.4);
  color: var(--mw-accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Card Styles */
.feature-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--mw-card-border);
  padding: 32px 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(10, 37, 64, 0.1);
  border-color: #cbd5e1;
}
.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: rgba(10, 37, 64, 0.05);
  color: var(--mw-primary);
  transition: all 0.3s ease;
}
.feature-card:hover .feature-icon-box {
  background: linear-gradient(135deg, var(--mw-primary), var(--mw-primary-light));
  color: white;
}

/* Process Step Cards */
.process-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--mw-card-border);
  padding: 24px 20px;
  position: relative;
  height: 100%;
}
.process-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--mw-accent-dark);
  background: rgba(0, 208, 132, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 12px;
}

/* Tracking Stepper */
.tracking-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 30px 0 20px;
}
.tracking-stepper::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
}
.tracking-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}
.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 3px solid #cbd5e1;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.tracking-step.completed .step-circle {
  background: var(--mw-accent-dark);
  border-color: var(--mw-accent-dark);
  color: white;
}
.tracking-step.active .step-circle {
  background: var(--mw-primary);
  border-color: var(--mw-primary);
  color: white;
  box-shadow: 0 0 0 6px rgba(10, 37, 64, 0.15);
  animation: pulse 2s infinite;
}
.step-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1.2;
}
.tracking-step.completed .step-label,
.tracking-step.active .step-label {
  color: var(--mw-primary);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(10, 37, 64, 0.3); }
  70% { box-shadow: 0 0 0 10px rgba(10, 37, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 37, 64, 0); }
}

/* Timeline */
.timeline-track {
  position: relative;
  padding-left: 32px;
}
.timeline-track::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 11px;
  width: 2px;
  background: #cbd5e1;
}
.timeline-item {
  position: relative;
  margin-bottom: 28px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--mw-primary);
  z-index: 2;
}
.timeline-item.first::before {
  background: var(--mw-accent-dark);
  border-color: var(--mw-accent-dark);
  box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.25);
}

/* Footer */
.footer-midword {
  background-color: var(--mw-primary-dark);
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-midword h5 {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.footer-midword a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-midword a:hover {
  color: var(--mw-accent);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 25px;
  margin-top: 50px;
  font-size: 0.875rem;
}

/* Admin Sidebar & Layout */
.admin-sidebar {
  background-color: var(--mw-primary-dark);
  min-height: 100vh;
  color: #cbd5e1;
  width: 260px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}
.admin-content {
  margin-left: 260px;
  min-height: 100vh;
  background-color: #f1f5f9;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.admin-nav-link:hover,
.admin-nav-link.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.06);
  border-left-color: var(--mw-accent);
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 50px 0 60px;
  }
  .display-4 {
    font-size: 2.15rem !important;
  }
  .display-5 {
    font-size: 1.85rem !important;
  }
  .display-6 {
    font-size: 1.6rem !important;
  }
  .admin-sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
  }
  .admin-content {
    margin-left: 0;
    padding: 16px !important;
  }
}

/* Mobile Stepper Layout (< 768px) */
@media (max-width: 767.98px) {
  .tracking-stepper {
    flex-direction: column;
    gap: 0;
    margin: 20px 0;
    position: relative;
    padding-left: 20px;
  }
  .tracking-stepper::before {
    top: 20px;
    bottom: 20px;
    left: 43px;
    right: auto;
    width: 3px;
    height: calc(100% - 40px);
  }
  .tracking-step {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 16px;
    padding: 10px 0;
    position: relative;
  }
  .step-circle {
    margin: 0;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    flex-shrink: 0;
    z-index: 3;
    background: white;
  }
  .step-label {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  
  /* Feature cards on mobile */
  .feature-card {
    padding: 24px 20px;
  }
  .feature-icon-box {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
    margin-bottom: 15px;
  }
  
  /* Tables on mobile */
  .table-responsive {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    -webkit-overflow-scrolling: touch;
  }

  /* Prevent iOS zoom on inputs */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Floating Quick Action Button on Mobile */
.mobile-floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-floating-whatsapp {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.btn-floating-whatsapp:hover {
  color: white;
  transform: scale(1.08);
}
.btn-floating-call {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mw-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(10, 37, 64, 0.4);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.btn-floating-call:hover {
  color: white;
  transform: scale(1.08);
}

/* Touch-friendly forms & buttons */
.form-control, .form-select {
  border-color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 8px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--mw-secondary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.btn {
  touch-action: manipulation;
}

