:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #d8dee8;
  --text: #0f172a;
  --muted: #4b5563;
  --accent: #0f62fe;
  --accent-dark: #0b4ccd;
  --shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero h1,
.composer-card h2,
.notes-panel h2 {
  margin: 0.3rem 0 0;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-copy {
  margin: 0.6rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.composer-card,
.notes-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.composer-card {
  margin-bottom: 1.5rem;
}

.composer-card__header,
.notes-panel__header {
  margin-bottom: 1rem;
}

.note-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 98, 254, 0.22);
}

.button--primary:hover {
  background: var(--accent-dark);
}

.button--secondary {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Blue Button Base */
.paypal-blue-btn {
    background-color: #0070BA;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px; /* Change to 24px if you want a pill-shape */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Blue Button Hover State */
.paypal-blue-btn:hover {
    background-color: #005EA6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.note-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--surface-soft);
}

.sticky-note {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fffdf6 0%, #ffffff 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sticky-note__header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.sticky-note__title {
  margin: 0;
  font-size: 1.05rem;
}

.sticky-note__meta {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.sticky-note__content {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
  min-height: 6rem;
}

.sticky-note textarea {
  width: 100%;
  min-height: 7rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0.8rem 0.9rem;
  resize: vertical;
  background: #fffdfd;
}

.sticky-note__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sticky-note__actions .button {
  min-width: 5.5rem;
}

.note-title-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font-size: 1rem;
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    align-items: start;
  }

  .form-actions,
  .sticky-note__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
