/* ── Prospect Tracker — tracker.css ───────────────────────────────────────── */

/* Reset within scope */
.pt-wrap * { box-sizing: border-box; }

.pt-wrap {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 60px;
  color: #1a1a2e;
}

/* ── Login card ───────────────────────────────────────────────────────────── */
.pt-login-card {
  max-width: 420px;
  margin: 60px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  overflow: hidden;
}

.pt-login-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 40px 36px 32px;
  text-align: center;
}

.pt-login-header .pt-logo {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.pt-login-header h2 {
  color: #fff;
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
}

.pt-login-header p {
  color: rgba(255,255,255,0.65);
  margin: 0;
  font-size: 14px;
}

.pt-login-form {
  padding: 32px 36px 36px;
}

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.pt-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin: 0 36px 8px;
}

.pt-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.pt-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.pt-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
}

/* ── Fields ───────────────────────────────────────────────────────────────── */
.pt-field {
  margin-bottom: 18px;
}

.pt-field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pt-field input,
.pt-field select,
.pt-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  color: #1a1a2e;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  font-family: inherit;
}

.pt-field input:focus,
.pt-field select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.pt-field .req { color: #e63946; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.pt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s, opacity .2s;
  font-family: inherit;
  text-decoration: none;
}

.pt-btn:active { transform: scale(0.98); }

.pt-btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px;
  margin-top: 6px;
}

.pt-btn-primary:hover { background: linear-gradient(135deg, #4338ca, #4f46e5); }

.pt-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.pt-btn-success {
  background: #16a34a;
  color: #fff;
}

.pt-btn-success:hover { background: #15803d; }

.pt-btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.pt-btn-sm:hover { background: #e5e7eb; }

/* ── App header ───────────────────────────────────────────────────────────── */
.pt-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
  border-bottom: 2px solid #f3f4f6;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.pt-app-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pt-app-logo { font-size: 28px; }

.pt-app-title {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.4px;
}

.pt-app-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pt-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.pt-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.pt-logout-btn {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  color: #6b7280;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

.pt-logout-btn:hover { border-color: #e63946; color: #e63946; }

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.pt-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 24px;
  overflow-x: auto;
}

.pt-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  font-family: inherit;
}

.pt-tab.active,
.pt-tab:hover {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
}

.pt-tab-content { display: none; }
.pt-tab-content.active { display: block; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.pt-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.pt-card h3 {
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
}

.pt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pt-card-header h3 { margin: 0; }

/* ── Grid ─────────────────────────────────────────────────────────────────── */
.pt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

@media (max-width: 600px) {
  .pt-grid-2 { grid-template-columns: 1fr; }
  .pt-card { padding: 20px 18px; }
}

/* ── Follow-up preview ────────────────────────────────────────────────────── */
.pt-followup-preview {
  background: #f8f9ff;
  border: 1.5px solid #ddd6fe;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 20px;
}

.pt-followup-preview h4 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #4f46e5;
  font-weight: 700;
}

.pt-fu-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid #ede9fe;
  color: #374151;
}

.pt-fu-row:last-child { border-bottom: none; }

/* ── Prospect table ───────────────────────────────────────────────────────── */
.pt-table-wrap { overflow-x: auto; }

.pt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.pt-table th {
  background: #f8fafc;
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
}

.pt-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: middle;
}

.pt-table tr:hover td { background: #fafbff; }

/* ── Status badges ────────────────────────────────────────────────────────── */
.pt-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.pt-status-pending       { background: #fef3c7; color: #92400e; }
.pt-status-notified      { background: #dbeafe; color: #1e40af; }
.pt-status-taken         { background: #dcfce7; color: #166534; }
.pt-status-na            { background: #f3f4f6; color: #9ca3af; }

/* ── Follow-up action card ────────────────────────────────────────────────── */
.pt-followup-item {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-left: 4px solid #4f46e5;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pt-followup-item.due-today { border-left-color: #e63946; }
.pt-followup-item.overdue   { border-left-color: #f59e0b; }

.pt-followup-info h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.pt-followup-info p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.pt-followup-info a { color: #0077b5; font-weight: 600; text-decoration: none; }

.pt-followup-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Loading / empty ──────────────────────────────────────────────────────── */
.pt-loading {
  text-align: center;
  padding: 40px;
  color: #9ca3af;
  font-size: 14px;
}

.pt-empty {
  text-align: center;
  padding: 48px 24px;
  color: #9ca3af;
}

.pt-empty span { font-size: 40px; display: block; margin-bottom: 12px; }

/* ── LinkedIn tag ─────────────────────────────────────────────────────────── */
.pt-linkedin {
  color: #0077b5;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
}

/* ── Toast notification ───────────────────────────────────────────────────── */
#pt-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #1a1a2e;
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 99999;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  max-width: 320px;
}

#pt-toast.show {
  opacity: 1;
  transform: translateY(0);
}

#pt-toast.success { border-left: 4px solid #16a34a; }
#pt-toast.error   { border-left: 4px solid #e63946; }

/* ── Follow-up Sub-tabs (Today / Overdue) ─────────────────────────────────── */
.pt-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 0;
}

.pt-subtab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  font-family: inherit;
  white-space: nowrap;
}

.pt-subtab.active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
}

.pt-subtab:hover { color: #4f46e5; }

/* The count bubble on each sub-tab */
.pt-subtab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #e0e7ff;
  color: #4f46e5;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.pt-subtab-count-overdue {
  background: #fef3c7;
  color: #d97706;
}

.pt-subtab.active .pt-subtab-count {
  background: #4f46e5;
  color: #fff;
}

.pt-subtab.active .pt-subtab-count-overdue {
  background: #f59e0b;
  color: #fff;
}

/* Sub-tab content panels */
.pt-subtab-content { display: none; }
.pt-subtab-content.active { display: block; }
