/* Universal Base Styles */
* { 
  font-family: 'Noto Sans Lao', sans-serif; 
  box-sizing: border-box; 
}

/* Custom Scrollbar for Dark Theme */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Neon Glow Utility Classes */
.neon-glow-green { box-shadow: 0 0 15px rgba(16, 185, 129, 0.25); }
.neon-glow-pink  { box-shadow: 0 0 15px rgba(244, 63, 94, 0.25); }
.neon-glow-cyan  { box-shadow: 0 0 15px rgba(6, 182, 212, 0.25); }
.neon-glow-amber { box-shadow: 0 0 15px rgba(245, 158, 11, 0.25); }

/* Navigation Tab Active State */
.tab-btn.active {
  background-color: rgba(15, 23, 42, 0.9);
  border-color: #10b981;
  color: #10b981;
  font-weight: 700;
}

/* Debt Component Styles */
.debt-panel {
  background: linear-gradient(145deg, rgba(17, 25, 39, 0.97), rgba(11, 15, 25, 0.98));
  border: 1px solid rgba(71, 85, 105, 0.36);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.debt-total-badge {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.13), rgba(225, 29, 72, 0.05));
  border: 1px solid rgba(244, 63, 94, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 0 24px rgba(225, 29, 72, 0.08);
}

.debt-card {
  background: linear-gradient(150deg, #111927 0%, #0b0f19 72%);
  border: 1px solid rgba(71, 85, 105, 0.4);
  box-shadow: 0 16px 35px rgba(2, 6, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  animation: debt-card-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--debt-delay, 0ms);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.debt-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 63, 94, 0.38);
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.36), 0 0 26px rgba(225, 29, 72, 0.08);
}

.debt-card-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #f43f5e, rgba(225, 29, 72, 0.12));
  opacity: 0.85;
}

.debt-metric,
.debt-empty-state {
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(51, 65, 85, 0.55);
}

.debt-progress-track {
  background: #1e293b;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.debt-progress-fill {
  background: linear-gradient(90deg, #e11d48, #f43f5e);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.38);
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.debt-primary-button {
  color: #fff1f2;
  font-weight: 800;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  border: 1px solid rgba(251, 113, 133, 0.42);
  box-shadow: 0 8px 22px rgba(225, 29, 72, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.debt-primary-button:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.debt-primary-button:active {
  transform: translateY(1px) scale(0.99);
}

.debt-secondary-button,
.debt-delete-button {
  border: 1px solid rgba(71, 85, 105, 0.52);
  background: rgba(15, 23, 42, 0.72);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.debt-secondary-button { color: #cbd5e1; }
.debt-delete-button { color: #94a3b8; }

.debt-secondary-button:hover {
  color: #fff1f2;
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.08);
}

.debt-delete-button:hover {
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(225, 29, 72, 0.08);
}

.debt-pay-input {
  color: #fb7185;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(71, 85, 105, 0.62);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.debt-pay-input::placeholder { color: #64748b; }

.debt-pay-input:focus {
  background: rgba(11, 15, 25, 0.96);
  border-color: rgba(244, 63, 94, 0.72);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

/* Animations */
@keyframes debt-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  .debt-card,
  .debt-progress-fill,
  .debt-primary-button {
    animation: none;
    transition: none;
  }
}