/* manage-bor app-specific styles. Shared chrome (masthead, beta banner, .btn family,
   .container, .spinner, .page-title, .auth-screen, .google-btn, table-tools .columns-*)
   comes from theme.css. */

.container { max-width: 1200px; }

/* ---- Tabs ---- */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab-btn:hover { color: var(--color-primary, #02133e); }
.tab-btn.active {
  color: var(--color-primary, #02133e);
  border-bottom-color: var(--color-primary, #02133e);
}

/* ---- Action bar ---- */
.action-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ---- Cards / forms ---- */
.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-row .form-group { flex: 1; min-width: 200px; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.form-group small { color: #666; font-size: 0.8rem; }
.form-control {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary, #02133e);
}
textarea.form-control { resize: vertical; }
.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* ---- Boards list ---- */
.boards-list { display: flex; flex-direction: column; gap: 1rem; }
.board-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.board-item-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.board-item-head h3 { margin: 0; font-size: 1.15rem; }
.board-meta { font-size: 0.9rem; color: #444; margin-bottom: 0.15rem; }
.board-meta.muted { color: #888; font-size: 0.82rem; }
.board-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

/* ---- Status badges ---- */
.status-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}
.status-confirmed { background: #e6f4ea; color: #1e7e34; }
.status-waitlist  { background: #fff3cd; color: #856404; }
.status-pending   { background: #e2e3f0; color: #3b3b8f; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-open      { background: #e6f4ea; color: #1e7e34; }
.status-published { background: #e3f0fb; color: #1a5f9e; }
.status-draft     { background: #eee;    color: #555; }

/* ---- Tables ---- */
.section-heading { margin: 1.5rem 0 0.5rem; font-size: 1.2rem; }
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.9rem;
}
.data-table th, .data-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: middle;
}
.data-table th {
  background: #f5f5f5;
  font-weight: 700;
  white-space: nowrap;
}
.inline-input {
  width: 100%;
  min-width: 90px;
  padding: 0.3rem 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.85rem;
  box-sizing: border-box;
}
.approve-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

/* ---- Reminder pills ---- */
.reminder {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
}
.reminder.ok  { background: #e6f4ea; color: #1e7e34; }
.reminder.bad { background: #f8d7da; color: #721c24; }

/* ---- Buttons ---- */
.btn-small { padding: 0.3rem 0.7rem; font-size: 0.82rem; }
.btn-success { background: #1e7e34; color: #fff; }
.btn-success:hover { background: #166028; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a03024; }

/* ---- Warnings / messages ---- */
.warning-card {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}
.warning-message {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 700;
}
.muted { color: #888; }

.error-message {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  max-width: 360px;
  z-index: 1000;
}
.success-message {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  max-width: 360px;
  z-index: 1000;
}
