* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 55%, #f3f4f6 100%);
  color: #1f2937;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.hero h1 {
  margin-bottom: 8px;
  font-size: 2rem;
}

h1 {
  margin-bottom: 8px;
}

.subtitle {
  margin-top: 0;
  color: #4b5563;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  margin-top: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
}

textarea,
input[type="file"],
button {
  width: 100%;
}

textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  resize: vertical;
  font-family: inherit;
}

button {
  margin-top: 14px;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 14px rgba(37, 99, 235, 0.18);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status {
  margin-top: 10px;
  min-height: 20px;
  color: #374151;
  font-weight: 500;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.score-grid .label {
  display: block;
  color: #6b7280;
  font-size: 0.9rem;
}

.score-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}

.score-card strong {
  display: block;
  margin-top: 2px;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.progress {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.4s ease;
}

.result-section {
  margin-top: 16px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 22px;
}

.chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

.chip.match {
  background: #dcfce7;
  color: #166534;
}

.chip.missing {
  background: #fee2e2;
  color: #991b1b;
}

.suggestions {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #1f2937;
}

.suggestions li {
  margin-bottom: 8px;
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .score-grid {
    grid-template-columns: 1fr;
  }
}
