/* Org dashboard overrides — covey.css provides the base design system */

/* =============================================
   Toast Notifications
   ============================================= */

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--surface);
  background: var(--dark);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: auto;
}
.toast-visible { opacity: 1; transform: translateX(0); }
.toast-success { background: var(--green); }
.toast-error { background: var(--red); }
.toast-info { background: var(--blue); }

/* =============================================
   Modal System
   ============================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(45, 42, 38, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal.modal-sm { max-width: 400px; }
.modal.modal-lg { max-width: 700px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 4px;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 0 24px 20px;
}

/* =============================================
   Toolbar (filters + search)
   ============================================= */

.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 4px;
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 3px;
}

.filter-btn,
.events-filter-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover,
.events-filter-btn:hover { color: var(--text); }
.filter-btn.active,
.events-filter-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.input-search {
  padding: 7px 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--surface);
  min-width: 220px;
  color: var(--text);
}
.input-search:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px var(--plum-light);
}

/* =============================================
   Header Actions
   ============================================= */

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =============================================
   Member Name Cell (avatar + name)
   ============================================= */

.member-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--plum-light);
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  text-transform: uppercase;
}

.actions-cell {
  text-align: right;
  white-space: nowrap;
}

.btn-danger-text { color: var(--red); }
.btn-danger-text:hover { background: var(--red-bg); }

.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-danger:hover {
  background: #b34f4f;
  border-color: #b34f4f;
}

/* =============================================
   Event Cards
   ============================================= */

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: box-shadow 0.15s;
}
.event-card:hover {
  box-shadow: var(--shadow);
}

.event-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.event-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.event-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.event-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.event-desc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.event-footer {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.event-reg-count {
  font-weight: 500;
}

/* =============================================
   Builder Components List
   ============================================= */

.builder-component-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}
.builder-component-item:last-child { border-bottom: none; }

.builder-component-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.builder-component-info {
  flex: 1;
  min-width: 0;
}
.builder-component-info strong {
  display: block;
  font-size: 14px;
}
.builder-component-info .text-muted {
  font-size: 13px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-component-order {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

/* =============================================
   Version History
   ============================================= */

.version-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.version-item:last-child { border-bottom: none; }
.version-item strong { font-size: 14px; }
.version-item .text-muted {
  font-size: 12px;
  margin-left: 8px;
}

/* =============================================
   Settings
   ============================================= */

.settings-form {
  max-width: 600px;
}

.settings-section {
  margin-bottom: 32px;
}
.settings-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.field-hint code {
  background: var(--cream-dark);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

.field-value {
  font-size: 14px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

/* =============================================
   Form Rows (side-by-side fields)
   ============================================= */

.field-row {
  display: flex;
  gap: 16px;
}
.field-row .field { flex: 1; }

/* =============================================
   Text Utility
   ============================================= */

.text-muted { color: var(--text-muted); }

/* =============================================
   Loading Skeleton
   ============================================= */

.loading {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
/* prod deploy */
