:root {
  /* Hijau Tosca & Maroon Soft - Ciri Khas FIKES UNSIKA */
  --fikes-tosca: #00796b;
  --fikes-tosca-dark: #004d40;
  --fikes-tosca-light: #e0f2f1;
  --fikes-tosca-border: #26a69a;
  
  --fikes-maroon: #881337;
  --fikes-maroon-soft: #9e2a2b;
  --fikes-maroon-dark: #540b17;
  --fikes-maroon-light: #ffe4e6;

  /* Aliases for backwards compatibility */
  --fikes-navy: #004d40;
  --fikes-blue: #00796b;
  --fikes-light-blue: #e0f2f1;
  --fikes-gold: #c29b38;
  --fikes-gold-light: #fdf8e2;
  --fikes-accent: #0d9488;
}

body {
  background-color: #f4f7f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2d3748;
}

/* Navbar: Gradasi Hijau Tosca Elegan dengan Aksen Maroon Soft & Motif Batik */
.navbar-fikes {
  background: linear-gradient(135deg, #004d40 0%, #00695c 60%, #631221 100%);
  border-bottom: 3.5px solid var(--fikes-maroon-soft);
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* Navbar Links: Generous Click Area, High Contrast, & Smooth Hover */
.navbar-fikes .nav-link-fikes,
.navbar-fikes .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.95rem !important;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}
.navbar-fikes .navbar-nav .nav-link:hover,
.navbar-fikes .navbar-nav .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.navbar-fikes .navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Dropdown Menu on Desktop: Open Effortlessly on Hover & Click with Safe Bridge */
@media (min-width: 992px) {
  .navbar-fikes .nav-item.dropdown {
    position: relative;
  }
  .navbar-fikes .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0.25rem;
    animation: navDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .navbar-fikes .nav-item.dropdown:hover > .nav-link {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
  }
  /* Invisible bridge to prevent mouse cursor from losing hover when moving down */
  .navbar-fikes .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
  }
}

@keyframes navDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-fikes .dropdown-menu {
  border-radius: 0.85rem;
  padding: 0.5rem;
  box-shadow: 0 12px 30px rgba(0, 54, 47, 0.18);
  border: 1px solid rgba(0, 77, 64, 0.12) !important;
}
.navbar-fikes .dropdown-item {
  border-radius: 0.55rem;
  padding: 0.6rem 0.85rem;
  transition: all 0.15s ease;
  cursor: pointer;
}
.navbar-fikes .dropdown-item:hover,
.navbar-fikes .dropdown-item:focus {
  background-color: #f1f5f9;
  transform: translateX(3px);
}


/* Koleksi Motif Batik Nusantara Autentik (Bisa Berganti-ganti: Parang, Mega Mendung, Kawung, Truntum) */
.batik-jabar-pattern,
.batik-pattern-parang {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%2326a69a' stroke-width='0.8' stroke-opacity='0.15'%3E%3Cpath d='M-15 15 L15 -15 M-5 25 L25 -5 M5 35 L35 5 M15 45 L45 15 M25 55 L55 25 M35 65 L65 35 M45 75 L75 45' stroke='%2326a69a' stroke-width='1.1' stroke-opacity='0.12'/%3E%3Cellipse cx='15' cy='15' rx='6' ry='3' transform='rotate(-45 15 15)' fill='%23004d40' fill-opacity='0.035' stroke='%23d4af37' stroke-width='0.7' stroke-opacity='0.15'/%3E%3Cellipse cx='45' cy='45' rx='6' ry='3' transform='rotate(-45 45 45)' fill='%23004d40' fill-opacity='0.035' stroke='%23d4af37' stroke-width='0.7' stroke-opacity='0.15'/%3E%3Cellipse cx='45' cy='15' rx='3.5' ry='2' transform='rotate(45 45 15)' fill='%239e2a2b' fill-opacity='0.03' stroke='%239e2a2b' stroke-width='0.6' stroke-opacity='0.12'/%3E%3Cellipse cx='15' cy='45' rx='3.5' ry='2' transform='rotate(45 15 45)' fill='%239e2a2b' fill-opacity='0.03' stroke='%239e2a2b' stroke-width='0.6' stroke-opacity='0.12'/%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23d4af37' fill-opacity='0.25'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='%23d4af37' fill-opacity='0.25'/%3E%3Ccircle cx='60' cy='60' r='1.5' fill='%23d4af37' fill-opacity='0.25'/%3E%3Ccircle cx='0' cy='60' r='1.5' fill='%23d4af37' fill-opacity='0.25'/%3E%3Ccircle cx='60' cy='0' r='1.5' fill='%23d4af37' fill-opacity='0.25'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  transition: background-image 0.6s ease-in-out;
}

.batik-pattern-megamendung {
  background-image: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2326a69a' stroke-width='0.9' stroke-opacity='0.14'%3E%3Cpath d='M10 25 Q20 15 35 25 Q45 18 55 25 Q65 30 55 38 Q45 44 35 38 Q25 45 15 38 Q5 32 10 25 Z' fill='%23004d40' fill-opacity='0.03'/%3E%3Cpath d='M16 26 Q23 19 35 26 Q43 21 50 26 Q57 30 50 35 Q43 39 35 35 Q27 40 20 35 Q13 31 16 26 Z' stroke='%23d4af37' stroke-opacity='0.16' stroke-width='0.8'/%3E%3Ccircle cx='35' cy='31' r='2' fill='%23d4af37' fill-opacity='0.22'/%3E%3Cpath d='M-10 60 Q0 50 15 60 Q25 53 35 60' stroke='%239e2a2b' stroke-opacity='0.12'/%3E%3Cpath d='M45 60 Q55 50 70 60 Q80 53 90 60' stroke='%239e2a2b' stroke-opacity='0.12'/%3E%3C/g%3E%3C/svg%3E") !important;
}

.batik-pattern-kawung {
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2326a69a' stroke-width='0.9' stroke-opacity='0.14'%3E%3Cellipse cx='32' cy='16' rx='14' ry='7' fill='%23004d40' fill-opacity='0.03'/%3E%3Cellipse cx='32' cy='48' rx='14' ry='7' fill='%23004d40' fill-opacity='0.03'/%3E%3Cellipse cx='16' cy='32' rx='7' ry='14' fill='%23004d40' fill-opacity='0.03'/%3E%3Cellipse cx='48' cy='32' rx='7' ry='14' fill='%23004d40' fill-opacity='0.03'/%3E%3Ccircle cx='32' cy='32' r='4' stroke='%23d4af37' stroke-opacity='0.22' stroke-width='1' fill='%23d4af37' fill-opacity='0.15'/%3E%3Ccircle cx='32' cy='32' r='1.5' fill='%239e2a2b' fill-opacity='0.3'/%3E%3Ccircle cx='0' cy='0' r='3' fill='%23d4af37' fill-opacity='0.18'/%3E%3Ccircle cx='64' cy='0' r='3' fill='%23d4af37' fill-opacity='0.18'/%3E%3Ccircle cx='0' cy='64' r='3' fill='%23d4af37' fill-opacity='0.18'/%3E%3Ccircle cx='64' cy='64' r='3' fill='%23d4af37' fill-opacity='0.18'/%3E%3C/g%3E%3C/svg%3E") !important;
}

.batik-pattern-truntum {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='0.8' stroke-opacity='0.18'%3E%3Cpath d='M30 18 L30 42 M18 30 L42 30 M22 22 L38 38 M22 38 L38 22' stroke='%2326a69a' stroke-width='1' stroke-opacity='0.14'/%3E%3Ccircle cx='30' cy='30' r='3.5' fill='%23d4af37' fill-opacity='0.2'/%3E%3Ccircle cx='30' cy='30' r='1.2' fill='%239e2a2b' fill-opacity='0.35'/%3E%3Ccircle cx='30' cy='18' r='1.5' fill='%23d4af37' fill-opacity='0.18'/%3E%3Ccircle cx='30' cy='42' r='1.5' fill='%23d4af37' fill-opacity='0.18'/%3E%3Ccircle cx='18' cy='30' r='1.5' fill='%23d4af37' fill-opacity='0.18'/%3E%3Ccircle cx='42' cy='30' r='1.5' fill='%23d4af37' fill-opacity='0.18'/%3E%3Ccircle cx='0' cy='0' r='2' fill='%23d4af37' fill-opacity='0.18'/%3E%3Ccircle cx='60' cy='0' r='2' fill='%23d4af37' fill-opacity='0.18'/%3E%3Ccircle cx='0' cy='60' r='2' fill='%23d4af37' fill-opacity='0.18'/%3E%3Ccircle cx='60' cy='60' r='2' fill='%23d4af37' fill-opacity='0.18'/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* Portal Main Tab Styles */
.portal-tabs .nav-link {
  color: #004d40;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.75rem;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  transition: all 0.25s ease;
}
.portal-tabs .nav-link:hover {
  background-color: #e0f2f1;
  color: #004d40;
  border-color: #26a69a;
}
.portal-tabs .nav-link.active {
  background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
  color: #ffffff !important;
  border-color: #004d40;
  box-shadow: 0 6px 15px rgba(0, 77, 64, 0.25);
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.15rem;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: #cbd5e1;
  letter-spacing: 0.3px;
}

/* Cards & Widgets */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-header-fikes {
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.stat-card {
  border-radius: 0.75rem;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.stat-card .stat-icon {
  font-size: 2.5rem;
  opacity: 0.2;
  position: absolute;
  right: 1.25rem;
  top: 1rem;
}

/* Stepper Component */
.stepper-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
}

.stepper-wrapper::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 30px;
  right: 30px;
  height: 3px;
  background-color: #e2e8f0;
  z-index: 1;
}

.stepper-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  z-index: 2;
}

.stepper-item .step-counter {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.stepper-item.completed .step-counter {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.stepper-item.active .step-counter {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

.stepper-item.warning .step-counter {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

.stepper-item .step-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  text-align: center;
}

.stepper-item .step-subtext {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
}

/* Badges */
.badge-status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
}

/* Buttons */
.btn-primary-fikes, .btn-tosca {
  background-color: var(--fikes-tosca);
  border-color: var(--fikes-tosca);
  color: #fff;
}
.btn-primary-fikes:hover, .btn-tosca:hover {
  background-color: var(--fikes-tosca-dark);
  border-color: var(--fikes-tosca-dark);
  color: #fff;
}

.btn-maroon {
  background-color: var(--fikes-maroon-soft);
  border-color: var(--fikes-maroon-soft);
  color: #fff;
  font-weight: 600;
}
.btn-maroon:hover {
  background-color: var(--fikes-maroon-dark);
  border-color: var(--fikes-maroon-dark);
  color: #fff;
}

.btn-outline-tosca {
  color: var(--fikes-tosca);
  border-color: var(--fikes-tosca);
}
.btn-outline-tosca:hover {
  background-color: var(--fikes-tosca);
  color: #fff;
}

.btn-outline-maroon {
  color: var(--fikes-maroon-soft);
  border-color: var(--fikes-maroon-soft);
}
.btn-outline-maroon:hover {
  background-color: var(--fikes-maroon-soft);
  color: #fff;
}

.btn-gold {
  background-color: var(--fikes-gold);
  border-color: var(--fikes-gold);
  color: #fff;
  font-weight: 600;
}
.btn-gold:hover {
  background-color: #a8832a;
  border-color: #a8832a;
  color: #fff;
}

/* Tosca & Maroon Badges and Utilities */
.badge-tosca {
  background-color: var(--fikes-tosca-light);
  color: var(--fikes-tosca-dark);
  font-weight: 600;
}
.badge-maroon {
  background-color: var(--fikes-maroon-light);
  color: var(--fikes-maroon-soft);
  font-weight: 600;
}
.text-tosca {
  color: var(--fikes-tosca) !important;
}
.text-maroon {
  color: var(--fikes-maroon-soft) !important;
}
.bg-tosca {
  background-color: var(--fikes-tosca) !important;
}
.bg-maroon {
  background-color: var(--fikes-maroon-soft) !important;
}

/* Fallback fix for bg-opacity to prevent solid white washout */
.bg-white.bg-opacity-10 { background-color: rgba(255, 255, 255, 0.10) !important; }
.bg-white.bg-opacity-15 { background-color: rgba(255, 255, 255, 0.15) !important; }
.bg-white.bg-opacity-20 { background-color: rgba(255, 255, 255, 0.20) !important; }
.bg-white.bg-opacity-25 { background-color: rgba(255, 255, 255, 0.25) !important; }
.bg-dark.bg-opacity-25 { background-color: rgba(0, 0, 0, 0.25) !important; }
.bg-primary.bg-opacity-10 { background-color: rgba(0, 121, 107, 0.10) !important; }
.bg-success.bg-opacity-10 { background-color: rgba(16, 185, 129, 0.10) !important; }
.bg-warning.bg-opacity-10 { background-color: rgba(245, 158, 11, 0.10) !important; }
.bg-danger.bg-opacity-10 { background-color: rgba(239, 68, 68, 0.10) !important; }

/* Tables */
.table th {
  background-color: #f8fafc;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #475569;
}

/* Checklist items */
.checklist-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

/* Timeline */
.timeline-list {
  position: relative;
  padding-left: 28px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: #cbd5e1;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0284c7;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #cbd5e1;
}

/* Step Number Badges */
.step-number-badge {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}
.step-number-badge-tosca {
  background: linear-gradient(135deg, #00796b 0%, #004d40 100%) !important;
  color: #ffffff !important;
  border: 2.5px solid #26a69a;
  box-shadow: 0 4px 12px rgba(0, 121, 107, 0.35);
}
.step-number-badge-maroon {
  background: linear-gradient(135deg, #9e2a2b 0%, #631221 100%) !important;
  color: #ffffff !important;
  border: 2.5px solid #f43f5e;
  box-shadow: 0 4px 12px rgba(158, 42, 43, 0.35);
}

