/* Budget Tracker Power-Up Styles */

:root {
  --primary: #0079bf;
  --success: #61bd4f;
  --warning: #f2d600;
  --caution: #ff9f1a;
  --danger: #eb5a46;
  --neutral: #f4f5f7;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 12px;
  font-size: 14px;
  color: #172b4d;
}

.popup-container {
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 12px;
  color: #5e6c84;
}

input[type="number"],
input[type="text"],
textarea {
  width: 100%;
  padding: 8px;
  border: 2px solid #dfe1e6;
  border-radius: 3px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: inherit;
}

input[type="number"]:focus,
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

textarea {
  resize: vertical;
  min-height: 60px;
}

.button-group {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

button {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #026aa7;
}

.btn-secondary {
  background-color: var(--neutral);
  color: #172b4d;
}

.btn-secondary:hover {
  background-color: #e4e6ea;
}

.budget-summary {
  background: var(--neutral);
  padding: 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.budget-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.budget-row:last-child {
  margin-bottom: 0;
}

.budget-label {
  font-weight: 600;
  color: #5e6c84;
}

.budget-value {
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #dfe1e6;
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.status-green { background-color: var(--success); }
.status-yellow { background-color: var(--warning); }
.status-orange { background-color: var(--caution); }
.status-red { background-color: var(--danger); }

.card-list {
  max-height: 200px;
  overflow-y: auto;
}

.card-item {
  padding: 8px;
  border-bottom: 1px solid #dfe1e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-item:last-child {
  border-bottom: none;
}

.card-name {
  font-weight: 500;
  flex: 1;
}

.card-budget {
  font-size: 12px;
  color: #5e6c84;
  margin-right: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--neutral);
  padding: 12px;
  border-radius: 3px;
  text-align: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #172b4d;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #5e6c84;
}

.list-breakdown {
  margin-top: 16px;
}

.list-item {
  padding: 8px;
  background: var(--neutral);
  border-radius: 3px;
  margin-bottom: 8px;
}

.list-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.list-stats {
  font-size: 12px;
  color: #5e6c84;
}
