* { box-sizing: border-box; }

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

.container {
  width: min(900px, 92%);
  margin: 0 auto;
  padding: 40px 0 60px;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

.brand {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.header h1 {
  margin: 0 0 10px;
  font-size: 30px;
}

.header p {
  margin: 0 auto;
  max-width: 650px;
  line-height: 1.8;
  color: #63736f;
}

.upload-card {
  background: white;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.upload-area {
  border: 2px dashed #9bb8b1;
  border-radius: 15px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}

.upload-area:hover {
  border-color: #547f75;
  background: #f8fbfa;
}

.upload-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e8f1ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 12px;
}

.upload-area strong {
  font-size: 18px;
  margin-bottom: 7px;
}

.upload-area small { color: #778580; }

.selected-files { margin-top: 18px; }

.file-item {
  background: #f3f7f6;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 7px;
  font-size: 14px;
}

.primary-btn {
  width: 100%;
  margin-top: 20px;
  border: 0;
  border-radius: 12px;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  background: #527d73;
  color: white;
}

.primary-btn:disabled {
  background: #c6d2cf;
  cursor: not-allowed;
}

.status {
  margin-top: 20px;
  background: white;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  line-height: 1.7;
}

.results { margin-top: 30px; }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-title h2 { margin: 0; }

#resultCount {
  color: #71807c;
  font-size: 14px;
}

.result-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.result-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.result-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  background: #f5f7f6;
  border-radius: 10px;
  margin-bottom: 18px;
}

.result-block { margin-top: 15px; }

.result-block strong {
  display: block;
  margin-bottom: 7px;
}

.result-block pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f5f8f7;
  padding: 12px;
  border-radius: 10px;
  direction: ltr;
  text-align: left;
  font-family: monospace;
  line-height: 1.6;
}

.error { border-right: 4px solid #b85c5c; }
.hidden { display: none; }

@media (max-width: 600px) {
  .container { padding-top: 25px; }
  .header h1 { font-size: 24px; }
  .upload-card { padding: 16px; }
}
