/* Vusion Design System - Base Styles */
:root {
  /* Primary (Gold) */
  --gold-60: #FDCD38;
  --gold-80: #EDB83C;
  --gold-10: #FDF6E3;
  
  /* Neutrals */
  --vusion-black: #0D2126;
  --gray-100: #27363A;
  --gray-80: #425052;
  --gray-60: #C8CDCE;
  --gray-40: #E2E5E6;
  --gray-20: #F3F5F5;
  --white: #FFFFFF;
  
  /* Functional */
  --blue-60: #2F90FB;
  
  /* Error */
  --infra-red-60: #FC4672;
  --infra-red-10: #FFE9EE;
}

/* Typography */
body {
  font-family: "TWK Everett", "Arial Nova", "Aptos", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background-color: var(--gray-20);
  color: var(--vusion-black);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* Card hover effect */
.card {
  transition: all 0.3s ease;
  border-radius: 14px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(13, 33, 38, 0.1);
}

/* Surface Components */
.surface-card {
  background-color: var(--white);
  border: 1px solid var(--gray-40);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(13, 33, 38, 0.04);
}

.surface-muted {
  background-color: var(--gray-20);
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-60);
  border-radius: 12px;
  font-size: 0.875rem;
  background-color: var(--white);
  color: var(--vusion-black);
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(47, 144, 251, 0.25);
  border-color: var(--blue-60);
}

.form-input:disabled {
  background-color: var(--gray-20);
  color: var(--gray-80);
  cursor: not-allowed;
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-60);
  border-radius: 12px;
  font-size: 0.875rem;
  background-color: var(--white);
  color: var(--vusion-black);
  transition: all 0.2s;
}

.form-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(47, 144, 251, 0.25);
  border-color: var(--blue-60);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-100);
  margin-bottom: 0.375rem;
}

/* Button styles (enhanced) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  padding: 0.6rem 1rem;
  border-radius: 14px;
  /* more rounded */
  font-size: 0.875rem;
  font-weight: 600;
  /* slightly bolder for modern look */
  line-height: 1;

  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
  /* normalize across variants */
}

/* Icon alignment inside buttons */
.btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hover / Active */
.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  opacity: 0.98;
}

/* Keyboard focus */
.btn:focus {
  outline: 3px solid rgba(47, 144, 251, 0.18);
  outline-offset: 2px;
}

/* PRIMARY */
.btn-primary {
  background-color: var(--gold-60);
  color: var(--vusion-black);
  border-color: var(--gold-60);
}

.btn-primary:hover {
  background-color: var(--gold-80);
  border-color: var(--gold-80);
  box-shadow: 0 8px 20px rgba(13, 33, 38, 0.10);
}

/* SECONDARY */
.btn-secondary {
  background-color: var(--white);
  color: var(--vusion-black);
  border-color: var(--gray-40);
}

.btn-secondary:hover {
  background-color: var(--gray-20);
  box-shadow: 0 6px 16px rgba(13, 33, 38, 0.06);
}

/* OUTLINE */
.btn-outline {
  background-color: transparent;
  color: var(--vusion-black);
  /* more readable than gray-80 */
  border-color: var(--gray-60);
}

.btn-outline:hover {
  background-color: var(--gray-20);
  border-color: var(--gray-80);
  box-shadow: 0 6px 16px rgba(13, 33, 38, 0.05);
}

.btn-ghost {
  background-color: transparent;
  color: var(--gray-80);
  border: none;
}

.btn-ghost:hover {
  background-color: var(--gray-20);
}

/* Link styles */
.link {
  color: var(--blue-60);
  text-decoration: underline;
  transition: color 0.2s;
}

.link:hover {
  color: var(--vusion-black);
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.badge-required {
  background-color: var(--infra-red-10);
  color: var(--infra-red-60);
  border: 1px solid var(--infra-red-60);
}

/* Table styles */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th, .table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-40);
}

.table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-80);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--gray-20);
}

.table tr:nth-child(even) {
  background-color: var(--gray-20);
}

.table tr:hover {
  background-color: var(--gold-10);
}

/* Sidebar styles */
.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: var(--gray-80);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.25rem;
  border-left: 3px solid transparent;
}

.sidebar-item:hover {
  background-color: var(--gray-20);
}

.sidebar-item.active {
  background-color: var(--gold-10);
  color: var(--vusion-black);
  font-weight: 500;
  border-left-color: var(--gold-60);
}

/* Progress circle */
.progress-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Badge styles - neutral by default */
.badge-required {
  background-color: var(--gold-10);
  color: var(--vusion-black);
  border: 1px solid var(--gray-40);
}

/* Invalid badge becomes red */
.is-invalid .badge-required {
  background-color: var(--infra-red-10);
  color: var(--infra-red-60);
  border-color: var(--infra-red-60);
}

/* Validation states for currency+period questions */
.is-touched .form-group-required .form-select:invalid,
.is-invalid .form-select {
  border-color: var(--infra-red-60);
  background-color: var(--infra-red-10);
}

.is-invalid .field-error {
  color: var(--infra-red-60);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
}

/* Modal overlay */
.modal-overlay {
  background-color: rgba(13, 33, 38, 0.5);
}

/* Helper text */
.helper-text {
  color: var(--gray-80);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}