/* Snapchat streak helper — themed to match OddaFlow site */
:root {
  --bg: var(--page-bg, #f6f6f0);
  --surface: var(--surface, #ffffff);
  --surface-2: var(--surface-2, #f0f0ea);
  --border: var(--line, #e2e2dc);
  --text: var(--ink, #1a1a1a);
  --muted: var(--text-2, #5a5a5a);
  --primary: #fffc00;
  --primary-text: #1a1a00;
  --accent: var(--accent, #5b8a2d);
  --danger: #dc2626;
  --radius: 12px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "Tahoma", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* remove standalone header spacing since parent page has heading */
.app-header { display: none; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 40px;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.card h2 { margin: 0 0 12px; font-size: 18px; color: var(--text); }
.card h3 { margin: 12px 0 8px; font-size: 15px; color: var(--text); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
label.full { grid-column: 1 / -1; }
input, textarea, select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.actions.wrap { flex-wrap: wrap; }

.btn {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); font-weight: 700; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.ghost { background: transparent; }
.btn.file { position: relative; overflow: hidden; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.friends-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.friends-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.friends-list li:last-child { border-bottom: none; }
.friends-list li input[type="checkbox"] { width: 18px; height: 18px; }
.friends-list .name { flex: 1; }
.friends-list .del { background: transparent; border: none; color: var(--danger); cursor: pointer; font-size: 16px; }

.status { color: var(--muted); font-size: 14px; margin: 4px 0; }
.muted { color: var(--muted); font-size: 14px; margin: 4px 0; }
.muted.small { font-size: 12px; }
.diag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 12px;
  max-height: 160px;
  overflow: auto;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 999;
}
.toast.show { opacity: 1; }

details summary { cursor: pointer; font-weight: 600; color: var(--text); }
