:root {
  --bg:          #fff5f7;
  --surface:     #ffffff;
  --border:      #f48fb1;
  --text:        #4a3b3e;
  --muted:       #a68a8f;
  --accent:      #f48fb1;
  --accent-light:#fce4e8;
  --packed:      #d8a4b4;
  --danger:      #c0694a;
  --radius:      8px;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width:   480px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  margin: 0;
  display: flex;
  justify-content: center;
}

#app {
  width: 100%;
  max-width: var(--max-width);
  padding: 20px;
}

/* Header */
#header {
  font-size: 24px;
  font-weight: bold;
  padding: 10px 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

/* Utils */
.hidden { display: none !important; }
.btn-add {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  width: 100%;
  cursor: pointer;
}

/* List */
#drawer-list {
  list-style: none;
  padding: 0;
}
#drawer-list li button {
  width: 100%;
  text-align: left;
  padding: 15px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
}

/* Detail */
.detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.btn-back {
  background: none;
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}
.toggle-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.toggle-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
}
.toggle-btn.active {
  background: var(--accent);
  color: white;
}

/* Items */
#item-list {
  list-style: none;
  padding: 0;
}
.item-row {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
.item-name { flex: 1; }
.item-row.packed .item-name {
  text-decoration: line-through;
  color: var(--packed);
}
.btn-icon {
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
}

/* Modal */
#modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}
#modal {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 400px;
}
#modal input[type="text"], #modal select {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.header-row { display: flex; justify-content: space-between; align-items: center; }
#trip-details { font-size: 16px; color: var(--muted); margin: 10px 0; }
