/* static/css/dashboard.css
 * eInsightsAI — RenewalPro UI Kit (Dashboard)
 * Last updated: 2025-12-09
 *
 * Contains:
 * - Contract Analysis dashboard layout
 * - 3-step wizard styling
 * - Upload card
 * - Document table polish
 * - Reusable "rp-" SaaS components
 */

/* ------------------------------
   GLOBAL LAYOUT
------------------------------ */
.dashboard-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem 1.5rem;
}

.dashboard-header {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
}

.dashboard-header h2 {
  font-weight: 600;
  font-size: 1.55rem;
}

/* ------------------------------
   WIZARD STEPS
------------------------------ */
.wizard {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0 1.25rem 0;
  flex-wrap: wrap;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #4a4a4a;
  font-size: 0.95rem;
  font-weight: 500;
}

.wizard-step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f0f7ff;
  border: 1px solid #0d7fe8;
  color: #0d7fe8;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-step-label {
  white-space: nowrap;
}

/* ------------------------------
   RENEWALPRO UI KIT: CARDS
------------------------------ */
.rp-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.rp-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.rp-card-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

/* Generic card variant you can re-use elsewhere */
.rp-card-muted {
  background: #f9fafb;
}

/* ------------------------------
   PROMPT & ACTION BAR
------------------------------ */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.prompt-select {
  width: 310px;
  max-width: 100%;
}

/* ------------------------------
   DOCUMENT TABLE
------------------------------ */
.table-responsive {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
  padding: 0.75rem 1rem 0.25rem 1rem;
}

table.documents-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  margin-top: 0.25rem;
}

table.documents-table th {
  text-align: left;
  font-size: 0.82rem;
  color: #707070;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
}

table.documents-table td {
  padding: 0.65rem 0.5rem;
  font-size: 0.92rem;
  color: #2f2f2f;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

tr.hover-row:hover {
  background: #f9fbff;
}

.row-checkbox {
  width: 22px;
}

/* ------------------------------
   BUTTONS & BADGES
------------------------------ */
.analyze-selected-btn {
  height: 38px;
  font-size: 0.92rem;
  padding: 0 1.2rem;
  border-radius: 7px;
}

/* You may already have .btn-primary/.btn-success from Bootstrap;
   these are just safe overrides to match your brand. */
.btn-primary {
  background-color: #0066ff;
  border: none;
}

.btn-primary:hover {
  background-color: #0055d6;
}

.btn-success {
  background-color: #029fad;
  border: none;
}

.btn-success:hover {
  background-color: #017a84;
}

.badge-soft {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background: #f3f4f6;
  color: #4b5563;
}

/* Pill-style badge for statuses elsewhere */
.rp-pill-badge {
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  background: #e0f2fe;
  color: #0369a1;
}

/* Variant colors */
.rp-pill-badge-success {
  background: #dcfce7;
  color: #15803d;
}

.rp-pill-badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.rp-pill-badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}
/* =====================================================
   RESULTS DRAWER (RIGHT-SIDE SLIDEOUT)
===================================================== */

.results-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  box-shadow: -2px 0 12px rgba(0,0,0,0.06);
  transition: right 0.27s ease;
  z-index: 1050;
  display: flex;
  flex-direction: column;
}

.results-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f1f1;
}

.drawer-body {
  padding: 1.25rem;
  overflow-y: auto;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1040;
}

.drawer-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

.preview-box {
  background: #f7f9fc;
  border: 1px solid #dbe3ee;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
}
