/* Lightbulb CRM — bold music-blog / neo-brutalist theme.
   Signature element: thick solid offset shadows on boxes holding content. */

:root {
  --paper: #fbf6e9;
  --ink: #141210;
  --accent: #ffc400;
  --urgent: #e4442e;
  --muted: #6b6459;
  --line: var(--ink);

  --shadow-size: 5px;
  --shadow: var(--shadow-size) var(--shadow-size) 0 var(--ink);
  --shadow-pressed: 2px 2px 0 var(--ink);

  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
}

.content {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.25rem 1rem 6rem;
}

ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Type ---------- */

h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  padding-bottom: 0.35rem;
  border-bottom: 6px solid var(--accent);
  display: inline-block;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
  padding-left: 0.6rem;
  border-left: 10px solid var(--accent);
}

p.muted, span.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  text-decoration-color: var(--accent);
}

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

time {
  color: var(--muted);
  font-size: 0.85rem;
}

.empty {
  color: var(--muted);
  font-style: italic;
  padding: 0.5rem 0;
}

/* ---------- Forms ---------- */

label { display: block; font-weight: 600; margin: 0.5rem 0 0.25rem; }

input, textarea, select {
  font: inherit;
  width: 100%;
  padding: 0.6rem 0.65rem;
  margin: 0.25rem 0 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}

input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}

button {
  font: inherit;
  font-weight: 700;
  width: 100%;
  padding: 0.7rem 1rem;
  margin: 0.25rem 0 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}

button:hover { filter: brightness(0.97); }

button:active {
  transform: translate(3px, 3px);
  box-shadow: var(--shadow-pressed);
}

button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

button.secondary {
  background: var(--paper);
  color: var(--ink);
}

/* Buttons/links inline in flow (e.g. wrapped in <a>) shouldn't force full width */
a > button { width: auto; }

/* ---------- Cards / boxes: the signature hard-shadow treatment ---------- */

.card, .reminder, .interaction {
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0.85rem 0.9rem;
  margin: 0 0 1.1rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.card { padding: 0.65rem 0.9rem; }

.reminder.overdue {
  border-left: 8px solid var(--urgent);
  padding-left: calc(0.9rem - 6px);
}

.reminder-type, .interaction-type {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  margin: 0 0.5rem 0.4rem 0;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.reminder.overdue .reminder-type {
  border-color: var(--urgent);
  background: var(--urgent);
  color: var(--paper);
}

.reminder-note {
  margin: 0.5rem 0 0;
}

.reminder-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.reminder-actions button,
.reminder-actions form {
  width: auto;
  margin: 0;
}

.reminder-actions form button { margin: 0; }

/* ---------- Messages ---------- */

.messages li {
  padding: 0.6rem 0.8rem;
  margin: 0 0 0.75rem;
  border: 2px solid var(--ink);
  background: var(--accent);
  box-shadow: var(--shadow);
  font-weight: 600;
}

.messages li.error {
  background: var(--urgent);
  color: var(--paper);
}

/* ---------- Bottom tab bar ---------- */

.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--paper);
  border-top: 3px solid var(--ink);
  z-index: 10;
}

.tabbar a {
  flex: 1;
  text-align: center;
  padding: 0.85rem 0.25rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border-right: 2px solid var(--ink);
}

.tabbar a:last-of-type { border-right: none; }

.tabbar a.active {
  background: var(--accent);
}

.tabbar a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -4px;
}

.tabbar .logout-form { flex: 1; margin: 0; padding: 0; }

.tabbar .logout-button {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0.85rem 0.25rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
}

.tabbar .logout-button:active {
  transform: none;
  box-shadow: none;
  background: var(--accent);
}

/* ---------- Accessibility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
  button:active {
    transform: none;
    box-shadow: var(--shadow);
  }
}

/* ---------- Small screens (this is a phone-first app) ---------- */

@media (max-width: 400px) {
  h1 { font-size: 1.65rem; }
  .content { padding: 1rem 0.75rem 6rem; }
}
