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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
}

.app {
  padding: 16px;
}

.header {
  text-align: center;
  margin-bottom: 16px;
}

.header h1 {
  font-size: 24px;
  color: #87ceeb;
}

.month-label {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
}

/* Navigation */
.nav {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.nav-btn {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: 8px;
  background: #2a2a4e;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn.active {
  background: #3a3a6e;
  color: #87ceeb;
  font-weight: bold;
}

/* Budget View */
.budget-summary {
  background: #2a2a4e;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.budget-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #3a3a5e;
}

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

.budget-label {
  color: #aaa;
  font-size: 14px;
}

.budget-value {
  font-size: 16px;
  font-weight: bold;
  color: #87ceeb;
}

.budget-value.spent {
  color: #ff6b6b;
}

.budget-value.remaining {
  color: #66bb6a;
}

.budget-value.overspent {
  color: #ff4444;
}

/* Progress Bar */
.progress-bar {
  height: 8px;
  background: #2a2a4e;
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #66bb6a, #ffca28, #ff6b6b);
  border-radius: 4px;
  transition: width 0.3s;
}

/* Forms */
.form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.expense-form {
  flex-direction: column;
}

.form input, .form select {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #3a3a5e;
  border-radius: 8px;
  background: #2a2a4e;
  color: #e0e0e0;
  font-size: 14px;
  min-width: 0;
}

.form input::placeholder {
  color: #666;
}

.btn-primary {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #4a6fa5;
  color: white;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #5a7fb5;
}

.btn-delete {
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #ff6b6b;
  font-size: 16px;
  cursor: pointer;
}

.btn-hide {
  padding: 4px 8px;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.6;
}
.btn-hide:hover { opacity: 1; }

.hidden-accounts-toggle {
  margin-top: 8px;
}

.btn-toggle {
  width: 100%;
  padding: 10px;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.btn-toggle:hover { color: rgba(255,255,255,0.8); }

/* Expense List */
.expense-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expense-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #2a2a4e;
  border-radius: 8px;
}

.expense-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.expense-day {
  font-size: 12px;
  color: #888;
}

.expense-category {
  font-size: 14px;
  font-weight: bold;
  color: #87ceeb;
}

.expense-desc {
  font-size: 12px;
  color: #aaa;
}

.expense-account {
  font-size: 11px;
  color: #666;
}

.expense-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.expense-amount {
  font-size: 16px;
  font-weight: bold;
  color: #ff6b6b;
}

/* Account List */
.account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #2a2a4e;
  border-radius: 8px;
}

.account-name {
  font-size: 16px;
  font-weight: bold;
}

.account-total {
  font-size: 14px;
  color: #e0e0e0;
}

.account-total.positive {
  color: #66bb6a;
}

/* Login Screen */
.login-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 0;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.login-container h1 {
  font-size: 32px;
  color: #87ceeb;
}

.login-subtitle {
  font-size: 16px;
  color: #aaa;
}

.google-btn-wrapper {
  margin-top: 8px;
}

/* Header with user info */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.user-name {
  font-size: 13px;
  color: #aaa;
}

.btn-logout {
  padding: 4px 10px;
  border: 1px solid #555;
  border-radius: 6px;
  background: transparent;
  color: #aaa;
  font-size: 12px;
  cursor: pointer;
}
