* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #0f172a;
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px;
}

.app {
  width: 100%;
  max-width: 1100px;
  background: #020617;
  border-radius: 16px;
  padding: 24px 28px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

header h1 {
  font-size: 1.7rem;
  margin-bottom: 4px;
}

header p {
  color: #9ca3af;
  font-size: 0.95rem;
}

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

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

.input-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-section label {
  font-weight: 600;
  font-size: 0.95rem;
}

textarea {
  width: 100%;
  min-height: 260px;
  max-height: 460px;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.4;
}

textarea:focus {
  outline: 2px solid #3b82f6;
  border-color: transparent;
}

button {
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #3b82f6;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.1s ease;
}

button:hover {
  background: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

.status {
  font-size: 0.85rem;
  color: #9ca3af;
  min-height: 18px;
}

.results-section {
  background: #020617;
  border-radius: 12px;
  border: 1px solid #1f2937;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 450px;
  overflow-y: auto;
}

.overall-score {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.criteria-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.criteria-card {
  border-radius: 10px;
  border: 1px solid #111827;
  background: #020617;
  padding: 10px 12px;
}

.criteria-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.criteria-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.criteria-score {
  font-size: 0.9rem;
}

.criteria-breakdown {
  font-size: 0.8rem;
  color: #9ca3af;
}

footer {
  border-top: 1px solid #1f2937;
  padding-top: 10px;
  margin-top: 4px;
  text-align: right;
  font-size: 0.75rem;
  color: #6b7280;
}
 
