/* style.css */
/* TheProfiler Executive Dark UI + 3-Page Print-Ready White PDF Styles */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Malayalam:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #09090b;
  --bg-card: #121215;
  --bg-elevated: #18181c;
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', 'Noto Sans Malayalam', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.pro-card {
  background: linear-gradient(145deg, #141418 0%, #0e0e11 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-card-hover:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -15px rgba(212, 175, 55, 0.12);
}

.text-gold-gradient {
  background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa8220 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gold {
  background: linear-gradient(135deg, #e5c158 0%, #c59b27 100%);
  color: #09090b;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.35);
}

.sector-card.selected {
  border-color: var(--gold-primary);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.12) 0%, #121215 100%);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
}

.option-btn {
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.option-btn:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: #1a1a20;
}

.option-btn.active {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
}

.report-tab {
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.report-tab:hover {
  color: var(--text-main);
}

.report-tab.active {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.06);
}

.fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   3-PAGE A4 PRINT-READY CRISP WHITE PDF DOSSIER STYLES
   ========================================================= */
#pdf-dossier-template {
  width: 794px;
  background: #ffffff;
  color: #111827;
  font-family: 'Plus Jakarta Sans', 'Noto Sans Malayalam', sans-serif;
  box-sizing: border-box;
}

.pdf-page {
  width: 794px;
  height: 1122px; /* Exact A4 proportion (1 : 1.414) */
  padding: 40px 48px;
  box-sizing: border-box;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.pdf-header-bar {
  border-bottom: 2px solid #111827;
  padding-bottom: 14px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.pdf-sub-header {
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #64748b;
}

.pdf-badge-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #b48a1e;
  padding: 16px 20px;
  border-radius: 4px;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12.5px;
}

.pdf-table th {
  background-color: #111827;
  color: #ffffff;
  text-align: left;
  padding: 10px 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.pdf-table td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  vertical-align: top;
  line-height: 1.45;
}

.pdf-table tr:nth-child(even) td {
  background-color: #f8fafc;
}

.pdf-footer-bar {
  border-top: 1px solid #cbd5e1;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: #64748b;
}

.pdf-seal {
  border: 1.5px solid #b48a1e;
  background: #fffbeb;
  color: #78350f;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.4;
}