/* === components.css === */

/* Feedback FAB */
.feedback-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.feedback-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(99,102,241,0.5);
}
.feedback-fab-group {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
}
.feedback-fab-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  margin-top: 16px;
}
.feedback-fab-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  white-space: nowrap;
  transition: all 0.15s;
}
.feedback-fab-option:hover {
  background: #f0f4ff;
  color: #6366f1;
  border-color: #6366f1;
}
.feedback-fab-option i {
  color: #6366f1;
}
.feedback-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  font-size: 0.6rem;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
}
/* ======================================================
   === SECTION: REMINDERS TAB ===
   ====================================================== */
.reminder-card {
  background: white; border-radius: 12px; padding: 16px 20px;
  border: 1px solid #e2e8f0; border-left: 5px solid;
  margin-bottom: 10px; display: flex; align-items: center; gap: 16px;
  transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.reminder-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.reminder-urgent { border-left-color: var(--red); }
.reminder-warn { border-left-color: var(--yellow); }
.reminder-ok { border-left-color: var(--green); }
.reminder-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.ri-urgent { background: #fef2f2; }
.ri-warn { background: #fffbeb; }
.ri-ok { background: #f0fdf4; }
.reminder-body { flex: 1; min-width: 0; }
.reminder-name { font-size: 0.88rem; font-weight: 800; color: #1e293b; }
.reminder-detail { font-size: 0.75rem; color: #64748b; margin-top: 2px; }
.reminder-days { font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.rd-urgent { background: #fef2f2; color: var(--red); }
.rd-warn { background: #fffbeb; color: #b45309; }

/* ======================================================
   === SECTION: DATA MANAGER TAB ===
   ====================================================== */
.dm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.dm-card {
  background: white; border-radius: 14px; padding: 20px 22px;
  border: 1px solid #e2e8f0; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.dm-card-wide { grid-column: span 2; }
.dm-card h3 {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: #94a3b8; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.dm-card h3 i { font-size: 0.8rem; color: var(--accent); }
.dm-stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dm-stat {
  flex: 1; min-width: 100px; text-align: center; padding: 14px 10px;
  background: #f8fafc; border-radius: 10px; border: 1px solid #e2e8f0;
}
.dm-stat-val { font-size: 1.5rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; color: #1e293b; }
.dm-stat-label { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: #94a3b8; margin-top: 3px; }
.dm-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.dm-table thead th {
  background: #f1f5f9; padding: 8px 12px; text-align: left; font-weight: 700;
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.8px;
  color: #64748b; border-bottom: 2px solid #e2e8f0;
}
.dm-table tbody td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #334155; }
.dm-table tbody tr:hover { background: #f8fafc; }
.dm-type-badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
}
.dm-type-json { background: #dbeafe; color: #1d4ed8; }
.dm-type-xlsx { background: #d1fae5; color: #047857; }
.dm-type-manual { background: #fef3c7; color: #92400e; }
.dm-btn {
  padding: 5px 12px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 0.7rem; font-weight: 700; font-family: inherit; transition: all 0.15s;
}
.dm-btn-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.dm-btn-danger:hover { background: #fee2e2; box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }
.dm-btn-info { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.dm-btn-info:hover { background: #dbeafe; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.dm-btn-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.dm-btn-success:hover { background: #dcfce7; }
.dm-batch-preview {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 14px; margin-top: 8px; max-height: 200px; overflow-y: auto;
  font-size: 0.72rem; color: #475569;
}
.dm-batch-preview table { width: 100%; border-collapse: collapse; }
.dm-batch-preview th, .dm-batch-preview td { padding: 4px 8px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.dm-batch-preview th { font-weight: 700; font-size: 0.62rem; text-transform: uppercase; color: #94a3b8; }
.dm-health-bar {
  height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; margin-top: 6px;
}
.dm-health-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.dm-health-good { background: linear-gradient(90deg, #10b981, #34d399); }
.dm-health-warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.dm-health-bad { background: linear-gradient(90deg, #ef4444, #f87171); }
.dm-dup-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; margin-bottom: 8px;
}
.dm-dup-item .dup-names { flex: 1; font-weight: 600; color: #92400e; font-size: 0.78rem; }
.dm-dup-item .dup-source { font-size: 0.65rem; color: #b45309; font-weight: 700; }
.dm-empty-state {
  text-align: center; padding: 40px 20px; color: #94a3b8;
}
.dm-empty-state i { font-size: 2rem; margin-bottom: 10px; display: block; opacity: 0.4; }
.dm-empty-state p { font-size: 0.82rem; }
.dm-dropbox-banner {
  background: linear-gradient(135deg, #0061ff12, #0061ff08);
  border: 1px dashed #0061ff44; border-radius: 12px;
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  margin-top: 16px;
}
.dm-dropbox-banner i { font-size: 1.4rem; color: #0061ff; }
.dm-dropbox-banner .db-text { font-size: 0.78rem; color: #334155; }
.dm-dropbox-banner .db-text strong { color: #0061ff; }

/* ======================================================
   === SECTION: CLOUD SYNC INDICATOR (sidebar) ===
   ====================================================== */
.sync-status-bar {
  padding: 8px 14px; margin: 8px 10px 4px;
  background: var(--sidebar-card); border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.68rem; font-weight: 600; color: var(--text-muted);
  border-left: 3px solid var(--green);
  transition: all 0.3s;
}
.sync-status-bar.syncing { border-left-color: var(--accent); }
.sync-status-bar.error { border-left-color: var(--red); }
.sync-status-bar.offline { border-left-color: var(--yellow); }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sync-dot.online { background: var(--green); box-shadow: 0 0 6px rgba(16,185,129,0.5); }
.sync-dot.syncing { background: var(--accent); animation: pulse-dot 1s infinite; }
.sync-dot.error { background: var(--red); }
.sync-dot.offline { background: var(--yellow); animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.sync-btn-mini {
  margin-left: auto; background: none; border: 1px solid rgba(255,255,255,0.1);
  color: var(--slate); border-radius: 5px; padding: 2px 8px; cursor: pointer;
  font-size: 0.62rem; font-weight: 700; font-family: inherit; transition: all 0.2s;
}
.sync-btn-mini:hover { border-color: var(--accent); color: var(--accent); }

/* ======================================================
   === SECTION: OFFLINE BANNER ===
   ====================================================== */
.offline-banner {
  display: none; position: fixed; top: 0; left: 280px; right: 0;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: white; padding: 6px 20px; font-size: 0.72rem; font-weight: 700;
  text-align: center; z-index: 9998; letter-spacing: 0.5px;
  box-shadow: 0 2px 12px rgba(245,158,11,0.4);
}
.offline-banner.visible { display: block; }
.offline-banner i { margin-right: 6px; }

/* ======================================================
   === SECTION: DEBUG CONSOLE ===
   ====================================================== */
.debug-console {
  display: none; position: fixed; bottom: 0; left: 280px; right: 0;
  height: 280px; z-index: 9990;
  background: #0d1117; border-top: 2px solid var(--accent);
  font-family: 'JetBrains Mono', monospace;
  flex-direction: column;
}
.debug-console.open { display: flex; }
.debug-header {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px; background: #161b22; border-bottom: 1px solid #21262d;
  flex-shrink: 0;
}
.debug-header-title { font-size: 0.68rem; font-weight: 700; color: #58a6ff; letter-spacing: 1px; text-transform: uppercase; }
.debug-header-close {
  margin-left: auto; background: none; border: none; color: #8b949e;
  cursor: pointer; font-size: 0.85rem; padding: 2px 6px;
}
.debug-header-close:hover { color: #f85149; }
.debug-filter-bar { display: flex; gap: 4px; }
.debug-filter-btn {
  padding: 2px 8px; border-radius: 4px; font-size: 0.6rem; font-weight: 700;
  border: 1px solid #30363d; background: transparent; color: #8b949e; cursor: pointer;
  font-family: inherit;
}
.debug-filter-btn.active { background: #21262d; color: #e6edf3; border-color: #58a6ff; }
.debug-log-area {
  flex: 1; overflow-y: auto; padding: 8px 14px;
  font-size: 0.65rem; line-height: 1.6; color: #c9d1d9;
  scrollbar-width: thin; scrollbar-color: #21262d transparent;
}
.debug-log-area::-webkit-scrollbar { width: 5px; }
.debug-log-area::-webkit-scrollbar-thumb { background: #21262d; border-radius: 3px; }
.dlog { padding: 2px 0; border-bottom: 1px solid #21262d11; }
.dlog-time { color: #484f58; margin-right: 8px; }
.dlog-tag { font-weight: 700; padding: 1px 5px; border-radius: 3px; margin-right: 6px; font-size: 0.58rem; }
.dlog-tag.api { background: #0d419d; color: #79c0ff; }
.dlog-tag.sync { background: #0c5227; color: #56d364; }
.dlog-tag.err { background: #67060c; color: #ff7b72; }
.dlog-tag.warn { background: #4d2d00; color: #e3b341; }
.dlog-tag.occ { background: #3d1d6b; color: #d2a8ff; }
.dlog-tag.net { background: #1a3a2a; color: #7ee787; }
.dlog-payload { color: #484f58; margin-left: 20px; font-size: 0.58rem; word-break: break-all; }
.debug-toggle-btn {
  position: fixed; bottom: 10px; right: 14px; z-index: 9985;
  width: 34px; height: 34px; border-radius: 8px;
  background: #161b22; border: 1px solid #30363d; color: #8b949e;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.9rem; transition: all 0.2s;
}
.debug-toggle-btn:hover { border-color: #58a6ff; color: #58a6ff; }

/* ======================================================
   === SECTION: SYNC AUDIT LOG STYLES ===
   ====================================================== */
.sync-audit-table { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
.sync-audit-table th {
  text-align: left; font-size: 0.62rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.8px; color: #64748b; padding: 8px 10px; border-bottom: 2px solid #e2e8f0;
}
.sync-audit-table td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.sync-audit-dir { font-weight: 700; font-size: 0.62rem; padding: 2px 8px; border-radius: 4px; }
.sync-audit-push { background: #dbeafe; color: #1d4ed8; }
.sync-audit-pull { background: #d1fae5; color: #065f46; }
.sync-audit-err { background: #fee2e2; color: #991b1b; }
.dm-sync-controls {
  display: flex; gap: 8px; margin-bottom: 14px; align-items: center; flex-wrap: wrap;
}
.dm-sync-status {
  font-size: 0.7rem; color: #64748b; margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
}

/* ======================================================
   === SECTION: WHITE PAPER LIBRARY ===
   ====================================================== */
.wp-library-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px; flex-wrap: wrap; gap: 14px;
}
.wp-library-title { font-size: 1.3rem; font-weight: 800; color: #0f172a; letter-spacing: -0.3px; }
.wp-library-sub { font-size: 0.78rem; color: #64748b; margin-top: 2px; }
.wp-toolbar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.wp-search-box {
  display: flex; align-items: center; gap: 6px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 12px;
  font-size: 0.8rem; min-width: 200px;
}
.wp-search-box input {
  border: none; outline: none; background: transparent; font-family: inherit;
  font-size: 0.8rem; width: 100%; color: #334155;
}
.wp-category-pills {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px;
}
.wp-cat-pill {
  padding: 5px 14px; border-radius: 20px; font-size: 0.72rem; font-weight: 700;
  border: 1px solid #e2e8f0; background: #fff; color: #64748b;
  cursor: pointer; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px;
}
.wp-cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.wp-cat-pill.active { background: var(--accent); color: white; border-color: var(--accent); }
.wp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.wp-card {
  background: #fff; border-radius: 12px; border: 1px solid #e2e8f0;
  padding: 0; overflow: hidden; transition: all 0.25s; cursor: default;
  display: flex; flex-direction: column;
}
.wp-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(59,130,246,0.12); transform: translateY(-2px); }
.wp-card-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 16px 18px; position: relative; overflow: hidden;
}
.wp-card-header::after {
  content: ''; position: absolute; top: -20px; right: -20px; width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.wp-card-category {
  font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
  color: #60a5fa; margin-bottom: 6px;
}
.wp-card-title {
  font-size: 0.9rem; font-weight: 700; color: #f1f5f9; line-height: 1.3;
}
.wp-card-body { padding: 14px 18px; flex: 1; display: flex; flex-direction: column; }
.wp-card-filename {
  font-size: 0.68rem; color: #94a3b8; font-family: 'JetBrains Mono', monospace;
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.wp-card-filename i { color: #ef4444; font-size: 0.7rem; }
.wp-card-industries {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px;
}
.wp-card-ind-tag {
  font-size: 0.6rem; font-weight: 600; padding: 2px 8px; border-radius: 4px;
  background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd;
}
.wp-card-actions {
  display: flex; gap: 6px; margin-top: auto; padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.wp-btn {
  flex: 1; padding: 8px 10px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 0.72rem; font-weight: 700; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s;
}
.wp-btn-view { background: #eff6ff; color: #1d4ed8; }
.wp-btn-view:hover { background: #dbeafe; }
.wp-btn-download { background: #f0fdf4; color: #15803d; }
.wp-btn-download:hover { background: #dcfce7; }
.wp-btn-email { background: #fef3c7; color: #92400e; }
.wp-btn-email:hover { background: #fde68a; }
.wp-card-status {
  font-size: 0.62rem; font-weight: 700; padding: 3px 8px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 4px;
}
.wp-status-cached { background: #d1fae5; color: #065f46; }
.wp-status-cloud { background: #dbeafe; color: #1e40af; }
.wp-status-unavailable { background: #f1f5f9; color: #94a3b8; }

/* White Paper Viewer Modal */
.wp-viewer-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  z-index: 9999; display: none; flex-direction: column;
}
.wp-viewer-overlay.active { display: flex; }
.wp-viewer-toolbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  background: #0f172a; border-bottom: 1px solid #1e293b; flex-shrink: 0;
}
.wp-viewer-title {
  font-size: 0.88rem; font-weight: 700; color: #f1f5f9;
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wp-viewer-btn {
  padding: 6px 14px; border-radius: 6px; border: 1px solid #334155;
  background: #1e293b; color: #e2e8f0; font-size: 0.72rem; font-weight: 700;
  cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}
.wp-viewer-btn:hover { background: #334155; border-color: #475569; }
.wp-viewer-btn-close { background: #dc2626; border-color: #dc2626; color: white; }
.wp-viewer-btn-close:hover { background: #b91c1c; }
.wp-viewer-frame { flex: 1; border: none; background: #1e293b; }
.wp-viewer-loading {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: #94a3b8; font-size: 0.88rem;
}
.wp-viewer-spinner {
  width: 36px; height: 36px; border: 3px solid #334155; border-top-color: #3b82f6;
  border-radius: 50%; animation: wpSpin 0.7s linear infinite;
}
@keyframes wpSpin { to { transform: rotate(360deg); } }

/* Email Attachment Picker */
.wp-attach-section {
  border-top: 1px solid #e2e8f0; padding-top: 10px; margin-top: 8px;
}
.wp-attach-header {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 6px 0; user-select: none;
}
.wp-attach-header i.fa-chevron-right { transition: transform 0.2s; font-size: 0.6rem; color: #94a3b8; }
.wp-attach-header.open i.fa-chevron-right { transform: rotate(90deg); }
.wp-attach-label {
  font-size: 0.72rem; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: 0.5px;
}
.wp-attach-count {
  font-size: 0.6rem; font-weight: 800; background: var(--accent); color: white;
  padding: 1px 7px; border-radius: 10px; min-width: 18px; text-align: center;
  display: none;
}
.wp-attach-count.visible { display: inline-block; }
.wp-attach-body { display: none; padding: 8px 0; }
.wp-attach-body.open { display: block; }
.wp-attach-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; margin: 3px 4px 3px 0; border-radius: 6px;
  font-size: 0.7rem; font-weight: 600; cursor: pointer;
  border: 1px solid #e2e8f0; background: #f8fafc; color: #475569;
  transition: all 0.2s; user-select: none;
}
.wp-attach-chip:hover { border-color: #93c5fd; background: #eff6ff; }
.wp-attach-chip.selected {
  border-color: #3b82f6; background: #dbeafe; color: #1d4ed8;
}
.wp-attach-chip i { font-size: 0.6rem; }
.wp-attach-note {
  font-size: 0.65rem; color: #94a3b8; font-style: italic; margin-top: 6px;
}

/* ======================================================
   === SECTION: LEAD LOCK OVERLAY STYLES ===
   ====================================================== */
.lead-card.is-locked {
  opacity: 0.62;
  cursor: not-allowed;
  filter: grayscale(0.35);
}
.lead-card.is-locked .lead-header { pointer-events: none; }
.lead-card.is-locked .lead-actions { pointer-events: none; opacity: 0.5; }
.lead-card.is-locked:hover { transform: none; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }

.lock-overlay {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 8px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 8px;
  font-size: 0.7rem; font-weight: 700; color: #92400e;
  margin: 0 20px 10px; cursor: default;
  box-shadow: 0 2px 6px rgba(245,158,11,0.15);
}
.lock-overlay i { font-size: 0.85rem; color: #d97706; }
.lock-overlay .lock-name { font-weight: 800; color: #78350f; }
.lock-overlay .lock-time { margin-left: auto; font-size: 0.62rem; color: #b45309; font-family: 'JetBrains Mono', monospace; }
.lock-overlay .lock-request-btn {
  margin-left: 8px; padding: 2px 8px;
  background: #f59e0b; color: #fff; border: none; border-radius: 5px;
  font-size: 0.62rem; font-weight: 800; cursor: pointer;
  font-family: inherit; transition: background 0.15s;
}
.lock-overlay .lock-request-btn:hover { background: #d97706; }

/* Lock manager table in data manager */
.lock-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.lock-table th { text-align: left; padding: 8px 12px; background: #f8fafc; color: #64748b; font-weight: 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #e2e8f0; }
.lock-table td { padding: 8px 12px; border-bottom: 1px solid #f1f5f9; color: #334155; vertical-align: middle; }
.lock-table tr:last-child td { border-bottom: none; }
.lock-release-btn { padding: 3px 10px; border-radius: 6px; border: 1px solid #fca5a5; background: #fff1f2; color: #dc2626; font-size: 0.68rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.lock-release-btn:hover { background: #fee2e2; }

/* ======================================================
   === SECTION: BULK FOLLOW-UP MANAGER PANEL ===
   ====================================================== */

/* Floating panel */
.bfp-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 330px;
  background: white;
  border-left: 1px solid #e2e8f0;
  box-shadow: -6px 0 32px rgba(0,0,0,0.12);
  z-index: 8500;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.bfp-panel.bfp-open {
  transform: translateX(0);
}

/* Header */
.bfp-header {
  background: var(--sidebar-mid);
  color: white;
  padding: 16px 18px 14px;
  flex-shrink: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.bfp-header-inner { flex: 1; min-width: 0; }
.bfp-title {
  font-size: 0.85rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; display: flex; align-items: center; gap: 8px;
}
.bfp-title i { color: var(--yellow); }
.bfp-subtitle { font-size: 0.68rem; color: #94a3b8; margin-top: 3px; }
.bfp-close-btn {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(255,255,255,0.1); border: none; cursor: pointer;
  color: #94a3b8; font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s;
}
.bfp-close-btn:hover { background: rgba(255,255,255,0.2); color: white; }

/* Toolbar row */
.bfp-toolbar {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; background: #fafafa;
}
.bfp-sel-info { font-size: 0.72rem; color: #64748b; font-weight: 600; }
.bfp-sel-info strong { color: #1e293b; }
.bfp-sel-btns { display: flex; gap: 5px; }
.bfp-sel-btn {
  padding: 4px 9px; border-radius: 6px;
  font-size: 0.68rem; font-weight: 700;
  border: 1px solid #e2e8f0; background: white; color: #64748b;
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.bfp-sel-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Lead list */
.bfp-list {
  flex: 1; overflow-y: auto; padding: 10px 12px;
  scrollbar-width: thin; scrollbar-color: #e2e8f0 transparent;
}
.bfp-list::-webkit-scrollbar { width: 4px; }
.bfp-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.bfp-empty {
  text-align: center; padding: 40px 20px; color: #94a3b8;
}

.bfp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px; margin-bottom: 5px;
  border: 1.5px solid #f1f5f9; cursor: pointer;
  transition: all 0.15s; background: white;
}
.bfp-row:hover { border-color: #cbd5e1; background: #f8fafc; }
.bfp-row-checked { border-color: var(--accent) !important; background: #eff6ff !important; }

.bfp-checkbox {
  width: 15px; height: 15px; cursor: pointer; flex-shrink: 0;
  accent-color: var(--accent);
}
.bfp-row-icon { font-size: 0.9rem; flex-shrink: 0; line-height: 1; }
.bfp-row-body { flex: 1; min-width: 0; }
.bfp-row-name {
  display: block; font-size: 0.8rem; font-weight: 700;
  color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bfp-row-meta { display: block; font-size: 0.68rem; color: #94a3b8; margin-top: 1px; }

/* Date picker sub-section */
.bfp-datepicker {
  padding: 12px 14px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
  flex-shrink: 0;
}
.bfp-datepicker-label {
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.7px; color: #64748b; margin-bottom: 7px; display: block;
}
.bfp-date-row { display: flex; gap: 6px; align-items: center; }
.bfp-date-input {
  flex: 1; padding: 8px 10px; border: 2px solid #e2e8f0; border-radius: 8px;
  font-family: inherit; font-size: 0.82rem; color: #1e293b; outline: none;
  transition: border-color 0.2s;
}
.bfp-date-input:focus { border-color: var(--accent); }

/* Action bar */
.bfp-action-bar {
  padding: 12px 14px;
  border-top: 2px solid #f1f5f9;
  display: flex; flex-direction: column; gap: 7px;
  flex-shrink: 0;
}
.bfp-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 14px; border-radius: 9px;
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  border: none; cursor: pointer; font-family: inherit; transition: all 0.2s;
  width: 100%;
}
.bfp-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.bfp-btn-reschedule {
  background: var(--accent); color: white;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.bfp-btn-reschedule:not(:disabled):hover { filter: brightness(1.1); transform: translateY(-1px); }
.bfp-btn-dismiss {
  background: #f8fafc; color: #64748b;
  border: 1.5px solid #e2e8f0;
}
.bfp-btn-dismiss:not(:disabled):hover { border-color: var(--red); color: var(--red); background: #fff1f2; }

/* Trigger button — injected next to Reminders tab heading */
.bfp-trigger-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 8px;
  background: var(--sidebar-mid); color: white;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  border: none; cursor: pointer; font-family: inherit; transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.bfp-trigger-btn:hover { background: var(--accent); box-shadow: 0 4px 12px var(--accent-glow); }
.bfp-trigger-btn i { font-size: 0.75rem; }

/* FAB fallback (shown if no Reminders header anchor found) */
.bfp-fab {
  position: fixed; bottom: 80px; left: 20px; z-index: 8400;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--sidebar-mid); color: white;
  border: none; cursor: pointer; font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  display: none; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.bfp-fab:hover { background: var(--accent); transform: scale(1.08); }
.bfp-fab.bfp-fab-visible { display: flex; }

/* ── Gmail OAuth styles ──────────────────────────────── */
.gmail-auth-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 7px;
  background: #1e293b; font-size: 0.71rem; margin-bottom: 6px;
}
.gmail-auth-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: #ef4444;
  transition: background 0.3s;
}
.gmail-auth-dot.authed { background: #10b981; }
.gmail-auth-label { color: #94a3b8; flex: 1; }
.gmail-auth-setup-btn {
  background: none; border: 1px solid #334155; color: #94a3b8;
  border-radius: 5px; font-size: 0.68rem; padding: 2px 8px; cursor: pointer;
}
.gmail-auth-setup-btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-crm-gmail {
  background: #ea4335 !important; color: #fff !important;
  border: none !important; display: flex; align-items: center; gap: 6px;
}
.btn-crm-gmail:hover { background: #c5352a !important; }
.btn-crm-gmail:disabled { background: #4b5563 !important; opacity: 0.6; cursor: not-allowed; }
