:root {
  --bg-main: #f3f4f6;
  --bg-card: rgba(255, 255, 255, 0.8);
  --text-main: #1f2937;
  --text-secondary: #87919e;
  --highlight: #fde047;
  --blur: 10px;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.3s, color 0.3s;
}

.card-result>p,
code {
  white-space: break-spaces;
  word-break: break-all;
}

.dark {
  --bg-main: rgb(31, 41, 55);
  --bg-card: rgba(16, 15, 24, 0.8);
  --text-main: #f3f4f6;
  --text-secondary: #9ca3af;
  --highlight: #facc15;
}

#darkToggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background-color: var(--highlight);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  z-index: 10;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

#darkToggle:hover {
  transform: scale(1.1);
}

.max-w-3xl {
  backdrop-filter: blur(var(--blur));
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

:not(.not-default) p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

input#searchInput {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border-radius: 1rem;
  border: none;
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  transition: all 0.3s;
}

input#searchInput:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--highlight);
}

input#searchInput::placeholder {
  color: var(--text-secondary);
}

#results .result-item {
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(var(--blur));
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

#results .result-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.highlight {
  background-color: var(--highlight);
  padding: 0 4px;
  border-radius: 3px;
}

#status {
  font-weight: 500;
}