:root {
  --primary-color: #16a34a;
  --secondary-color: #15803d;
  --light-green: #dcfce7;
}

/* Layout Dasar */
html, body {
  background: linear-gradient(135deg, var(--light-green) 0%, #ffffff 100%);
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* biar konten dorong footer ke bawah */
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.95rem;
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.8rem;
  color: white !important;
}

.navbar-text {
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.9rem;
}

/* Kontainer */
.form-container, .hasil-container {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border: 1px solid #e1f5e1;
  height: 100%;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  position: relative;
}
.step-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e9ecef;
  z-index: 1;
}
.step {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}
.step.active {
  background: var(--primary-color);
  color: white;
}
.step.completed {
  background: var(--secondary-color);
  color: white;
}
.step-label {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  color: #6c757d;
  text-align: center;
  width: 80px;
}
.step.active .step-label {
  color: var(--primary-color);
  font-weight: bold;
}

/* Tombol */
.btn-custom {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(22, 163, 74, 0.3);
  color: #fff;
}
.btn-outline-custom {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Form dan hasil */
.hidden { display: none !important; }

.biaya-card {
  background: var(--light-green);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  border-left: 4px solid var(--primary-color);
  font-size: 0.9rem;
}

.total-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 10px;
  padding: 20px;
  margin-top: 15px;
}

.form-section {
  border: 1px solid #e1f5e1;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  background: #f8fff8;
}
.form-section h6 {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--light-green);
  padding-bottom: 8px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Hasil dan Komponen Tambahan */
.hasil-item {
  border-bottom: 1px solid #e9ecef;
  padding: 10px 0;
}
.hasil-item:last-child {
  border-bottom: none;
}

.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  font-size: 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(22, 163, 74, 0.25);
}

.alert-info {
  background-color: #e8f5e8;
  border-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.hasil-title {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--light-green);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.empty-state {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pihak-tambahan {
  border: 2px dashed var(--primary-color);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  background: #f8fff8;
}

.btn-hapus-pihak {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 0.8rem;
}

.detail-perhitungan {
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 5px;
  border-left: 3px solid var(--primary-color);
  font-size: 0.8rem;
  margin-bottom: 8px;
}
