:root {
  --bg-color: #f4f6f8;
  --card-bg: #ffffff;
  --primary: #2c3e50;
  --primary-light: #34495e;
  --accent: #e67e22;
  --accent-hover: #d35400;
  --text-main: #2c3e50;
  --text-light: #7f8c8d;
  --border-color: #e0e6ed;
  --success: #27ae60;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 50px;
}

.header {
  background: var(--card-bg);
  padding: 1rem 2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-box {
  background: var(--primary);
  color: white;
  padding: 5px 10px;
  font-weight: 700;
  border-radius: 4px;
  font-size: 0.9rem;
}
.main-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.step-indicator {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-light);
}

.step {
  padding: 5px 10px;
  border-radius: 20px;
  transition: all 0.3s;
}
.step.active {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
}
.line {
  height: 2px;
  flex-grow: 1;
  background: var(--border-color);
  margin: 0 10px;
}

.app-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.main-content {
  width: 100%;
  max-width: 900px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: #fafbfc;
}
.card-header h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
}
.card-body {
  padding: 1.5rem;
}
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  background: #fafbfc;
}

.split-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .split-view {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
}

input[type="text"],
input[type="number"],
select.dropdown-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  background-color: #fff;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

button {
  cursor: pointer;
  font-family: "Inter", sans-serif;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}
.btn-primary:hover {
  background-color: var(--primary-light);
}
.btn-next {
  background-color: var(--accent);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
}
.btn-next:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
.btn-next:not(:disabled):hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.list-container {
  background: #f8f9fa;
  border-radius: var(--radius);
  min-height: 150px;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
}
.list-container.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aab7b8;
  font-style: italic;
}

.list-item {
  background: white;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card.locked {
  pointer-events: none;
  user-select: none;
}
.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(3px);
  z-index: 10;
  display: none;
  justify-content: center;
  align-items: center;
}
.card.locked .blur-overlay {
  display: flex;
}
.lock-message {
  background: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-color);
}

.result-box {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: var(--radius);
}
.asset-total {
  padding: 0.5rem;
  text-align: right;
  color: var(--primary);
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 10px;
}
.share-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid #e0e0e0;
}
.share-value {
  font-weight: 700;
  color: var(--success);
}

/* Scenario Switcher Styles */
.scenario-selector-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.scenario-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.scenario-option input {
    display: none;
}

.scenario-option .icon {
    font-size: 1.2rem;
}

.scenario-option .text {
    font-weight: 600;
    color: var(--text-light);
}

/* Selected State */
.scenario-option.selected {
    border-color: var(--primary);
    background-color: #eaf2f8;
}

.scenario-option.selected .text {
    color: var(--primary);
}

/* Divorce Special Color */
.scenario-option:last-child.selected {
    border-color: #e67e22;
    background-color: #fdf2e9;
}
.scenario-option:last-child.selected .text {
    color: #d35400;
}

.result-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.result-card h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 5px;
}

.final-sum {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

.checkbox-container input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}