/* ===============================
   THEME COLORS
================================= */
:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1e1e1e;
  --accent: #5b7bff;
  --border: #e5e5e5;
  --shadow: rgba(0,0,0,0.08);
}

body.dark {
  --bg: #0f1116;
  --card: #1a1d23;
  --text: #f5f5f5;
  --accent: #728cff;
  --border: #2c2f36;
  --shadow: rgba(0,0,0,0.55);
}

/* ===============================
   GLOBAL
================================= */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  transition: background 0.3s, color 0.3s;
}

.app {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* ===============================
   TOPBAR
================================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.logo {
  margin: 0;
  font-size: 28px;
  letter-spacing: -1px;
}

/* Theme button */
.theme-btn {
  background: transparent;
  font-size: 26px;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  transition: 0.3s;
}

.theme-btn:hover {
  background: rgba(0,0,0,0.06);
}

body.dark .theme-btn:hover {
  background: rgba(255,255,255,0.08);
}

/* ===============================
   INPUTS + FORM
================================= */
.input {
  width: 100%;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  transition: 0.3s;
  box-shadow: 0 3px 12px var(--shadow);
}

.input:focus {
  border-color: var(--accent);
  outline: none;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.note-input {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

/* ===============================
   BUTTONS
================================= */
.btn {
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.btn.primary {
  background: linear-gradient(135deg, #5a3fff, #6e8bff);
  color: white;
}

.btn.primary:hover {
  opacity: 0.92;
}

.btn.small {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px var(--shadow);
}

.btn.small:hover {
  background: var(--accent);
  color: white;
}

/* ===============================
   SEARCH + FILTERS
================================= */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.search {
  flex: 1;
}

/* ===============================
   NOTE CARDS
================================= */
.note-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.note-card {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px var(--shadow);
  border: 1px solid var(--border);
  transition: 0.25s;
}

.note-card:hover {
  transform: translateY(-2px);
}

.note-card h3 {
  margin: 0;
  font-size: 18px;
  margin-bottom: 6px;
}

.timestamp {
  font-size: 12px;
  color: gray;
  margin-bottom: 10px;
}

.note-card p {
  white-space: pre-wrap;
  margin-bottom: 12px;
}

/* TAGS */
.tag {
  background: var(--accent);
  padding: 5px 10px;
  color: white;
  border-radius: 10px;
  font-size: 12px;
  margin-right: 6px;
}

/* NOTE BUTTONS */
.note-card button {
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  margin-right: 8px;
  background: var(--accent);
  color: white;
  transition: 0.2s;
}

.note-card button:hover {
  opacity: 0.85;
}

/* ===============================
   BRANDING
================================= */
.branding {
  margin-top: 35px;
  text-align: center;
  padding: 18px;
  font-size: 14px;
  color: white;
  background: linear-gradient(135deg, #5a3fff, #6e8bff);
  border-radius: 16px;
  box-shadow: 0 6px 16px var(--shadow);
}

.branding strong {
  color: #fff6b3;
}
