/* FinTracker — css/base.css
 * Design tokens (:root) and app shell.
 * Part of the styles.css split — see CLAUDE.md "Module map". Loaded via multiple
 * <link> tags in the same cascade order as the original single file. */

/* ============ Design tokens ============ */
:root {
  --navy: #1e2a45;
  --navy-soft: #56607a;
  --green: #0fa968;
  --green-dark: #0c8a56;
  --green-light: #e8f9f0;
  --green-pale: #d9f5e6;
  --mint: #b7ecda;
  --red: #ef4444;
  --red-light: #fdecec;
  --blue: #3b82f6;
  --blue-light: #e8f1ff;
  --amber: #f59e0b;
  --amber-light: #fff4e0;
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --border: #eef1f5;
  --shadow: 0 8px 24px rgba(30, 42, 69, 0.06);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --nav-h: 78px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: linear-gradient(180deg, #f7f9fb 0%, #eef1f6 100%);
}

@media (min-width: 560px) {
  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 20px;
    min-height: 100vh;
  }
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

ul { list-style: none; margin: 0; padding: 0; }

/* ============ App shell ============ */
.app {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + var(--safe-top)) 18px 10px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 20;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  border-radius: 10px;
}
.icon-btn:active { background: rgba(30,42,69,0.06); }
.icon-btn--outline {
  border: 1.5px solid #dfe4ea;
  border-radius: 10px;
}

.logo {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo span { color: var(--green); }

.app-main {
  flex: 1 0 auto;
  padding: 4px 18px 24px;
}

