/* ══════════════════════════════════════════════════════
   NETZERRA WASTE MANAGEMENT MODULE CSS
   Consultant Workbench & Proponent Upload UI
   Theme: Professional Dark Green / Regulatory Sovereign
══════════════════════════════════════════════════════ */

/* Variables specifically for Waste Module, falling back to global vars if available */
:root {
  --waste-bg: var(--deep, #0D2818);
  --waste-card: rgba(255, 255, 255, 0.04);
  --waste-border: rgba(109, 217, 140, 0.15);
  --waste-accent: var(--leaf, #3AAA5C);
  --waste-text: rgba(255, 255, 255, 0.85);
  --waste-muted: rgba(255, 255, 255, 0.5);
  
  --status-draft-bg: rgba(245, 166, 35, 0.15);
  --status-draft-text: #F5A623;
  --status-certified-bg: rgba(58, 170, 92, 0.15);
  --status-certified-text: #3AAA5C;
}

/* ── LAYOUT SHELL ── */
.waste-module-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
  font-family: inherit;
  color: var(--waste-text);
}

.waste-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--waste-border);
}

.waste-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.waste-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.waste-badge.draft {
  background: var(--status-draft-bg);
  color: var(--status-draft-text);
  border: 1px solid var(--status-draft-text);
}
.waste-badge.certified {
  background: var(--status-certified-bg);
  color: var(--status-certified-text);
  border: 1px solid var(--status-certified-text);
  box-shadow: 0 0 10px rgba(58, 170, 92, 0.3);
}

/* ── PROPONENT UPLOAD VIEW ── */
.proponent-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.upload-zone {
  border: 2px dashed var(--waste-accent);
  background: rgba(58, 170, 92, 0.05);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.upload-zone:hover {
  background: rgba(58, 170, 92, 0.1);
}
.upload-zone .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}
.upload-zone p { margin: 0 0 0.5rem 0; font-size: 1.05rem; color: #fff;}
.upload-zone span { font-size: 0.8rem; color: var(--waste-muted); }

.preview-img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px solid var(--waste-border);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.input-group input, .input-group select {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--waste-border);
  color: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
}
.input-group input:focus, .input-group select:focus {
  outline: none;
  border-color: var(--waste-accent);
}
.input-group select option {
  background: #0D2818;
  color: #fff;
}

/* GCIS Wizard inputs */
.gcis-input {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--waste-border);
  color: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  width: 100%;
}
.gcis-input:focus {
  outline: none;
  border-color: var(--waste-accent);
}
select.gcis-input {
  cursor: pointer;
}
select.gcis-input option {
  background-color: #fff;
  color: #000;
  padding: 0.5rem;
}

/* ── CONSULTANT WORKBENCH (SPLIT VIEW) ── */
.workbench-view {
  display: flex;
  gap: 1.5rem;
  height: calc(100vh - 180px);
  min-height: 500px;
}

.workbench-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--waste-card);
  border: 1px solid var(--waste-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.workbench-right {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--waste-border);
  border-radius: 12px;
  overflow-y: auto;
  padding: 1rem;
}

/* Document Renderer */
.doc-viewer {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  background: #f8f9fa; /* White background for document */
  color: #1a1a1a;
  position: relative;
}

.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(0,0,0,0.06);
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

.doc-content {
  position: relative;
  z-index: 2;
  font-family: serif;
  line-height: 1.6;
}
.doc-content h1 { font-size: 1.5rem; text-align: center; border-bottom: 2px solid #ccc; padding-bottom: 0.5rem; }
.doc-content h2 { font-size: 1.1rem; color: #0D2818; margin-top: 1.5rem; }
.doc-editable {
  padding: 0.2rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.doc-editable:hover {
  background: rgba(58, 170, 92, 0.15);
  cursor: text;
}
.doc-editable:focus {
  outline: 2px solid var(--waste-accent);
  background: transparent;
}

/* Reasoning Sidebar Items */
.ai-reasoning-card {
  background: var(--waste-card);
  border: 1px solid var(--waste-border);
  border-radius: 8px;
  padding: 1rem;
}
.ai-reasoning-card h4 {
  margin: 0 0 0.5rem 0;
  color: var(--waste-accent);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ai-reasoning-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--waste-text);
  line-height: 1.5;
}
.ai-reasoning-card .citation {
  display: block;
  font-size: 0.7rem;
  color: var(--waste-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Image Analyzer Card */
.vision-card {
  display: flex;
  gap: 1rem;
}
.vision-thumb {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}
.vision-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.v-bar-row {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  height: 14px;
}
.v-label { width: 55px; }
.v-track {
  flex: 1;
  background: rgba(0,0,0,0.3);
  height: 6px;
  border-radius: 3px;
  margin: 0 0.5rem;
  overflow: hidden;
}
.v-fill { height: 100%; }
.v-pct { width: 30px; text-align: right; font-family: monospace;}

/* ── ACTION BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--fern, #27733F), var(--leaf, #3AAA5C));
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(58, 170, 92, 0.3);
  transition: transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  transform: translateY(-2px);
}

.certify-block {
  margin-top: auto;
  padding: 1rem;
  background: rgba(58, 170, 92, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(58, 170, 92, 0.3);
  text-align: center;
}
.certify-block p {
  font-size: 0.75rem;
  color: var(--waste-muted);
  margin-bottom: 0.8rem;
}

/* ── SCORE HUD ── */
.nema-score-hud {
  display: flex;
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  align-items: center;
  gap: 1.5rem;
}
.score-stat {
  display: flex;
  flex-direction: column;
}
.score-stat .s-lbl { font-size: 0.65rem; color: var(--waste-muted); text-transform: uppercase;}
.score-stat .s-val { font-size: 1.1rem; font-weight: 700; color: #fff;}
.s-val.high { color: var(--waste-accent); }

/* Utility */
.hidden { display: none !important; }

/* ── IoT DASHBOARD TRACKING ── */
.iot-dashboard-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--waste-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.iot-dashboard-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.iot-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.iot-telemetry-item {
  background: rgba(0,0,0,0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  text-align: center;
}
.iot-telemetry-item .t-label {
  font-size: 0.65rem;
  color: var(--waste-muted);
  text-transform: uppercase;
}
.iot-telemetry-item .t-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.iot-telemetry-item .t-value.live {
  color: var(--mint);
  animation: live-pulse 1.5s infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ── SATELLITE OCR VIEW ── */
.satellite-ocr-container {
  position: relative;
  background: #0D2818;
  border: 2px solid var(--waste-border);
  border-radius: 12px;
  overflow: hidden;
}
.satellite-ocr-container .satellite-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.ocr-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.ocr-overlay .scan-line {
  width: 80%;
  height: 2px;
  background: var(--mint);
  animation: scan-move 2s linear infinite;
}
@keyframes scan-move {
  0% { transform: translateY(-100px); }
  100% { transform: translateY(100px); }
}
.ocr-results-panel {
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--waste-border);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}
.ocr-detected-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(58, 170, 92, 0.1);
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.ocr-detected-item .detect-icon {
  font-size: 1.2rem;
}
.ocr-detected-item .detect-info {
  flex: 1;
}
.ocr-detected-item .detect-info .label {
  font-size: 0.75rem;
  color: var(--waste-muted);
}
.ocr-detected-item .detect-info .value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}
.ocr-confidence {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(58, 170, 92, 0.2);
  color: var(--mint);
}

/* ── ANIMATIONS ── */
@keyframes scan-move {
  0% { transform: translateY(-125px); }
  100% { transform: translateY(125px); }
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(0, 255, 0, 0); }
}

.live-indicator {
  animation: live-pulse 1.5s infinite;
}

/* ═══════════════════════════════════════════════════════
   NEMA WASTE INTELLIGENCE — Alert Centre Styles
   ═══════════════════════════════════════════════════════ */

/* KPI Strip */
.nema-waste-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .75rem;
  margin-bottom: 1.2rem;
}
.nema-waste-kpi {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 1rem .75rem;
  text-align: center;
  transition: border-color .3s, transform .2s;
}
.nema-waste-kpi:hover {
  border-color: rgba(58,170,92,.3);
  transform: translateY(-2px);
}
.nwk-icon { font-size: 1.4rem; margin-bottom: .3rem; }
.nwk-val { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.1; }
.nwk-lbl { font-size: .72rem; color: rgba(255,255,255,.6); margin-top: .2rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.nwk-sub { font-size: .62rem; color: rgba(255,255,255,.3); margin-top: .1rem; }

/* Alert Card */
.nema-waste-alert-card {
  background: linear-gradient(135deg, rgba(239,83,80,.04) 0%, rgba(10,31,20,1) 100%);
  border: 1px solid rgba(239,83,80,.3);
  border-radius: 14px;
  margin-bottom: 1.2rem;
  overflow: hidden;
}
.nwac-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(239,83,80,.15);
  background: rgba(239,83,80,.04);
}
.nwac-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .95rem;
  color: #EF5350;
}
.nwac-badge {
  background: rgba(239,83,80,.12);
  color: #EF5350;
  border: 1px solid rgba(239,83,80,.25);
  padding: .25rem .65rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
}
.nwac-body {
  padding: .5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

/* Individual Alert Item */
.nema-alert-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: rgba(0,0,0,.25);
  border-left: 4px solid transparent;
  transition: background .2s;
}
.nema-alert-item:hover { background: rgba(0,0,0,.35); }
.nema-alert-critical { border-left-color: #EF5350; }
.nema-alert-warning { border-left-color: #F5A623; }
.nema-alert-info { border-left-color: var(--mint); }

.nai-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.nai-content { flex: 1; min-width: 0; }
.nai-title { font-weight: 700; font-size: .88rem; color: #fff; margin-bottom: .2rem; }
.nai-project { font-size: .72rem; color: rgba(255,255,255,.5); margin-bottom: .4rem; font-weight: 500; }
.nai-detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  line-height: 1.5;
  color: rgba(255,255,255,.55);
  background: rgba(0,0,0,.2);
  padding: .65rem .8rem;
  border-radius: 6px;
  margin-bottom: .5rem;
}
.nai-meta {
  display: flex;
  gap: .8rem;
  font-size: .65rem;
}
.nai-time { color: rgba(255,255,255,.35); }
.nai-reg { color: #EF5350; font-weight: 600; }
.nema-alert-warning .nai-reg { color: #F5A623; }

.nai-actions {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex-shrink: 0;
}
.nai-btn {
  padding: .35rem .7rem;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: opacity .2s, transform .1s;
}
.nai-btn:hover { opacity: .85; transform: scale(1.02); }
.nai-btn:active { transform: scale(.97); }
.nai-btn-danger { background: #EF5350; color: #fff; }
.nai-btn-primary { background: var(--mint); color: #0a1f14; }
.nai-btn-secondary { background: transparent; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); }

/* Fleet Tracker Card */
.nema-waste-fleet-card {
  background: linear-gradient(135deg, rgba(0,201,167,.03) 0%, rgba(10,31,20,1) 100%);
  border: 1px solid rgba(0,201,167,.25);
  border-radius: 14px;
  margin-bottom: 1.2rem;
  overflow: hidden;
}
.nwfc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(0,201,167,.12);
  background: rgba(0,201,167,.03);
  flex-wrap: wrap;
  gap: .5rem;
}
.nwfc-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
}
.nwfc-live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #00ff88;
  border-radius: 50%;
  animation: live-pulse 1.5s infinite;
}
.nwfc-stats { display: flex; gap: .4rem; flex-wrap: wrap; }

.nwfc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nwfc-kpi {
  background: rgba(0,0,0,.25);
  border-radius: 8px;
  padding: .75rem;
  text-align: center;
}
.nwfc-kpi-val { font-size: 1.3rem; font-weight: 800; color: #fff; }
.nwfc-kpi-lbl { font-size: .62rem; color: rgba(255,255,255,.4); margin-top: .15rem; text-transform: uppercase; letter-spacing: .4px; }

.nwfc-trips {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: .75rem 1.2rem 1.2rem;
}
.nwfc-trip {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .8rem;
  border-radius: 8px;
  transition: background .2s;
}
.nwfc-trip:hover { background: rgba(255,255,255,.04); }
.nwfc-trip-verified { background: rgba(58,170,92,.06); }
.nwfc-trip-transit { background: rgba(245,166,35,.06); }
.nwfc-trip-flagged { background: rgba(239,83,80,.08); border: 1px solid rgba(239,83,80,.2); }
.nwfc-trip-icon { font-size: 1.1rem; }
.nwfc-trip-info { flex: 1; min-width: 0; }
.nwfc-trip-route { font-size: .8rem; font-weight: 600; color: #fff; }
.nwfc-trip-meta { font-size: .68rem; color: rgba(255,255,255,.4); }
.nwfc-trip-tags { display: flex; gap: .3rem; flex-wrap: wrap; flex-shrink: 0; }

/* Responsive */
@media (max-width: 768px) {
  .nema-waste-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .nwfc-grid { grid-template-columns: repeat(2, 1fr); }
  .nema-alert-item { flex-direction: column; }
  .nai-actions { flex-direction: row; }
  .nwfc-trip { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .nema-waste-kpi-strip { grid-template-columns: 1fr 1fr; }
  .nwfc-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════
   WASTE GCIS CHAT INTERFACE — Zerra Intake Interview
   Premium Glassmorphism + Micro-Animations
   ═══════════════════════════════════════════════════════ */

.wzc-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 220px);
  min-height: 460px;
  max-height: 720px;
  background: linear-gradient(165deg, rgba(10,30,18,.85), rgba(5,18,12,.95));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(109,217,140,.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.35), inset 0 1px 0 rgba(109,217,140,.08);
}

/* ─── Header ─────────────────────────────────────── */
.wzc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1.1rem;
  background: rgba(0,0,0,.2);
  border-bottom: 1px solid rgba(109,217,140,.1);
  flex-shrink: 0;
  gap: .5rem;
  flex-wrap: wrap;
}
.wzc-header-left {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.wzc-header-right {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.wzc-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C9A7, var(--fern, #27733F));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0,201,167,.25);
  animation: wzc-pulse 3s ease-in-out infinite;
}
@keyframes wzc-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(0,201,167,.25); }
  50% { box-shadow: 0 0 20px rgba(0,201,167,.4); }
}
.wzc-title {
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .015em;
}
.wzc-status {
  font-size: .66rem;
  color: var(--mint, #6DD98C);
  display: flex;
  align-items: center;
  gap: 5px;
}
.wzc-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint, #6DD98C);
  animation: wzc-blink 2s infinite;
  display: inline-block;
}
@keyframes wzc-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.wzc-step-badge {
  font-size: .62rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,201,167,.12), rgba(109,217,140,.08));
  border: 1px solid rgba(109,217,140,.22);
  color: var(--mint, #6DD98C);
  white-space: nowrap;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ─── Progress Bar (under header) ────────────────── */
.wzc-progress {
  height: 3px;
  background: rgba(255,255,255,.03);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.wzc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--fern, #27733F), #00C9A7, var(--mint, #6DD98C));
  background-size: 200% 100%;
  animation: wzc-shimmer 2.5s ease infinite;
  border-radius: 0 2px 2px 0;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
@keyframes wzc-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ─── Messages Area ──────────────────────────────── */
.wzc-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(109,217,140,.15) transparent;
  scroll-behavior: smooth;
}
.wzc-msgs::-webkit-scrollbar { width: 5px; }
.wzc-msgs::-webkit-scrollbar-track { background: transparent; }
.wzc-msgs::-webkit-scrollbar-thumb {
  background: rgba(109,217,140,.15);
  border-radius: 10px;
}
.wzc-msgs::-webkit-scrollbar-thumb:hover { background: rgba(109,217,140,.3); }

/* ─── Message Bubbles ────────────────────────────── */
.wzc-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: wzc-fadein .3s ease;
}
@keyframes wzc-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.wzc-msg.user { align-items: flex-end; }
.wzc-msg.bot { align-items: flex-start; }

.wzc-role-label {
  font-size: .58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 6px;
  color: rgba(255,255,255,.3);
}
.wzc-msg.bot .wzc-role-label { color: rgba(0,201,167,.5); }

.wzc-bub {
  max-width: 85%;
  padding: .65rem .95rem;
  border-radius: 16px;
  font-size: .8rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.wzc-msg.user .wzc-bub {
  background: linear-gradient(135deg, var(--fern, #27733F), var(--leaf, #3AAA5C));
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 2px 12px rgba(39,115,63,.25);
}
.wzc-msg.bot .wzc-bub {
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(109,217,140,.1);
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
}
.wzc-msg.bot .wzc-bub strong {
  color: var(--mint, #6DD98C);
  font-weight: 600;
}
.wzc-ts {
  font-size: .58rem;
  color: rgba(255,255,255,.18);
  padding: 0 6px;
}

/* ─── Typing Indicator ──────────────────────────── */
.wzc-typing .wzc-bub {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: .7rem 1rem;
  min-width: 60px;
}
.wzc-dot-anim {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0,201,167,.55);
  display: inline-block;
  animation: wzc-dots .8s infinite;
}
.wzc-dot-anim:nth-child(2) { animation-delay: .16s; }
.wzc-dot-anim:nth-child(3) { animation-delay: .32s; }
@keyframes wzc-dots {
  0%, 80%, 100% { transform: scale(.5); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ─── Suggestion Chips ───────────────────────────── */
.wzc-sugs {
  padding: .4rem 1rem .55rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  flex-shrink: 0;
}
.wzc-sug {
  font-size: .68rem;
  padding: .32rem .72rem;
  background: rgba(0,201,167,.06);
  border: 1px solid rgba(0,201,167,.15);
  color: rgba(255,255,255,.55);
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.wzc-sug::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,201,167,.08), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.wzc-sug:hover {
  background: rgba(0,201,167,.12);
  color: #fff;
  border-color: rgba(0,201,167,.35);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,201,167,.12);
}
.wzc-sug:hover::before { opacity: 1; }
.wzc-sug:active { transform: translateY(0); }

/* ─── Input Row ──────────────────────────────────── */
.wzc-input-row {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  padding: .65rem 1rem .9rem;
  border-top: 1px solid rgba(109,217,140,.06);
  background: rgba(0,0,0,.1);
  flex-shrink: 0;
}
.wzc-ta {
  flex: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(109,217,140,.14);
  border-radius: 12px;
  color: #fff;
  font-size: .8rem;
  padding: .55rem .8rem;
  resize: none;
  max-height: 88px;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.wzc-ta:focus {
  border-color: rgba(0,201,167,.5);
  box-shadow: 0 0 0 3px rgba(0,201,167,.08);
  outline: none;
}
.wzc-ta::placeholder {
  color: rgba(255,255,255,.2);
}
.wzc-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C9A7, var(--fern, #27733F));
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: .85rem;
  flex-shrink: 0;
  transition: all .2s ease;
  box-shadow: 0 2px 10px rgba(0,201,167,.2);
}
.wzc-send:disabled {
  opacity: .3;
  cursor: default;
  box-shadow: none;
}
.wzc-send:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,201,167,.35);
}
.wzc-send:active:not(:disabled) { transform: scale(.95); }

/* ─── Submit Panel ───────────────────────────────── */
.wzc-submit-panel {
  animation: wzc-fadein .5s ease;
}
.wzc-submit-panel > div {
  background: linear-gradient(135deg, rgba(0,201,167,.06), rgba(58,170,92,.04));
  border: 1px solid rgba(0,201,167,.2);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
}
.wzc-submit-panel h4 {
  background: linear-gradient(90deg, #00C9A7, var(--mint, #6DD98C));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 .5rem;
  font-size: .95rem;
}

/* ─── Export Button ───────────────────────────────── */
.wzc-export-btn {
  font-size: .62rem;
  padding: .22rem .5rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: rgba(255,255,255,.35);
  cursor: pointer;
  transition: all .15s;
}
.wzc-export-btn:hover {
  border-color: rgba(109,217,140,.3);
  color: var(--mint, #6DD98C);
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 600px) {
  .wzc-wrapper {
    height: calc(100vh - 160px);
    border-radius: 14px;
  }
  .wzc-bub { max-width: 92%; font-size: .78rem; }
  .wzc-header { padding: .65rem .8rem; }
  .wzc-msgs { padding: .7rem .8rem; }
}


