body {
  font-family: "Segoe UI", sans-serif;
  background: #f4f6f8;
  text-align: center;
  padding: 30px;
}

.container {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  max-width: 1000px;
  margin: auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h1 {
  margin-bottom: 20px;
}

.upload-box {
  border: 2px dashed #999;
  border-radius: 12px;
  padding: 25px;
  margin: 20px auto;
  cursor: pointer;
  background: #fafafa;
  transition: 0.3s;
  max-width: 600px;
}

.upload-box.dragover {
  background: #e3f2fd;
  border-color: #2196f3;
}

button {
  background: #2196f3;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 15px;
}

button:hover {
  background: #1976d2;
}

.progress {
  margin-top: 10px;
  background: #eee;
  border-radius: 8px;
  overflow: hidden;
  display: none;
  width: 80%;
  margin: 10px auto;
  position: relative;
}

#progress-bar {
  height: 10px;
  background: #4caf50;
  width: 0%;
  transition: width 0.2s;
}

#progress-text {
  position: absolute;
  left: 50%;
  top: -25px;
  transform: translateX(-50%);
  font-size: 14px;
}

.split-view {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 25px;
  gap: 20px;
  flex-wrap: wrap;
}

.image-side, .text-side {
  flex: 1;
  min-width: 300px;
  background: #fafafa;
  border-radius: 10px;
  padding: 15px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.image-side img {
  width: 100%;
  border-radius: 10px;
}

#output-text {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  font-family: "Courier New", monospace;
  white-space: pre-wrap;
  line-height: 1.4;
  border: 1px solid #ddd;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
  min-height: 150px;
}

.qc-status {
  margin-top: 10px;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
}

.qc-pass { color: #2e7d32; }
.qc-fail { color: #c62828; }
