* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f3f4f6;
  color: #1f2937;
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
}

.topbar {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.topbar h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
}

.topbar p {
  margin: 0;
  color: #4b5563;
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.chat-panel,
.document-panel {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.chat-panel h2,
.document-panel h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.chat-window {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  min-height: 280px;
  max-height: 420px;
  padding: 16px;
  margin-bottom: 16px;
  overflow-y: auto;
}

.message {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.message.assistant {
  background: #e0f2fe;
  color: #0f172a;
}

.message.user {
  background: #dcfce7;
  color: #14532d;
  margin-left: auto;
}

.helper-box,
.progress-box,
.question-box,
.next-step-box {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.helper-box h3,
.progress-box h3,
.question-box h3,
.next-step-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.helper-box ul {
  margin: 0;
  padding-left: 20px;
}

.helper-box li {
  margin-bottom: 8px;
}

.progress-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #e5e7eb;
}

.progress-line:last-child {
  border-bottom: none;
}

.warning-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.warning-box.alert {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.chat-input-area label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.chat-input-area textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  margin-bottom: 12px;
  resize: vertical;
  background: #ffffff;
}

.input-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.chat-input-area button {
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  cursor: pointer;
  color: white;
}

#btnSend {
  background: #0f766e;
}

#btnSend:hover {
  background: #115e59;
}

.confirm-button {
  background: #2563eb;
}

.confirm-button:hover {
  background: #1d4ed8;
}

.export-button {
  background: #7c3aed;
}

.export-button:hover {
  background: #6d28d9;
}

.secondary-button {
  background: #6b7280;
}

.secondary-button:hover {
  background: #4b5563;
}

.small-hint {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.document-card {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 18px;
}

.document-meta {
  margin-bottom: 18px;
}

.status-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: bold;
}

.status-badge.open {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.progress {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-badge.confirmed {
  background: #dcfce7;
  color: #166534;
}

.status-badge.alert {
  background: #fee2e2;
  color: #991b1b;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mini-status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.mini-status.open {
  background: #e5e7eb;
  color: #374151;
}

.mini-status.progress {
  background: #dbeafe;
  color: #1d4ed8;
}

.mini-status.confirmed {
  background: #dcfce7;
  color: #166534;
}

.mini-status.unsure {
  background: #fef3c7;
  color: #92400e;
}

.mini-status.alert {
  background: #fee2e2;
  color: #991b1b;
}

.doc-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
  margin-top: 16px;
}

.doc-section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.doc-section h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.placeholder-text {
  color: #6b7280;
  font-style: italic;
}

.notes-section ul {
  padding-left: 20px;
}

.notes-section li {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .input-actions {
    flex-direction: column;
  }
}
.session-list-box {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.session-list-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  color: #0369a1;
}

.session-list-box ul {
  margin: 0;
  padding-left: 20px;
}

.session-list-box li {
  margin-bottom: 4px;
}