/* Packmate — Notion Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --notion-blue: #0075de;
  --notion-active-blue: #005bab;
  --notion-bg: #ffffff;
  --notion-bg-warm: #f6f5f4;
  --notion-text: rgba(0,0,0,0.95);
  --notion-text-secondary: #615d59;
  --notion-text-muted: #a39e98;
  --notion-border: 1px solid rgba(0,0,0,0.1);
  --notion-shadow-card: rgba(0,0,0,0.04) 0px 4px 18px, rgba(0,0,0,0.027) 0px 2.025px 7.85px, rgba(0,0,0,0.02) 0px 0.8px 2.93px, rgba(0,0,0,0.01) 0px 0.175px 1.04px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--notion-text);
  background: var(--notion-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border-radius: 4px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--notion-blue); color: #fff; }
.btn-primary:hover { background: var(--notion-active-blue); }
.btn-secondary { background: rgba(0,0,0,0.05); color: var(--notion-text); }
.btn-secondary:hover { background: rgba(0,0,0,0.08); }
.btn-ghost { background: transparent; color: var(--notion-text); }
.btn-ghost:hover { text-decoration: underline; }
.btn-danger { background: #e03e2d; color: #fff; }
.btn-danger:hover { background: #c03424; }
.btn-sm { padding: 4px 10px; font-size: 13px; }

/* Cards */
.card {
  background: var(--notion-bg);
  border: var(--notion-border);
  border-radius: 12px;
  box-shadow: var(--notion-shadow-card);
  padding: 24px;
}
.card:hover { box-shadow: rgba(0,0,0,0.06) 0px 6px 24px, rgba(0,0,0,0.04) 0px 3px 10px; }

/* Inputs */
.input {
  font-family: 'Inter', sans-serif; font-size: 16px;
  padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px;
  background: var(--notion-bg); color: var(--notion-text);
  width: 100%; outline: none;
}
.input:focus { border-color: var(--notion-blue); box-shadow: 0 0 0 2px rgba(0,117,222,0.2); }
.input::placeholder { color: var(--notion-text-muted); }

/* Badge */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 9999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.125px;
  background: #f2f9ff; color: #097fe8;
}
.badge-green { background: #edf7ed; color: #1aae39; }
.badge-yellow { background: #fef7e0; color: #dd5b00; }

/* Layout */
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* Checkbox row */
.item-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 4px;
  cursor: pointer; transition: background 0.1s;
}
.item-row:hover { background: rgba(0,0,0,0.03); }
.item-row.packed { opacity: 0.6; }
.item-row.packed .item-name { text-decoration: line-through; }
.item-checkbox {
  width: 20px; height: 20px; border-radius: 4px;
  border: 2px solid rgba(0,0,0,0.2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.1s;
}
.item-row.packed .item-checkbox { background: var(--notion-blue); border-color: var(--notion-blue); }
.item-row.packed .item-checkbox::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 700; }
.item-name { flex: 1; font-size: 16px; }
.item-meta { font-size: 13px; color: var(--notion-text-muted); white-space: nowrap; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal {
  background: var(--notion-bg); border-radius: 12px; padding: 32px;
  max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto;
  box-shadow: rgba(0,0,0,0.05) 0px 23px 52px;
}

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: var(--notion-border); margin-bottom: 24px; }
.tab {
  padding: 8px 20px; font-size: 15px; font-weight: 500;
  color: var(--notion-text-secondary); cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.15s;
}
.tab.active { color: var(--notion-text); border-bottom-color: var(--notion-text); }
.tab:hover { color: var(--notion-text); }

/* Form */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 14px; color: var(--notion-text-secondary); margin-bottom: 4px; font-weight: 500; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: var(--notion-border); }
.nav-title { font-size: 20px; font-weight: 700; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
