/* Net Worth Calculator Specific Styles */

/* Net Worth Card Conditional Styling */
.summary-card .summary-value.positive {
  color: #10b981;
}

.summary-card .summary-value.negative {
  color: #ef4444;
}

.summary-card .summary-value.neutral {
  color: #6b7280;
}

/* Section Headers */
h4 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #4b5563;
  font-weight: 600;
}

/* Input Mode Selector */
.input-mode-selector {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.mode-label {
  display: block;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.mode-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.mode-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-option:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.mode-option input[type="radio"] {
  margin-right: 0.75rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.mode-option input[type="radio"]:checked + span {
  font-weight: 600;
  color: #2563eb;
}

.mode-option input[type="radio"]:checked {
  accent-color: #2563eb;
}

/* Collapsible Sections */
.collapsible-section {
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.section-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  transition: background 0.2s;
}

.section-header:hover {
  background: #f3f4f6;
}

.section-header[aria-expanded="false"] .section-icon {
  transform: rotate(-90deg);
}

.section-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.875rem;
  margin-right: 0.75rem;
}

.section-title {
  flex: 1;
  text-align: left;
}

.section-total {
  font-weight: 700;
  color: #2563eb;
  font-size: 1.125rem;
}

.section-content {
  padding: 1.5rem;
  background: white;
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.section-content.collapsed {
  max-height: 0;
  padding: 0 1.5rem;
}

.subsection {
  margin-bottom: 1.5rem;
}

.subsection:last-child {
  margin-bottom: 0;
}

.subsection h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #6b7280;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .mode-options {
    grid-template-columns: 1fr;
  }

  .section-header {
    padding: 1rem;
    font-size: 1rem;
  }

  .section-total {
    font-size: 1rem;
  }
}
