* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  background: linear-gradient(135deg, #264DDE, #1E40AF);
  padding-top: 30px;
  padding-bottom: 30px;
}

/* ===== Logo ===== */
.logo-container {
  text-align: center;
  margin-bottom: 25px;
}

.logo {
  width: 360px;
  max-width: 90%;
}

/* ===== Form Container ===== */
.form-container {
  background: white;
  backdrop-filter: blur(8px);
  padding: 45px 40px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 666px;
  max-width: 90%;
  transition: all 0.3s ease;
  position: relative;
}

h2 {
  color: #2563eb;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

h4 {
  color: #111827;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 20px;
  margin-top: 20px;
}

/* ===== Input Field ===== */
.input-group {
  margin-bottom: 0px;
  position: relative;
  margin-bottom: 10px;
}

input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #7796B6;
  border-radius: 30px;
  background-color: #f9fafb;
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

input:focus {
  border-color: #3b82f6;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

::placeholder {
  color: #7796B6;
  opacity: 1;
  font-weight: 500;
}

/* Ikon username */
#username {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%231E3A8A' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

/* Ikon password */
#password {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%231E3A8A' viewBox='0 0 24 24'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm3 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z'/%3E%3C/svg%3E");
}

/* ===== Checkbox ===== */
.checkbox-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: -5px 0 25px 5px;
  text-align: left;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 14px;
  color: #111827;
  cursor: pointer;
  user-select: none;
}

/* ===== Button ===== */
button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  font-size: 14px;
  border: none;
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(37, 99, 235, 0.3);
}

/* ===== Menu Buttons Container ===== */
.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 25px 0;
}

/* ===== Menu Button Base Style ===== */
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 25px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.menu-btn svg {
  flex-shrink: 0;
}

.menu-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.menu-btn:active {
  transform: translateY(-1px);
}

/* ===== Button Color Variants ===== */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
}

.btn-secondary:hover {
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.btn-success:hover {
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.btn-warning:hover {
  box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
}

.btn-info {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
}

.btn-info:hover {
  box-shadow: 0 6px 15px rgba(6, 182, 212, 0.4);
}

/* ===== Divider Style ===== */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
  margin: 20px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 2px;
}

/* ===== Footer ===== */
.footer-text {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-text a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-text a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Animasi shake untuk form */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Animasi error message: fade + slide + glow */
@keyframes fadeSlideGlow {
  0% {
    opacity: 0;
    transform: translateY(10px);
    text-shadow: 0 0 0 rgba(220, 38, 38, 0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 0 6px rgba(248, 113, 113, 0.4);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 0 rgba(248, 113, 113, 0);
  }
}

.form-container.shake {
  animation: shake 0.4s ease;
}

/* Pesan error muncul halus */
#error-message {
  color: #dc2626;
  font-size: 14px;
  margin-bottom: 15px;
  min-height: 18px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#error-message.show {
  animation: fadeSlideGlow 0.6s ease;
  opacity: 1;
  transform: translateY(0);
}

/* Efek border merah saat error */
.input-error {
  border: 1.5px solid #dc2626 !important;
}

/* Styling untuk ikon toggle password */
.toggle-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 20px;
  height: 20px;
  color: #1E3A8A;
  transition: color 0.3s ease;
}

.toggle-icon:hover {
  color: #3b82f6;
}

/* ===== Tombol Logout (Merah) ===== */
button.logout-btn {
  background: linear-gradient(90deg, #dc2626, #b91c1c) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px;
  padding: 25px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 0;
}

button.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(220, 38, 38, 0.3);
}

/* ===== Profile Container ===== */
.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.profile-pic-placeholder {
  width: 200px;
  height: 200px;
  border: 2px solid #ddd;
  border-radius: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 60px;
}

.user-info {
  text-align: center;
}

.user-info p {
  margin: 5px 0;
  font-size: 14px;
  color: #1E3A8A;
}

/* ===== User Info Simple (untuk halaman kalkulator) ===== */
.user-info-simple {
  text-align: center;
  margin-bottom: 40px;
  margin-top: 5px;
}

.user-info-simple p {
  margin: 5px 0;
  font-size: 16px;
  color: #111827;
}

/* ===== Wrapper untuk tombol simulasi sejajar ===== */
.simulasi-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.simulasi-row .menu-btn {
  flex: 1;
  padding: 14px 10px;
  font-size: 14px;
}

/* ===== Level Akses Styles dengan Bubble ===== */
.level-label {
  color: #1E3A8A;
  text-transform: uppercase;
  font-weight: bold;
}

.petugas {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #ffffff;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
  letter-spacing: 0.5px;
}

.supervisor {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
  letter-spacing: 0.5px;
}

.administrator {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #ff0077, #d6006a);
  color: #ffffff;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(255, 0, 119, 0.3);
  letter-spacing: 0.5px;
}

/* ===== Glitch Effect untuk nama administrator ===== */
.admin-name-glitch {
  font-size: 22px;
  position: relative;
  display: inline-block;
  color: white;
  font-weight: 900;
  animation: glitch-skew-name 8s infinite; /* ↓ durasi lebih pendek → lebih sering goyang */
}

.admin-name-glitch::before,
.admin-name-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: white;
}

.admin-name-glitch::before {
  left: 2px;
  text-shadow: -2px 0 #00fff9;
  animation: glitch-anim-name 6s infinite; /* ↓ lebih sering */
}

.admin-name-glitch::after {
  left: -2px;
  text-shadow: -2px 0 #ff00ff, 2px 2px #00fff9;
  animation: glitch-anim2-name 7s infinite; /* ↓ lebih sering */
}

/* ===== Glitch Effect untuk level akses administrator ===== */
.admin-level-glitch {
  position: relative;
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #ff0077, #d6006a);
  color: #ffffff;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(255, 0, 119, 0.3);
  letter-spacing: 0.5px;
  animation: glitch-skew-level 25s infinite;
}

.admin-level-glitch::before,
.admin-level-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  padding: 6px 16px;
  background: linear-gradient(135deg, #ff0077, #d6006a);
  border-radius: 25px;
}

.admin-level-glitch::before {
  left: 2px;
  text-shadow: -2px 0 #00fff9;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-level 12s infinite;
}

.admin-level-glitch::after {
  left: -2px;
  text-shadow: -2px 0 #ff00ff, 2px 2px #00fff9;
  animation: glitch-anim2-level 25s infinite;
}

/* ===== ANIMASI GLITCH - LEVEL ===== */
@keyframes glitch-anim-level {
  0%, 4% {
    clip: rect(45px, 9999px, 88px, 0);
    transform: skew(0.42deg);
  }
  5%, 42% {
    clip: rect(0, 9999px, 0, 0);
    transform: skew(0deg);
  }
  45% {
    clip: rect(72px, 9999px, 22px, 0);
    transform: skew(0.58deg);
  }
  48% {
    clip: rect(12px, 9999px, 95px, 0);
    transform: skew(0.81deg);
  }
  51%, 75% {
    clip: rect(0, 9999px, 0, 0);
    transform: skew(0deg);
  }
  78% {
    clip: rect(58px, 9999px, 35px, 0);
    transform: skew(0.33deg);
  }
  81% {
    clip: rect(89px, 9999px, 11px, 0);
    transform: skew(0.67deg);
  }
  84%, 100% {
    clip: rect(0, 9999px, 0, 0);
    transform: skew(0deg);
  }
}

@keyframes glitch-anim2-level {
  0%, 18% {
    clip: rect(0, 9999px, 0, 0);
    transform: skew(0deg);
  }
  21% {
    clip: rect(28px, 9999px, 76px, 0);
    transform: skew(0.51deg);
  }
  24% {
    clip: rect(93px, 9999px, 19px, 0);
    transform: skew(0.74deg);
  }
  27%, 62% {
    clip: rect(0, 9999px, 0, 0);
    transform: skew(0deg);
  }
  66% {
    clip: rect(41px, 9999px, 67px, 0);
    transform: skew(0.29deg);
  }
  70% {
    clip: rect(85px, 9999px, 44px, 0);
    transform: skew(0.86deg);
  }
  73%, 100% {
    clip: rect(0, 9999px, 0, 0);
    transform: skew(0deg);
  }
}

@keyframes glitch-skew-level {
  0%, 3% {
    transform: skew(0deg);
  }
  4% {
    transform: skew(-1.3deg);
  }
  6% {
    transform: skew(0.9deg);
  }
  8%, 48% {
    transform: skew(0deg);
  }
  51% {
    transform: skew(1.1deg);
  }
  54% {
    transform: skew(-0.8deg);
  }
  57%, 100% {
    transform: skew(0deg);
  }
}

/* ===== Glitch Effect untuk nama administrator (versi AGAK SERING + LAMA) ===== */
.admin-name-glitch {
  font-size: 22px;
  position: relative;
  display: inline-block;
  color: white;
  font-weight: 900;
  animation: glitch-skew-name 10s infinite; /* Lebih sering dari 12s */
}

.admin-name-glitch::before,
.admin-name-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: white;
}

.admin-name-glitch::before {
  left: 2px;
  text-shadow: -2px 0 #00fff9;
  animation: glitch-anim-name 12s infinite; /* Sesuai pola level */
}

.admin-name-glitch::after {
  left: -2px;
  text-shadow: -2px 0 #ff00ff, 2px 2px #00fff9;
  animation: glitch-anim2-name 25s infinite; /* Sesuai pola level */
}

/* ===== ANIMASI GLITCH - NAMA (disalin & disesuaikan dari level) ===== */

@keyframes glitch-anim-name {
  /* Glitch aktif di awal → jelas terlihat */
  0%, 4% {
    clip: rect(45px, 9999px, 88px, 0);
    transform: skew(0.42deg);
  }
  /* Jeda normal */
  5%, 42% {
    clip: rect(0, 9999px, 0, 0);
    transform: skew(0deg);
  }
  /* Glitch kedua */
  45% {
    clip: rect(72px, 9999px, 22px, 0);
    transform: skew(0.58deg);
  }
  48% {
    clip: rect(12px, 9999px, 95px, 0);
    transform: skew(0.81deg);
  }
  /* Jeda panjang */
  51%, 75% {
    clip: rect(0, 9999px, 0, 0);
    transform: skew(0deg);
  }
  /* Glitch ketiga */
  78% {
    clip: rect(58px, 9999px, 35px, 0);
    transform: skew(0.33deg);
  }
  81% {
    clip: rect(89px, 9999px, 11px, 0);
    transform: skew(0.67deg);
  }
  84%, 100% {
    clip: rect(0, 9999px, 0, 0);
    transform: skew(0deg);
  }
}

@keyframes glitch-anim2-name {
  /* Normal dulu */
  0%, 18% {
    clip: rect(0, 9999px, 0, 0);
    transform: skew(0deg);
  }
  /* Glitch pertama */
  21% {
    clip: rect(28px, 9999px, 76px, 0);
    transform: skew(0.51deg);
  }
  24% {
    clip: rect(93px, 9999px, 19px, 0);
    transform: skew(0.74deg);
  }
  /* Jeda panjang */
  27%, 62% {
    clip: rect(0, 9999px, 0, 0);
    transform: skew(0deg);
  }
  /* Glitch kedua */
  66% {
    clip: rect(41px, 9999px, 67px, 0);
    transform: skew(0.29deg);
  }
  70% {
    clip: rect(85px, 9999px, 44px, 0);
    transform: skew(0.86deg);
  }
  73%, 100% {
    clip: rect(0, 9999px, 0, 0);
    transform: skew(0deg);
  }
}

@keyframes glitch-skew-name {
  0%, 3% {
    transform: skew(0deg);
  }
  4% {
    transform: skew(-1.3deg);
  }
  6% {
    transform: skew(0.9deg);
  }
  8%, 48% {
    transform: skew(0deg);
  }
  51% {
    transform: skew(1.1deg);
  }
  54% {
    transform: skew(-0.8deg);
  }
  57%, 100% {
    transform: skew(0deg);
  }
}
   
/* ===== Modal Logout Overlay ===== */
.modal-logout-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-logout-overlay.show {
  display: flex;
  opacity: 1;
}

/* ===== Modal Logout Content ===== */
.modal-logout-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 40px 35px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal-logout-overlay.show .modal-logout-content {
  transform: scale(1);
}

/* ===== Modal Title ===== */
.modal-logout-title {
  color: #1E3A8A;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 15px 0;
}

/* ===== Modal Message ===== */
.modal-logout-message {
  color: #4B5563;
  font-size: 16px;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

/* ===== Modal Buttons Container ===== */
.modal-logout-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* ===== Modal Button Base ===== */
.modal-logout-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.modal-logout-btn:active {
  transform: translateY(0);
}

/* ===== Button Yes (Blue) ===== */
.modal-logout-btn-yes {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}

.modal-logout-btn-yes:hover {
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

/* ===== Button No (Red) ===== */
.modal-logout-btn-no {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
}

.modal-logout-btn-no:hover {
  box-shadow: 0 6px 15px rgba(220, 38, 38, 0.4);
}

/* ===== Icon Styling ===== */
.modal-logout-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== KALKULATOR DEPOSITO STYLES ===== */
.calculator-section {
  margin-top: 0px;
  margin-bottom: 0px;
}

.calculator-title {
  color: #1E3A8A;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.calc-label {
  display: block;
  margin-bottom: 8px;
  margin-top: 18px;
  font-weight: 600;
  text-align: left;
  width: 100%;
  color: #1E3A8A;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

.calc-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #7796B6;
  border-radius: 30px;
  background-color: #f9fafb;
  outline: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
  box-sizing: border-box;
  color: #111827;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 10px;
}

.calc-input:focus {
  border-color: #3b82f6;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  color: #000000;
}

.calc-input::placeholder {
  color: #7796B6;
  font-weight: 500;
}

.calc-button {
  background: linear-gradient(90deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 14px;
  margin-top: 0px;
  width: 100%;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.calc-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3);
}

.result-box {
  margin-top: 25px;
  background: #ebf8ff;
  padding: 20px 18px;
  border-radius: 15px;
  color: #2a4365;
  width: 100%;
  box-sizing: border-box;
  display: none;
  font-family: 'Poppins', sans-serif;
}

.result-box.show {
  display: block;
}

.result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  align-items: center;
  gap: 10px;
}

.result-row:last-child {
  margin-bottom: 0;
}

.result-label {
  font-weight: 600;
  color: #2a4365;
  font-size: 14px;
  text-align: left;
  font-family: 'Poppins', sans-serif;
}

.result-value {
  font-weight: 700;
  color: #2a4365;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
}

.result-note {
  font-size: 12px;
  color: #64748b;
  margin-top: -5px;
  margin-bottom: 15px;
  font-style: italic;
  font-family: 'Poppins', sans-serif;
}

.pajak-value {
  color: #dc2626;
  font-weight: 700;
}

.total-value {
  font-size: 16px;
  color: #059669;
  font-weight: 700;
}

.lps-button {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  padding: 14px;
  margin-top: 15px;
  margin-bottom: 0px;
  width: 100%;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.lps-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(245, 158, 11, 0.3);
}

.back-btn {
  margin-top: 0px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  padding: 14px;
  width: 100%;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(37, 99, 235, 0.3);
}

/* Jika perlu, sesuaikan container .camera-section agar tidak membatasi lebar */
.camera-section {
  width: 100%; /* Pastikan container lebar penuh */
  padding: 0; /* Hapus padding jika ada yang membatasi */
  margin: 0 auto; /* Pusatkan jika diperlukan */
}

.photo-preview-container {
  width: 100%;
  margin: 15px 0;
}

.photo-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-info {
  background: white;
  border: 0px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  margin: 0px;
  width: 100%;
  box-sizing: border-box;
}

.location-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.location-item:last-child {
  border-bottom: none;
}

.location-label {
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.location-value {
  color: #333;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  max-width: 60%;
  word-break: break-all;
}

.hidden {
  display: none;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.modal-content {
  background: #000;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.close-top-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  transition: all 0.3s ease;
  z-index: 10;
}

.close-top-btn:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

.close-top-btn:active {
  transform: scale(0.95) rotate(90deg);
}

.close-top-btn svg {
  width: 20px;
  height: 20px;
  color: white;
  stroke-width: 3;
}

/* Responsive untuk mobile */

.modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
}

.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%; /* Tinggi penuh untuk full screen */
  max-width: 100vw;
  max-height: 100vh;
}

.video-square-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
}
.video-square-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

canvas {
  display: none;
}

.capture-btn-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
}

.capture-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid white;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.capture-btn:active {
  transform: scale(0.9);
}

.alert {
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 14px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #7796B6;
  border-radius: 15px;
  background-color: #f9fafb;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  resize: vertical;
  margin-bottom: 10px;
}

textarea:focus {
  border-color: #3b82f6;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  color: #000000;
}

textarea::placeholder {
  color: #7796B6;
  font-weight: 500;
}

select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #7796B6;
  border-radius: 30px;
  background-color: #f9fafb;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  margin-bottom: 0px;
}

select:focus {
  border-color: #3b82f6;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
}

.btn-purple:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* Fix Alignment untuk Tombol Kamera dan Simpan */
#openCameraBtn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  line-height: 1 !important;
  padding: 14px 20px !important;
}

#openCameraBtn svg {
  flex-shrink: 0;
  display: block;
  vertical-align: middle;
}

#openCameraBtn span {
  display: inline-block;
  vertical-align: middle;
  line-height: 20px;
}

#submitBtn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  line-height: 1 !important;
}

#submitBtn svg {
  flex-shrink: 0;
  display: block;
  vertical-align: middle;
}

#submitBtn span {
  display: inline-block;
  vertical-align: middle;
  line-height: 20px;
}

#openCameraBtn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* ===== SIMULASI KREDIT STYLES ===== */
.credit-calculator {
  margin-top: 20px;
}

.result-summary {
  background: linear-gradient(135deg, #ebf8ff, #dbeafe);
  padding: 25px;
  border-radius: 15px;
  margin-top: 25px;
  border: 2px solid #3b82f6;
}

.result-summary-title {
  color: #1E3A8A;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.result-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.result-summary-item:last-child {
  border-bottom: none;
  padding-top: 15px;
  margin-top: 5px;
  border-top: 2px solid #3b82f6;
}

.result-summary-label {
  font-weight: 600;
  color: #2a4365;
  font-size: 14px;
}

.result-summary-value {
  font-weight: 700;
  color: #1E3A8A;
  font-size: 16px;
}

.result-summary-value.highlight {
  color: #059669;
  font-size: 14px;
}

.result-table-wrapper {
  margin-top: 25px;
  overflow-x: auto;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 12px;
}

.result-table thead {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.result-table th {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-table td {
  padding: 10px 8px;
  text-align: right;
  border: 1px solid #e5e7eb;
}

.result-table td:first-child {
  text-align: center;
  font-weight: 600;
  color: #1E3A8A;
}

.result-table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.result-table tbody tr:hover {
  background-color: #eff6ff;
}

.error-alert {
  background: #fee2e2;
  border: 1px solid #dc2626;
  color: #dc2626;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.info-note {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 12px;
  border-radius: 10px;
  margin-top: 15px;
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 1.5;
}

.info-note strong {
  display: block;
  margin-bottom: 5px;
  color: #78350f;
}

/* ===== Responsive Design ===== */

/* ===== MODERN PROFILE CARD ===== */
.profile-card {
  position: relative;
  width: 100%;
  margin: 25px 0;
  padding: 0;
  overflow: hidden;
}

/* Background gradient layer */
.profile-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  opacity: 0.95;
  z-index: 1;
}

/* Dynamic gradient based on level */
.profile-card-bg.petugas-gradient {
  background: linear-gradient(135deg, #0095ff 0%, #00cffe 100%);
}

.profile-card-bg.supervisor-gradient {
  background: linear-gradient(135deg, #fff93c 0%, #f59e0b 100%);
}

.profile-card-bg.admin-gradient {
  background: linear-gradient(150deg, #2de2ff 0%, #c22fff 60%, #FF00A8 100%);
}

/* Animated glow effect */
.profile-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotateGlow 10s linear infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Floating particles */
.profile-card-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.profile-card-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.profile-card-particles span:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 6s;
}

.profile-card-particles span:nth-child(2) {
  left: 30%;
  animation-delay: 1.5s;
  animation-duration: 7s;
}

.profile-card-particles span:nth-child(3) {
  left: 50%;
  animation-delay: 3s;
  animation-duration: 8s;
}

.profile-card-particles span:nth-child(4) {
  left: 70%;
  animation-delay: 2s;
  animation-duration: 6.5s;
}

.profile-card-particles span:nth-child(5) {
  left: 90%;
  animation-delay: 4s;
  animation-duration: 7.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(100%) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100%) scale(1);
    opacity: 0;
  }
}

/* Main content container */
.profile-card-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  flex-direction: column;
}

/* Avatar Section */
.profile-avatar-section {
  position: relative;
  flex-shrink: 0;
  margin-bottom:15px;
}

.profile-avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
}

/* Animated ring around avatar */
.profile-avatar-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 3px solid transparent;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff0000, rgba(255, 255, 255, 0.3), #0000FF) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateRing 3s linear infinite;
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.profile-avatar {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.8);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeIn 0.5s ease-in;
}

.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
}

.profile-avatar-placeholder svg {
  width: 55px;
  height: 55px;
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Status indicator (online dot) */
.profile-status-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: #10b981;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
  animation: pulse 2s ease-in-out infinite;
  z-index: 10;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

/* Info Section */
.profile-info-section {
  flex: 1;
  text-align: center;
  color: white;
}

.profile-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.3px;
  animation: slideInRight 0.6s ease-out;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: slideInRight 0.6s ease-out;
  animation-fill-mode: both;
  align-items: normal;
}

.profile-detail-item:nth-child(1) {
  animation-delay: 0.1s;
}

.profile-detail-item:nth-child(2) {
  animation-delay: 0.2s;
}

.profile-detail-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-detail-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.profile-detail-item:hover .profile-detail-icon {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1) rotate(5deg);
}

.profile-detail-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
  stroke-width: 2.5;
}

.profile-detail-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 3px;
  align-items: center;
}

.profile-detail-label {
  font-size: 11px;
  font-weight: 500;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.profile-detail-value {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
}

/* Badge Styles */
.profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  animation: badgePop 0.5s ease-out 0.4s both;
  line-height: 1.5;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

@keyframes badgePop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.profile-badge.administrator {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.profile-badge.supervisor {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.profile-badge.petugas {
  background: linear-gradient(135deg, #0095ff 0%, #00cffe 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Design */
