:root {
  --bg: #f4f6f9;
  --text: #333;
  --card: #ffffff;
  --border: #ddd;
  --accent: #3498db;
  --accent-hover: #2980b9;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --text: #e5e7eb;
  --card: #1e293b;
  --border: #334155;
  --accent: #60a5fa;
  --accent-hover: #3b82f6;
}

body > h1 {
  margin-top: 60px;
  font-size: 2.4rem;
  text-align: center;
}

body > p {
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.85;
}

body > div {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 35px;
  flex-wrap: wrap;
}

body > div > a {
  text-decoration: none;
}

body > div > a > button {
  min-width: 260px;
  padding: 14px 20px;
  font-size: 1rem;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h2,
strong {
  color: var(--text);
}

form,
#results, #other-plates {
  display: flex;
  margin-top: 25px;
  width: 100%;
  max-width: 400px;
  background: var(--card);
  color: var(--text);
  padding: 20px;
  border-radius: 10px;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  justify-content: center;
  align-items: center;
}

input[type="text"],
input[type="file"] {
  background-color: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
}

button:hover {
  background: var(--accent-hover);
}

button:active {
  transform: scale(0.98);
}

#results, #other-plates.hiden {
  display: none;
  margin-top: 25px;
  width: 100%;
  max-width: 600px;
  background: var(--card);
  padding: 5px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#show-all {
  margin-top: 15px;
}

#other-plates div {
  padding: 8px 0;
}

hr {
  border-top: 1px solid var(--border);
}

strong {
  color: var(--text);
}

.plate-item:hover {
  background-color: rgba(255,255,255,0.06);
}

.plate-item.selected {
  color: var(--text);
  background-color: rgba(34, 197, 94, 0.15);
  border-left: 4px solid #22c55e;
}

@keyframes spin {
  to { transform: rotate(360deg); }


}


.image-gallery {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.plate-image {
  max-width: 450px;   
  max-height: 350px;
  width: auto;
  height: auto;
  object-fit: contain;   
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  background: #fff;
}
