body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
.section {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.input-group {
  margin: 10px 0;
}
input[type="number"] {
  width: 200px;
  padding: 5px;
}
button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.result {
  font-size: 1.2em;
  font-weight: bold;
  margin: 20px 0;
}
.asset-category {
  background: #f8f9fa;
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
}
.asset-category h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.1em;
}
.reset-button {
  background-color: #dc3545;
  border: none;
  margin-right: 10px;
}

.reset-button:hover {
  background-color: #c82333;
}

label[title] {
    cursor: help;
    border-bottom: 1px dotted #666;
}

.error-message {
    display: none;
    color: #ff0000;
    background-color: #ffe6e6;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.error-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.currency-input {
    text-align: right;
}

.floating-networth {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tooltip-icon {
    color: #666;
    cursor: help;
}

.currency-symbol {
    color: #666;
}

.charts-section {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.chart-container {
    flex: 1;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.allocation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.allocation-table th,
.allocation-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.allocation-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.tab-container {
    margin-top: 20px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1em;
    color: #666;
    border-bottom: 2px solid transparent;
}

.tab-button.active {
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.edit-controls {
    margin-bottom: 20px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.edit-button, .save-button {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.edit-button {
    background-color: #2196F3;
    color: white;
    border: none;
}

.save-button {
    background-color: #28a745;
    color: white;
    border: none;
    margin-left: 10px;
}

.save-button:hover {
    background-color: #218838;
}

.hidden {
    display: none;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.goal-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.goal-analysis {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.input-disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.7;
}

.other-investments {
    margin-top: 10px;
}

.other-investment {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.other-name {
    flex: 1;
    margin-right: 10px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    padding: 0;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-other-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    margin-top: 10px;
}

.add-other-btn:hover {
    background: #5a6268;
}