/* ═══════════════════════════════════════════════
   RevoText Reporter Portal — Styles
   Themed to match dev.revotext.com
   ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "DM Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: #f7f8fc;
  color: #1a202c;
  min-height: 100vh;
}

/* ── Header ── */
.header {
  background: #ffffff;
  color: #1a202c;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e8ecf1;
}
.header-left { display: flex; align-items: center; gap: 14px; }
.header-brand { display: flex; flex-direction: column; line-height: 1.2; }
.header-brand-name { font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }
.header-brand-sub { font-size: 11px; color: #8892a4; font-weight: 500; }
.header-right { display: flex; align-items: center; gap: 8px; }
.header-nav-link {
  color: #4a5568;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.header-nav-link:hover { background: #f0f3f8; color: #224e99; }
.header-nav-link.active { background: #e8eef7; color: #224e99; font-weight: 600; }
.header-nav-link.support-link {
  background: #224e99;
  border: none;
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
}
.header-nav-link.support-link:hover { background: #1a3d7a; }
.avatar {
  width: 34px; height: 34px;
  background: #224e99;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #ffffff;
  border: 2px solid #e8ecf1;
}

/* ── ASSIST Pill ── */
.header-assist-pill {
  display: inline-block;
  background: #224e99;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 16px;
}

/* ── Status Badge ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(72, 187, 120, 0.15);
  border: 1px solid rgba(72, 187, 120, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #276749;
}
.status-dot {
  width: 8px; height: 8px;
  background: #48bb78;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ── Main Layout ── */
.main { max-width: 1200px; margin: 0 auto; padding: 24px; }

/* ── Welcome Banner ── */
.welcome-banner {
  background: linear-gradient(135deg, #224e99 0%, #3a6ab8 60%, #5a8ad4 100%);
  border-radius: 16px;
  padding: 32px 40px;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.welcome-banner::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.welcome-banner h1 { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.welcome-banner p { opacity: 0.85; font-size: 14px; }
.welcome-banner .status-badge {
  margin-top: 12px;
  background: rgba(72, 187, 120, 0.2);
  border-color: rgba(72, 187, 120, 0.4);
  color: #c6f6d5;
}
.welcome-banner .status-dot { background: #68d391; }

/* ── Demo Banner ── */
.demo-banner {
  background: #fffff0;
  border: 1px solid #fefcbf;
  border-left: 4px solid #d69e2e;
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #975a16;
}
.demo-banner strong { color: #744210; }
.demo-banner code {
  background: #fefcbf;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ── Cards ── */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #e8ecf1;
}
.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e8ecf1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #224e99;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header .icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.card-header .action-btn {
  font-size: 12px;
  color: #224e99;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  background: #e8eef7;
  transition: all 0.2s;
}
.card-header .action-btn:hover { background: #d0ddef; }
.card-body { padding: 20px 24px; }

/* Scheduling Card */
.card.scheduling-card {
  border-left: 4px solid #224e99;
  box-shadow: 0 2px 8px rgba(34, 78, 153, 0.08), 0 1px 3px rgba(0,0,0,0.04);
}
.card.scheduling-card .card-header { background: linear-gradient(to right, #f0f4fb, #ffffff); }

/* Pending Card */
.card.pending-card {
  border-left: 4px solid #d69e2e;
  box-shadow: 0 2px 8px rgba(214, 158, 46, 0.08), 0 1px 3px rgba(0,0,0,0.04);
}
.card.pending-card .card-header { background: linear-gradient(to right, #fffff0, #ffffff); }

/* Completed Card */
.card.completed-card { border-left: 4px solid #48bb78; }
.card.completed-card .card-header { background: linear-gradient(to right, #f0fff4, #ffffff); }

/* ── Badges ── */
.new-badge, .count-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
  color: white;
}
.new-badge { background: #224e99; }
.count-badge { background: #d69e2e; }

/* ── Section Divider ── */
.section-divider { height: 1px; background: #e8ecf1; margin: 8px 0 24px; }
.section-desc { font-size: 13px; color: #718096; margin-bottom: 16px; line-height: 1.5; }

/* ── Table ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  color: #4a5568;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f7f8fc;
  border-bottom: 2px solid #e8ecf1;
}
.data-table tbody td { padding: 12px 14px; border-bottom: 1px solid #edf2f7; color: #1a202c; }
.data-table tbody tr:hover { background: #f7f8fc; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ── Status Pills ── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.pill-pending { background: #fefcbf; color: #975a16; }
.pill-approved, .pill-accepted, .pill-completed { background: #c6f6d5; color: #276749; }
.pill-paid { background: #bee3f8; color: #2a4365; }
.pill-offered { background: #e9d8fd; color: #553c9a; }
.pill-declined { background: #fed7d7; color: #9b2c2c; }
.pill-expired { background: #e2e8f0; color: #718096; }
.pill-overdue { background: #fed7d7; color: #9b2c2c; }
.pill-due-soon { background: #fefcbf; color: #975a16; }
.pill-in-progress { background: #fefcbf; color: #975a16; }

/* ── Action Buttons ── */
.btn-sm {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-accept { background: #224e99; color: white; }
.btn-accept:hover { background: #1a3d7a; }
.btn-decline { background: white; color: #9b2c2c; border: 1px solid #feb2b2; }
.btn-decline:hover { background: #fff5f5; }

/* ── Revo Link ── */
.revo-link {
  color: #224e99;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.revo-link:hover { text-decoration: underline; }

/* ── Due Dates ── */
.due-date { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.due-date.overdue { color: #c53030; }
.due-date.due-soon { color: #d69e2e; }
.due-date.on-track { color: #718096; }

/* ── Calendar ── */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 12px; }
.cal-header { text-align: center; font-size: 11px; font-weight: 600; color: #718096; text-transform: uppercase; padding: 8px 4px; }
.cal-day { text-align: center; padding: 8px 4px; font-size: 13px; border-radius: 10px; cursor: default; position: relative; color: #4a5568; }
.cal-day.other-month { color: #cbd5e0; }
.cal-day.today { background: #224e99; color: white; font-weight: 700; box-shadow: 0 2px 6px rgba(34, 78, 153, 0.3); }
.cal-day.has-job::after { content: ''; display: block; width: 6px; height: 6px; background: #48bb78; border-radius: 50%; margin: 2px auto 0; }
.cal-day.today.has-job::after { background: #c6f6d5; }
.cal-day.has-job-offered::after { content: ''; display: block; width: 6px; height: 6px; background: #805ad5; border-radius: 50%; margin: 2px auto 0; }
.today-job-banner {
  background: linear-gradient(135deg, #e8eef7 0%, #e9d8fd 100%);
  border: 1px solid #d0ddef;
  border-radius: 12px;
  padding: 14px 20px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.today-label { background: #224e99; color: white; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.today-details { flex: 1; font-size: 13px; color: #1a202c; line-height: 1.5; }
.today-details strong { color: #224e99; }
.today-action { font-size: 12px; color: #224e99; font-weight: 600; text-decoration: none; padding: 6px 14px; border-radius: 8px; background: white; border: 1px solid #d0ddef; white-space: nowrap; transition: all 0.2s; }
.today-action:hover { background: #e8eef7; }
.cal-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 11px; color: #718096; }
.cal-legend-item { display: flex; align-items: center; gap: 5px; }
.cal-legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.cal-month-nav { display: flex; align-items: center; gap: 12px; }
.cal-month-nav button { background: #e8eef7; border: none; border-radius: 8px; padding: 4px 10px; cursor: pointer; color: #224e99; font-weight: 600; font-size: 14px; }
.cal-month-nav button:hover { background: #d0ddef; }
.cal-month-label { font-size: 15px; font-weight: 700; color: #224e99; min-width: 140px; text-align: center; }

/* ── File Drop Zones ── */
.job-picker-label { font-size: 13px; font-weight: 600; color: #4a5568; margin-bottom: 8px; display: block; }
.job-picker-select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e8ecf1;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1a202c;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}
.job-picker-select:focus { outline: none; border-color: #224e99; box-shadow: 0 0 0 3px rgba(34, 78, 153, 0.1); }
.job-picker-selected {
  margin-top: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #e8eef7 0%, #e9d8fd 100%);
  border: 1px solid #d0ddef;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.folder-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 16px; }
.folder-drop-zone {
  border: 2px dashed #d0ddef;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  background: #f7f8fc;
  transition: all 0.2s;
  cursor: pointer;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.folder-drop-zone:hover {
  border-color: #224e99;
  background: #e8eef7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 78, 153, 0.08);
}
.folder-drop-zone.drag-over {
  border-color: #224e99;
  background: #e8eef7;
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(34, 78, 153, 0.12);
}
.folder-icon { font-size: 40px; line-height: 1; }
.folder-label { font-size: 14px; font-weight: 700; color: #224e99; }
.folder-desc { font-size: 11px; color: #718096; line-height: 1.4; }
.folder-formats { font-size: 10px; color: #a0aec0; margin-top: 2px; }
.folder-file-count { font-size: 10px; font-weight: 600; color: #276749; background: #c6f6d5; padding: 2px 8px; border-radius: 8px; margin-top: 4px; }

/* ── Communications ── */
.update-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #edf2f7; }
.update-item:last-child { border-bottom: none; }
.update-icon-box { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.update-icon-box.info { background: #e8eef7; }
.update-icon-box.alert { background: #fefcbf; }
.update-icon-box.success { background: #c6f6d5; }
.update-content { flex: 1; }
.update-title { font-size: 13px; font-weight: 600; color: #1a202c; margin-bottom: 2px; }
.update-desc { font-size: 12px; color: #718096; line-height: 1.5; }
.update-date { font-size: 11px; color: #a0aec0; margin-top: 4px; }
.update-badge-new { background: #224e99; color: white; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 8px; text-transform: uppercase; letter-spacing: 0.3px; margin-left: 6px; vertical-align: middle; }

/* ── Quick Links ── */
.quick-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.quick-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  text-decoration: none;
  color: #1a202c;
  transition: all 0.2s;
  background: #f7f8fc;
}
.quick-link-card:hover { border-color: #224e99; background: #e8eef7; box-shadow: 0 2px 8px rgba(34, 78, 153, 0.08); }
.quick-link-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.quick-link-icon.guide { background: #d0ddef; }
.quick-link-icon.support { background: #c6f6d5; }
.quick-link-text { flex: 1; }
.quick-link-title { font-size: 14px; font-weight: 600; color: #224e99; }
.quick-link-desc { font-size: 11px; color: #718096; margin-top: 2px; }
.quick-link-arrow { color: #a0aec0; font-size: 16px; }

/* ── S3 Status ── */
.s3-status {
  background: #f7f8fc;
  border: 1px dashed #d0ddef;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 12px;
  color: #718096;
}
.s3-status.configured { border-color: #48bb78; background: #f0fff4; color: #276749; }
.s3-status.not-configured { border-color: #d69e2e; background: #fffff0; color: #975a16; }

/* ── Footer ── */
.footer { text-align: center; padding: 24px; color: #a0aec0; font-size: 12px; margin-top: 20px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .main { padding: 16px; }
  .welcome-banner { padding: 24px; }
  .welcome-banner h1 { font-size: 22px; }
  .data-table { font-size: 12px; }
  .data-table thead th, .data-table tbody td { padding: 8px 10px; }
  .folder-grid { grid-template-columns: repeat(3, 1fr); }
  .header-right { gap: 4px; }
  .header-nav-link { font-size: 12px; padding: 6px 8px; }
}

/* ═══════════════════════════════════════════════
   Quick Start Guide Styles
   ═══════════════════════════════════════════════ */
.guide-hero {
  background: linear-gradient(170deg, #fff 0%, #f3f6fb 40%, #e8eef7 100%);
  padding: 60px 40px 48px;
  text-align: center;
  border-bottom: 1px solid #e8ecf1;
}
.guide-hero h1 { font-size: 2.2rem; font-weight: 800; color: #224e99; margin-bottom: 8px; }
.guide-hero .subtitle { font-size: 1.1rem; color: #4a5568; margin-bottom: 28px; }
.guide-hero .contact-bar { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; font-size: 0.9rem; color: #667085; }
.guide-hero .contact-bar a { color: #224e99; text-decoration: none; font-weight: 500; }

.guide-content { max-width: 860px; margin: 36px auto 60px; padding: 0 20px; }

.toc {
  max-width: 860px;
  margin: -24px auto 0;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(34,78,153,0.08);
  padding: 28px 36px;
  position: relative;
  z-index: 1;
}
.toc h2 { font-size: 1.2rem; color: #224e99; margin-bottom: 14px; }
.toc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.toc a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #1a202c; padding: 8px 12px; border-radius: 10px; transition: background 0.2s; font-size: 0.95rem; }
.toc a:hover { background: #e8eef7; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #224e99; color: white; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}

.step-section {
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(34,78,153,0.05);
  padding: 36px 40px;
  margin-bottom: 28px;
}
.step-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.step-header .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #122c5c 0%, #224e99 50%, #3a6ab8 100%);
  color: white; font-weight: 700; font-size: 1.2rem; flex-shrink: 0;
}
.step-header h2 { font-size: 1.35rem; font-weight: 700; color: #224e99; }

.guide-content p { margin-bottom: 14px; line-height: 1.7; }
.guide-content a { color: #224e99; }
.guide-content ul, .guide-content ol { margin-bottom: 14px; padding-left: 24px; }
.guide-content li { margin-bottom: 6px; line-height: 1.6; }

.note-box {
  background: #e8eef7;
  border-left: 4px solid #224e99;
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.95rem;
}
.note-box strong { color: #224e99; }

.warning-box {
  background: #FEF3C7;
  border-left: 4px solid #D97706;
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.95rem;
}
.warning-box strong { color: #92400E; }

.tip-box {
  background: #ECFDF5;
  border-left: 4px solid #059669;
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.95rem;
}
.tip-box strong { color: #065F46; }

.feedback-section {
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(34,78,153,0.05);
  padding: 36px 40px;
  text-align: center;
}
.feedback-section h2 { font-size: 1.35rem; font-weight: 700; color: #224e99; margin-bottom: 12px; }
