/* ═══════════════════════════════════════════════════════════
   BoardHub Styles — A&E Ventures Dark Theme
   (c) 2026 A&E Ventures, LLC
   ═══════════════════════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f1117;
  color: #e8e8e8;
  line-height: 1.6;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  background: #1a1d27;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a2d37;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-left { display: flex; align-items: center; gap: 2rem; }
.logo { color: #6c63ff; font-size: 1.4rem; cursor: pointer; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-link {
  color: #888; text-decoration: none; padding: 0.5rem 1rem;
  border-radius: 4px; transition: all 0.2s; font-size: 0.95rem;
}
.nav-link:hover { color: #e8e8e8; background: rgba(108,99,255,0.1); }
.nav-link.active { color: #6c63ff; background: rgba(108,99,255,0.15); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.role-badge {
  background: rgba(108,99,255,0.2); color: #6c63ff;
  padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.8rem;
  text-transform: capitalize;
}

/* ── Confidential Banner ────────────────────────────────── */
.confidential-banner {
  background: #1a1d27;
  color: #f39c12;
  text-align: center;
  padding: 0.35rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid #2a2d37;
}

/* ── Footer ─────────────────────────────────────────────── */
.app-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: #555;
  border-top: 1px solid #2a2d37;
  margin-top: 3rem;
}

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 2rem auto; padding: 0 2rem; }
.page { display: none; }
.page.active { display: block; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-label { color: #888; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 1.5rem 0 0.75rem; }
.back-link { color: #6c63ff; text-decoration: none; display: inline-block; margin-bottom: 1rem; font-size: 0.9rem; }
.back-link:hover { text-decoration: underline; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: #1a1d27; padding: 1.5rem;
  border-radius: 8px; margin-bottom: 1rem;
}
.card h3 { color: #6c63ff; margin-bottom: 1rem; font-size: 1.05rem; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.card-header h3 { margin-bottom: 0; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }

/* ── Meeting / Vote / Action Items ───────────────────────── */
.meeting-item, .vote-item, .action-item {
  padding: 0.75rem 1rem; background: #0f1117;
  border-radius: 6px; margin-bottom: 0.5rem;
  border-left: 3px solid #6c63ff; transition: background 0.15s;
}
.meeting-item.clickable { cursor: pointer; }
.meeting-item.clickable:hover { background: #161822; }
.meeting-item-header { display: flex; justify-content: space-between; align-items: center; }
.meeting-item h4, .vote-item h4, .action-item h4 { margin-bottom: 0.2rem; color: #e8e8e8; font-size: 0.95rem; }
.meta { font-size: 0.85rem; color: #888; }
.countdown { color: #6c63ff; font-size: 0.85rem; margin-top: 0.25rem; }
.empty-state { color: #555; font-style: italic; }

/* ── Status Badges ───────────────────────────────────────── */
.status-badge {
  font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 12px; text-transform: capitalize;
}
.status-scheduled { background: rgba(108,99,255,0.15); color: #6c63ff; }
.status-active { background: rgba(76,175,80,0.15); color: #4caf50; }
.status-done { background: rgba(136,136,136,0.15); color: #888; }
.approved-badge {
  color: #4caf50; font-size: 0.85rem;
  background: rgba(76,175,80,0.1); padding: 0.2rem 0.6rem;
  border-radius: 12px; display: inline-block; margin-bottom: 0.75rem;
}

/* ── Meeting Detail ──────────────────────────────────────── */
.meeting-detail-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.agenda-text, .minutes-text { color: #ccc; line-height: 1.7; }
.detail-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

/* ── Attendance ──────────────────────────────────────────── */
.attendance-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0; border-bottom: 1px solid #2a2d37;
}
.attendance-row:last-child { border-bottom: none; }
.present { color: #4caf50; font-size: 0.85rem; }
.absent { color: #555; font-size: 0.85rem; }

/* ── Toggle Switch ───────────────────────────────────────── */
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #2a2d37; border-radius: 22px; transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute; height: 16px; width: 16px;
  left: 3px; bottom: 3px; background: #888;
  border-radius: 50%; transition: 0.3s;
}
.toggle input:checked + .toggle-slider { background: rgba(108,99,255,0.3); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); background: #6c63ff; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; margin-bottom: 0.4rem; color: #aaa; font-size: 0.9rem; }
input, textarea, select {
  width: 100%; padding: 0.65rem 0.75rem;
  background: #0f1117; border: 1px solid #2a2d37;
  border-radius: 4px; color: #e8e8e8; font-size: 0.95rem;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #6c63ff; }
.form-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-danger {
  padding: 0.6rem 1.25rem; border: none; border-radius: 4px;
  cursor: pointer; font-size: 0.9rem; transition: background 0.2s;
}
.btn-primary { background: #6c63ff; color: white; }
.btn-primary:hover { background: #5850d6; }
.btn-secondary { background: #2a2d37; color: #e8e8e8; }
.btn-secondary:hover { background: #3a3d47; }
.btn-danger { background: rgba(255,107,107,0.15); color: #ff6b6b; }
.btn-danger:hover { background: rgba(255,107,107,0.25); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.85rem; }

/* ── Modal ───────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center; z-index: 200;
}
.modal-content {
  background: #1a1d27; border-radius: 8px; padding: 2rem;
  width: 90%; max-width: 600px; max-height: 85vh; overflow-y: auto;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-header h3 { color: #6c63ff; }
.modal-close { background: none; border: none; color: #888; font-size: 1.5rem; cursor: pointer; }
.modal-close:hover { color: #e8e8e8; }

/* ── Login ───────────────────────────────────────────────── */
.login-container { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box {
  background: #1a1d27; padding: 3rem; border-radius: 8px;
  width: 100%; max-width: 400px; text-align: center;
}
.login-box h1 { color: #6c63ff; margin-bottom: 0.5rem; }
.subtitle { color: #888; margin-bottom: 2rem; }
.login-box .btn-primary { width: 100%; }
.error {
  color: #ff6b6b; padding: 0.75rem;
  background: rgba(255,107,107,0.1); border-radius: 4px; margin-bottom: 1rem;
}
.help-text { color: #666; font-size: 0.85rem; margin-top: 1rem; }

/* ── Documents ──────────────────────────────────────────── */
.filter-bar { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.filter-bar select { width: auto; min-width: 160px; }
.filter-bar input { flex: 1; }

.document-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 1rem; background: #1a1d27;
  border-radius: 6px; margin-bottom: 0.5rem;
}
.document-item.compact {
  background: #0f1117;
  border-left: 3px solid #6c63ff;
}
.doc-icon {
  width: 48px; height: 48px; border-radius: 6px;
  background: #0f1117; border: 2px solid #888;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #e8e8e8;
  flex-shrink: 0;
}
.doc-info { flex: 1; min-width: 0; }
.doc-info h4 {
  margin-bottom: 0.2rem; color: #e8e8e8; font-size: 0.95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.doc-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.doc-tags { display: flex; gap: 0.35rem; margin-top: 0.35rem; flex-wrap: wrap; }
.doc-tag {
  background: rgba(108,99,255,0.12); color: #6c63ff;
  padding: 0.1rem 0.5rem; border-radius: 10px; font-size: 0.75rem;
}
input[type="file"] {
  padding: 0.5rem; background: #0f1117;
  border: 1px dashed #2a2d37; border-radius: 4px; cursor: pointer;
}
input[type="file"]:hover { border-color: #6c63ff; }

/* ── Admin Tabs ─────────────────────────────────────────── */
.admin-tabs {
  display: flex; gap: 0; margin-bottom: 1.5rem;
  border-bottom: 1px solid #2a2d37;
}
.admin-tab {
  background: none; border: none; color: #888;
  padding: 0.75rem 1.25rem; cursor: pointer; font-size: 0.95rem;
  border-bottom: 2px solid transparent; transition: all 0.2s;
}
.admin-tab:hover { color: #e8e8e8; }
.admin-tab.active { color: #6c63ff; border-bottom-color: #6c63ff; }

/* ── Admin Tables ──────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; padding: 0.75rem; color: #888; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid #2a2d37;
}
.admin-table td { padding: 0.75rem; border-bottom: 1px solid rgba(42,45,55,0.5); }
.admin-table tr:hover td { background: rgba(108,99,255,0.03); }
.admin-table code { background: rgba(108,99,255,0.1); padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.8rem; color: #b8b4ff; }
.action-cell { white-space: nowrap; }
.action-cell .btn-sm { margin-right: 0.25rem; }

/* ── Admin Status Badges ───────────────────────────────── */
.badge-active { background: rgba(76,175,80,0.15); color: #4caf50; padding: 0.2rem 0.5rem; border-radius: 10px; font-size: 0.75rem; }
.badge-inactive { background: rgba(255,107,107,0.15); color: #ff6b6b; padding: 0.2rem 0.5rem; border-radius: 10px; font-size: 0.75rem; }
.badge-admin { background: rgba(255,152,0,0.15); color: #ff9800; padding: 0.2rem 0.5rem; border-radius: 10px; font-size: 0.75rem; }

/* ── Org Badge / Switcher ──────────────────────────────── */
.org-switcher { position: relative; }
.org-badge {
  background: rgba(108,99,255,0.15); color: #6c63ff;
  border: 1px solid rgba(108,99,255,0.3);
  padding: 0.35rem 0.75rem; border-radius: 6px;
  cursor: pointer; font-size: 0.85rem; font-family: inherit;
}
.org-badge:hover { background: rgba(108,99,255,0.25); }
.org-dropdown {
  position: absolute; top: 100%; right: 0; margin-top: 0.5rem;
  background: #1a1d27; border: 1px solid #2a2d37; border-radius: 6px;
  min-width: 220px; z-index: 150; box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.org-dropdown-item {
  padding: 0.6rem 1rem; cursor: pointer; color: #e8e8e8;
  font-size: 0.9rem; border-bottom: 1px solid #2a2d37;
}
.org-dropdown-item:last-child { border-bottom: none; }
.org-dropdown-item:hover { background: rgba(108,99,255,0.1); }
.org-dropdown-item.active { color: #6c63ff; }

/* ── Role Checkboxes ───────────────────────────────────── */
.role-checkbox-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.role-checkbox-group label {
  display: flex; align-items: center; gap: 0.3rem;
  color: #ccc; font-size: 0.85rem; cursor: pointer;
}
.role-checkbox-group input[type="checkbox"] { width: auto; }
.checkbox-label {
  display: flex; align-items: center; gap: 0.5rem;
  cursor: pointer; color: #ccc;
}
.checkbox-label input[type="checkbox"] { width: auto; }

/* ── Vote Tally Bar ──────────────────────────────────────── */
.tally-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #2a2d37; }
.tally-yes { background: #4caf50; }
.tally-no { background: #ff6b6b; }
.tally-abstain { background: #ff9800; }

/* ── Vote Buttons ────────────────────────────────────────── */
.vote-buttons { display: flex; gap: 0.75rem; margin: 1rem 0; }
.vote-btn {
  padding: 0.75rem 1.5rem; border-radius: 6px; cursor: pointer;
  border: 2px solid transparent; font-size: 1rem; font-family: inherit;
  transition: all 0.2s;
}
.vote-btn.yes { background: rgba(76,175,80,0.15); color: #4caf50; }
.vote-btn.yes:hover { background: rgba(76,175,80,0.25); }
.vote-btn.no { background: rgba(255,107,107,0.15); color: #ff6b6b; }
.vote-btn.no:hover { background: rgba(255,107,107,0.25); }
.vote-btn.abstain { background: rgba(255,152,0,0.15); color: #ff9800; }
.vote-btn.abstain:hover { background: rgba(255,152,0,0.25); }
.vote-btn.selected { border-color: currentColor; }
.vote-btn:disabled { opacity: 0.4; cursor: default; }

/* ── Quorum Badge ────────────────────────────────────────── */
.quorum-met { background: rgba(76,175,80,0.15); color: #4caf50; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; }
.quorum-not-met { background: rgba(255,152,0,0.15); color: #ff9800; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; }

/* ── Action Items ────────────────────────────────────────── */
.action-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem; background: #1a1d27; border-radius: 6px; margin-bottom: 0.5rem;
}
.status-done-badge { background: rgba(76,175,80,0.15); color: #4caf50; padding: 0.2rem 0.5rem; border-radius: 10px; font-size: 0.75rem; }
.status-pending-badge { background: rgba(108,99,255,0.15); color: #6c63ff; padding: 0.2rem 0.5rem; border-radius: 10px; font-size: 0.75rem; }
.overdue { color: #ff6b6b; }

/* ── Agenda Items ────────────────────────────────────────── */
.agenda-item-card {
  background: #0f1117; border-radius: 6px; padding: 0.75rem 1rem;
  margin-bottom: 0.5rem; border-left: 3px solid #6c63ff;
}
.agenda-item-header { display: flex; justify-content: space-between; align-items: center; }
.time-badge { background: rgba(108,99,255,0.15); color: #6c63ff; padding: 0.15rem 0.5rem; border-radius: 10px; font-size: 0.75rem; margin-left: 0.5rem; }
.vote-required-badge { background: rgba(255,152,0,0.15); color: #ff9800; padding: 0.15rem 0.5rem; border-radius: 10px; font-size: 0.75rem; margin-left: 0.5rem; }
.agenda-vote-section {
  margin-top: 0.5rem; padding: 0.6rem 0.75rem;
  background: rgba(108,99,255,0.06); border: 1px solid rgba(108,99,255,0.15);
  border-radius: 6px;
}

/* ── Timer ────────────────────────────────────────────────── */
.timer-display { font-family: 'SF Mono', 'Menlo', monospace; font-size: 1.1rem; color: #6c63ff; min-width: 60px; text-align: center; }
.timer-display.warning { color: #ff9800; }
.timer-display.expired { color: #ff6b6b; }
.timer-controls { display: flex; gap: 0.35rem; align-items: center; }
.timer-btn {
  background: none; border: 1px solid #2a2d37; color: #888;
  width: 28px; height: 28px; border-radius: 4px; cursor: pointer;
  font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.timer-btn:hover { border-color: #6c63ff; color: #6c63ff; }

/* ── Login Divider ───────────────────────────────────────── */
.divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0; color: #555; font-size: 0.85rem;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #2a2d37; }

/* ── AI Features ────────────────────────────────────────── */
.btn-ai {
  background: linear-gradient(135deg, #6c63ff, #9b59b6);
  color: white; padding: 0.6rem 1.25rem; border: none; border-radius: 4px;
  cursor: pointer; font-size: 0.9rem; transition: opacity 0.2s;
}
.btn-ai:hover { opacity: 0.85; }
.btn-ai.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.85rem; }
.btn-ai:disabled { opacity: 0.5; cursor: not-allowed; }

.ai-spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(108,99,255,0.3);
  border-top-color: #6c63ff;
  border-radius: 50%;
  animation: ai-spin 0.8s linear infinite;
  vertical-align: middle; margin-right: 0.5rem;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }

.ai-loading {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 1.5rem; color: #6c63ff; font-size: 0.95rem;
}

.ai-result-card {
  background: #0f1117; border: 1px solid #2a2d37;
  border-radius: 6px; padding: 1rem; margin-bottom: 0.75rem;
}
.ai-result-card h4 { color: #6c63ff; margin-bottom: 0.5rem; font-size: 0.95rem; }

.ai-confidence {
  display: inline-block; padding: 0.15rem 0.5rem;
  border-radius: 10px; font-size: 0.75rem; font-weight: 600;
}
.ai-confidence.high { background: rgba(76,175,80,0.15); color: #4caf50; }
.ai-confidence.medium { background: rgba(255,152,0,0.15); color: #ff9800; }
.ai-confidence.low { background: rgba(255,107,107,0.15); color: #ff6b6b; }

.ai-tag {
  display: inline-block; background: rgba(155,89,182,0.15); color: #bb86fc;
  padding: 0.1rem 0.5rem; border-radius: 10px; font-size: 0.75rem; margin-right: 0.25rem;
}

.ai-action-row {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem; background: #0f1117; border-radius: 6px; margin-bottom: 0.5rem;
  border-left: 3px solid #9b59b6;
}
.ai-action-row input[type="checkbox"] { width: auto; margin-top: 0.3rem; flex-shrink: 0; }
.ai-action-row .ai-action-content { flex: 1; min-width: 0; }
.ai-action-row .ai-action-content strong { display: block; margin-bottom: 0.25rem; }

.ai-input-toggle {
  display: flex; gap: 0; margin-bottom: 1rem;
  border: 1px solid #2a2d37; border-radius: 6px; overflow: hidden;
}
.ai-input-toggle button {
  flex: 1; padding: 0.6rem 1rem; background: #0f1117;
  border: none; color: #888; cursor: pointer; font-size: 0.9rem; font-family: inherit;
  transition: all 0.2s;
}
.ai-input-toggle button.active {
  background: rgba(108,99,255,0.15); color: #6c63ff;
}

.ai-provider-badge {
  display: inline-block; font-size: 0.75rem; color: #888;
  background: #1a1d27; padding: 0.15rem 0.5rem; border-radius: 10px;
  margin-top: 0.5rem;
}

.ai-draft-preview {
  background: #0f1117; border: 1px solid #2a2d37;
  border-radius: 6px; padding: 1rem; margin: 1rem 0;
  max-height: 400px; overflow-y: auto;
  white-space: pre-wrap; color: #ccc; line-height: 1.7; font-size: 0.9rem;
}

/* ── Compliance Panel ────────────────────────────────────── */
.compliance-panel {
  position: fixed; top: 0; right: 0;
  width: 420px; height: 100vh;
  background: #1a1d27; border-left: 1px solid #2a2d37;
  z-index: 150; display: flex; flex-direction: column;
  box-shadow: -4px 0 16px rgba(0,0,0,0.3);
}
.compliance-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; border-bottom: 1px solid #2a2d37;
}
.compliance-header h3 { color: #6c63ff; margin: 0; font-size: 1rem; }
.compliance-conversations { padding: 0.75rem; overflow-y: auto; flex: 1; }
.compliance-convo-item {
  padding: 0.5rem 0.75rem; background: #0f1117; border-radius: 6px;
  margin-bottom: 0.35rem; cursor: pointer;
  border-left: 3px solid transparent; transition: all 0.15s;
}
.compliance-convo-item:hover { border-left-color: #6c63ff; background: #161822; }
.compliance-convo-item .meta { font-size: 0.75rem; }
.compliance-chat {
  display: flex; flex-direction: column; flex: 1;
  padding: 0.75rem; overflow: hidden;
}
.compliance-messages { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
.compliance-msg {
  margin-bottom: 0.75rem; padding: 0.6rem 0.75rem;
  border-radius: 8px; font-size: 0.9rem; line-height: 1.6; max-width: 90%;
}
.compliance-msg.user {
  background: rgba(108,99,255,0.15); color: #e8e8e8;
  margin-left: auto; border-bottom-right-radius: 2px;
}
.compliance-msg.assistant {
  background: #0f1117; color: #ccc;
  border-bottom-left-radius: 2px; white-space: pre-wrap;
}
.compliance-input {
  display: flex; gap: 0.5rem; padding-top: 0.5rem;
  border-top: 1px solid #2a2d37;
}
.compliance-input textarea { flex: 1; resize: none; font-size: 0.9rem; }
.compliance-input .btn-ai { align-self: flex-end; padding: 0.5rem 1rem; }

/* ── Resolution Badge ────────────────────────────────────── */
.resolution-badge { background: rgba(255,193,7,0.15); color: #ffc107; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; }

/* ── AI Progress Overlay ────────────────────────────────── */
#aiProgressOverlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.ai-progress-box {
  background: #1e1e2e; border: 1px solid rgba(108,99,255,0.3); border-radius: 12px;
  padding: 2rem 3rem; text-align: center; min-width: 300px;
  box-shadow: 0 0 40px rgba(108,99,255,0.15);
}
.ai-progress-spinner {
  width: 48px; height: 48px; margin: 0 auto 1rem;
  border: 3px solid rgba(108,99,255,0.2); border-top-color: #6c63ff;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-progress-bar {
  width: 100%; height: 4px; background: rgba(108,99,255,0.15);
  border-radius: 2px; margin-top: 1rem; overflow: hidden;
}
.ai-progress-fill {
  height: 100%; width: 0; background: linear-gradient(90deg, #6c63ff, #a78bfa);
  border-radius: 2px; transition: width 0.5s ease;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0.75rem 1rem; }
  .nav-links { display: none; } /* TODO: hamburger menu */
  .container { padding: 0 1rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }
  .document-item { flex-direction: column; align-items: flex-start; }
  .doc-icon { display: none; }
  .compliance-panel { width: 100%; }
}
