/* ভোর নোটস — হালকা, পরিষ্কার, মোবাইল-ফার্স্ট */

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

:root {
  --navy: #152a3d;
  --navy-soft: #1f3a52;
  --accent: #e8a020;
  --accent-dark: #c98412;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1c2733;
  --muted: #66788a;
  --border: #dfe6ec;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(21, 42, 61, 0.08);
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 18px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--navy);
  font-size: 24px; font-weight: 700;
  border-radius: 12px;
}
.brand h1 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: 0.2px; }
.tagline { font-size: 13px; color: #b8c7d4; line-height: 1.4; }
.badge {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Cards & form ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 20px;
}
.composer h2 { font-size: 18px; margin-bottom: 14px; }
.field { display: block; margin-bottom: 14px; }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="search"], textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fbfcfd;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]:focus, input[type="search"]:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.18);
  background: #fff;
}
textarea { resize: vertical; min-height: 110px; }
.char-count { display: block; text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.05s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: #eef1f4; color: var(--text); }
.btn-ghost:hover { background: #e2e8ed; }
.form-msg { margin-top: 10px; font-size: 14px; min-height: 1.4em; }
.form-msg.ok { color: #1e7d32; }
.form-msg.err { color: var(--danger); }

/* ---------- Toolbar / search ---------- */
.toolbar { margin-top: 20px; }
.toolbar input[type="search"] { background: #fff; box-shadow: var(--shadow); }

/* ---------- Status & notes ---------- */
.status { margin: 16px 2px 0; font-size: 14px; color: var(--muted); }
.status.err { color: var(--danger); }

.notes { display: grid; gap: 14px; margin-top: 14px; }
.note {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.note-title { font-size: 17px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.note-text {
  margin-top: 6px;
  font-size: 15px;
  color: #33424f;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.note-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.note-actions { display: flex; gap: 8px; }
.btn-small {
  font: inherit;
  font-size: 13px; font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #f7f9fb;
  color: var(--navy);
}
.btn-small:hover { background: #eef2f5; }
.btn-small.danger { color: var(--danger); border-color: #f0c6c0; background: var(--danger-soft); }
.btn-small.danger:hover { background: #fbdcd8; }

/* ---------- Empty states ---------- */
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.empty-icon { font-size: 44px; margin-bottom: 8px; }
.empty p { font-size: 15px; }

.hidden { display: none !important; }

/* ---------- Footer ---------- */
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 32px 16px 40px; }

/* ---------- PC ---------- */
@media (min-width: 768px) {
  .brand h1 { font-size: 27px; }
  .composer h2 { font-size: 20px; }
  .notes { gap: 16px; }
}
