/* ── Mediland Expense App – Custom Ionic Theme ─────────────────────────────── */

:root {
  --ion-color-primary:         #1a3a5c;
  --ion-color-primary-rgb:     26,58,92;
  --ion-color-primary-contrast: #ffffff;
  --ion-color-primary-shade:   #17324f;
  --ion-color-primary-tint:    #314e6c;

  --ion-color-secondary:       #1a7a4a;
  --ion-color-secondary-rgb:   26,122,74;
  --ion-color-secondary-contrast:#ffffff;
  --ion-color-secondary-shade: #176b41;
  --ion-color-secondary-tint:  #31875c;

  --ion-color-danger:          #c0392b;
  --ion-color-danger-rgb:      192,57,43;
  --ion-color-danger-contrast: #ffffff;
  --ion-color-danger-shade:    #a93225;
  --ion-color-danger-tint:     #c64e40;

  --ion-font-family: 'Microsoft JhengHei', '微軟正黑體', 'PingFang TC',
                     'Noto Sans TC', sans-serif;
  --ion-background-color: #eef2f7;
  --ion-toolbar-background: #1a3a5c;
  --ion-toolbar-color: #ffffff;
}

/* Cards */
ion-card { border-radius: 12px; }
ion-card-header { padding-bottom: 4px; }
ion-card-title  { font-size: 1rem; font-weight: 700; }

/* Summary number */
.summary-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ion-color-primary);
}

/* Form rows */
.form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #888;
  padding: 12px 16px 4px;
}

/* Calculated read-only value */
.auto-val-display {
  font-weight: 700;
  color: var(--ion-color-primary);
}

/* Login page */
.login-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(160deg, #1a3a5c 0%, #1a5276 50%, #2471a3 100%);
}
.login-card {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.login-logo {
  text-align: center;
  padding: 24px 24px 8px;
}
.login-logo img { max-height: 56px; }
.login-logo h2 {
  margin: 8px 0 0;
  font-size: 2.2rem;
  font-family: 'DFKai-SB', '標楷體', 'BiauKai', serif;
  font-weight: 400;
  color: #bbb;
  text-align: center;
  letter-spacing: 0.05em;
}

/* History list item */
.history-meta {
  font-size: 0.78rem;
  color: #888;
}
.history-amount {
  font-weight: 700;
  color: var(--ion-color-primary);
}
