/* Firewalk Experience colour scheme */
:root {
  --fw-bg: #1a1a1a;
  --fw-accent: #ff6b00;
  --fw-text: #ffffff;
}

body { background: #f3f3f3; }

/* --- top navbar (logged-in pages) -------------------------------------- */
.firewalk-nav {
  background: var(--fw-bg);
  border-bottom: 3px solid var(--fw-accent);
}
.firewalk-nav .navbar-brand {
  color: var(--fw-accent) !important;
  font-weight: bold;
}

/* --- buttons ----------------------------------------------------------- */
.firewalk-btn {
  background: var(--fw-accent);
  color: #fff;
  border: none;
}
.firewalk-btn:hover,
.firewalk-btn:focus {
  background: #e25d00;
  color: #fff;
}

/* --- public pages (login, enquiry, thanks) ---------------------------- */
.firewalk-public {
  background: var(--fw-bg);
  color: var(--fw-text);
  min-height: 100vh;
}
.firewalk-public h1,
.firewalk-public h2 { color: var(--fw-accent); }
.firewalk-public a  { color: var(--fw-accent); }

.firewalk-card {
  background: #232323;
  color: var(--fw-text);
  border: 1px solid #333;
}
.firewalk-card .form-label { color: #eee; }
.firewalk-card input,
.firewalk-card textarea,
.firewalk-card select {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #444;
}
.firewalk-card input:focus,
.firewalk-card textarea:focus,
.firewalk-card select:focus {
  background: #1a1a1a;
  color: #fff;
  border-color: var(--fw-accent);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.25);
}
.firewalk-card .form-check-input:checked {
  background-color: var(--fw-accent);
  border-color: var(--fw-accent);
}

/* --- kanban dashboard -------------------------------------------------- */
.kanban-col {
  background: #ffffff;
  border-radius: 6px;
  padding: 8px;
  min-height: 160px;
  border-top: 3px solid var(--fw-accent);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.kanban-title {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

/* Each card in the kanban — an anchor so the entire card is clickable. */
.kanban-card {
  display: block;
  background: #fff;
  color: #222;
  border: 1px solid #e3e3e3;
  border-left: 3px solid var(--fw-accent);
  border-radius: 4px;
  padding: 6px 8px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  line-height: 1.25;
  transition: background 0.1s ease, box-shadow 0.1s ease;
}
.kanban-card:hover {
  background: #fff8f1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  color: #222;
}
.kanban-card-sub {
  color: #666;
  font-size: 0.72rem;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.kanban-card-sub .badge {
  font-size: 0.62rem;
  padding: 0.2em 0.45em;
}
.kanban-card-meta {
  color: #777;
  font-size: 0.72rem;
  margin-top: 2px;
}

/* Drag-and-drop visual feedback */
.kanban-card[draggable="true"] { cursor: grab; }
.kanban-card.dragging         { opacity: 0.45; cursor: grabbing; }
.kanban-drop                  { min-height: 80px; border-radius: 4px; transition: background 0.1s ease; padding: 2px; }
.kanban-drop.drag-over        { background: #fff3e6; outline: 2px dashed var(--fw-accent); outline-offset: -2px; }
.kanban-empty                 { padding: 18px 6px; text-align: center; border: 1px dashed #ddd; border-radius: 4px; }

/* Small floating toast for drop confirmations / errors */
.kanban-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1a1a1a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  border-left: 4px solid var(--fw-accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 0.88rem;
  z-index: 1080;
  max-width: 360px;
}
.kanban-toast-error { border-left-color: #d94c4c; }

/* --- field pages (contact edit, settings, search) --------------------- */
/* Constrains form width on wide monitors so the layout doesn't feel
   sparse, and gives cards/sections a calmer, more padded look. */
.field-page {
  max-width: 1200px;
  margin: 0 auto;
}
.field-page .card {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.field-page .card-header {
  background: #fafafa;
  border-bottom: 1px solid #ececec;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
}
.field-page .card-body {
  padding: 1.25rem 1.5rem;
}
.field-page .form-label {
  font-weight: 500;
  color: #444;
  margin-bottom: 0.25rem;
}
.field-page h2 { margin-top: 0.25rem; }
.field-page hr { margin: 1.25rem 0; opacity: 0.15; }

/* --- Communications page — Reference card ---------------------------- */
.ref-card {
  background: #fff;
  border: 1px solid #e4e8ee;
  border-left: 4px solid var(--fw-accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ref-card .card-body { padding: 16px 22px; }

.ref-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.ref-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1F3864;
  margin: 0;
  letter-spacing: -0.2px;
}
.ref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ref-chip {
  background: #eef2f7;
  color: #1F3864;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}
.ref-stage {
  background: var(--fw-accent);
  color: #fff;
}

.ref-divider {
  margin: 14px 0 12px;
  border: 0;
  border-top: 1px solid #ececf0;
  opacity: 1;
}

.ref-col + .ref-col {
  border-left: 1px solid #f0f1f4;       /* subtle column dividers on wide screens */
}
@media (max-width: 767px) {
  .ref-col + .ref-col { border-left: 0; padding-top: 6px; }
}

.ref-col-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #888;
  margin: 0 0 8px;
  font-weight: 700;
}
.ref-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a1a;
}
.ref-line {
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 1px;
  color: #1a1a1a;
}
.ref-line a { color: #1F3864; text-decoration: none; }
.ref-line a:hover { text-decoration: underline; }
.ref-multiline { white-space: pre-line; }
.ref-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.5px;
  margin: 8px 0 2px;
  font-weight: 700;
}

.comm-list-page { /* full-page log, no scroll cap */ }

/* --- Communication log entries ---------------------------------------- */
.comm-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}
.comm-entry {
  border-left: 3px solid var(--fw-accent);
  background: #fafafa;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 0 4px 4px 0;
}
.comm-entry:last-child { margin-bottom: 0; }
.comm-meta {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 4px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.comm-num {
  font-weight: 600;
  color: var(--fw-accent);
  background: #fff3e6;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.75rem;
}
.comm-date { color: #888; }
.comm-body {
  white-space: pre-wrap;       /* preserve line breaks the user typed */
  font-size: 0.92rem;
  line-height: 1.45;
  color: #222;
}

/* --- top-nav search box ---------------------------------------------- */
.nav-search {
  max-width: 320px;
}
.nav-search .form-control {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.nav-search .form-control::placeholder { color: rgba(255,255,255,0.55); }
.nav-search .form-control:focus {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: var(--fw-accent);
  box-shadow: 0 0 0 0.15rem rgba(255,107,0,0.25);
}

/* --- search results --------------------------------------------------- */
.search-hit {
  display: block;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-left: 3px solid var(--fw-accent);
  border-radius: 6px;
  text-decoration: none;
  color: #222;
}
.search-hit:hover {
  background: #fff8f1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  color: #222;
}
.search-hit .hit-title { font-weight: 600; }
.search-hit .hit-meta  { color: #666; font-size: 0.85rem; margin-top: 2px; }
.search-hit mark       { background: #ffec99; padding: 0 2px; border-radius: 2px; }

/* --- Crew autocomplete dropdown -------------------------------------- */
.crew-name-wrap { position: relative; }
.crew-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  max-height: 240px;
  overflow-y: auto;
  z-index: 1050;
  margin-top: 2px;
}
.crew-suggest-item {
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  border-bottom: 1px solid #f3f3f3;
}
.crew-suggest-item:last-child { border-bottom: 0; }
.crew-suggest-item:hover { background: #fff8f1; }
