body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #f0f0f0;
  margin: 0;
}
header {
  background: #65ad78;
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.dashboard-container {
  display: grid;
  grid-template-columns: 2fr 3fr 1.5fr;
  gap: 30px;
  padding: 32px;
}
.preview-panel, .data-form-panel, .file-list-panel {
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.08);
  padding: 18px 22px;
  min-height: 650px;
}
.preview-panel h2, .data-form-panel h2, .file-list-panel h2 {
  color: #65ad78;
  margin-top: 0;
  font-size: 1.2rem;
  border-bottom: 2px solid rgba(101,173,120,0.2);
  padding-bottom: 6px;
}
.preview-controls {
  margin-bottom: 12px;
}
.preview-controls button {
  background: #eee;
  margin-right: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
}
.preview-controls button:disabled {
  background: #ddd;
  cursor: not-allowed;
}
.doc-preview {
  background: #fff;
  border-radius: 10px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #eee;
}
.doc-preview img, .doc-preview iframe {
  max-width: 100%;
  max-height: 270px;
  border-radius: 8px;
  object-fit: contain;
}
.error-message {
  color: #b91c1c;
  margin-top: 10px;
  font-size: 0.97rem;
}
.data-form-panel fieldset {
  border: 1px solid #65ad78;
  border-radius: 7px;
  margin-bottom: 14px;
  padding: 7px 14px 12px 14px;
  background: rgba(255,255,255,0.08);
}
.data-form-panel legend {
  color: #2d6a4f;
  font-weight: 700;
}
.data-form-panel label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.99rem;
  color: #1f2937;
}
.data-form-panel input[type="text"],
.data-form-panel input[type="number"],
.data-form-panel input[type="date"] {
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid #ddd;
  margin-left: 12px;
  font-size: 1.01rem;
}
.data-form-panel button {
  margin-top: 12px;
  margin-right: 7px;
  padding: 8px 18px;
  background: #65ad78;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.data-form-panel button:disabled {
  background: #aaa;
  cursor: not-allowed;
}
.file-list-panel input[type="file"] {
  margin-bottom: 14px;
}
#fileList {
  list-style: none;
  padding: 0;
  margin: 0 0 13px 0;
  max-height: 340px;
  overflow-y: auto;
}
#fileList li {
  background: rgba(255,255,255,0.32);
  border-radius: 9px;
  padding: 9px 14px;
  margin-bottom: 7px;
  font-size: 1.01rem;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#fileList li.uploaded { background: #c0eecd; }
#fileList li.processed { background: #65ad78; color: #fff; }
#fileList li.selected { box-shadow: 0 0 0 2px #65ad78; }
#fileList .status {
  font-size: 0.92rem;
  font-weight: 700;
  margin-left: 10px;
}
@media (max-width: 1100px) {
  .dashboard-container { grid-template-columns: 1fr; }
  .preview-panel, .data-form-panel, .file-list-panel { min-height: 350px; margin-bottom: 25px; }
}