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

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2d3a;
  --accent: #e05c3a;
  --accent-hover: #c94e2f;
  --text: #e8eaf0;
  --muted: #8b8fa8;
  --danger: #c0392b;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s;
}

nav a:hover { color: var(--text); }

main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.intro h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.intro p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.intro p:last-of-type { margin-bottom: 1.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover { background: var(--accent-hover); }

.google-btn {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
}

.google-btn:hover { background: #f5f5f5; }

.note-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.75rem;
  resize: vertical;
  width: 100%;
  transition: border-color 0.15s;
}

textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.note-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.note-content {
  white-space: pre-wrap;
  word-break: break-word;
}

.note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.muted { color: var(--muted); font-size: 0.875rem; }
.muted-card { color: var(--muted); }

.btn-delete {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  transition: all 0.15s;
}

.btn-delete:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.error {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-bottom: 0.75rem !important;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding-top: 1rem;
}

h2 { margin-bottom: 0.25rem; }
