:root {
  --nord0: #2e3440;
  --nord1: #3b4252;
  --nord2: #434c5e;
  --nord3: #4c566a;
  --nord4: #d8dee9;
  --nord5: #e5e9f0;
  --nord6: #eceff4;
  --nord-accent: #88c0d0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--nord0), var(--nord1));
  padding: 2rem;
  text-align: center;
  color: var(--nord5);
  min-height: 100vh;
}

h1 {
  font-size: 1.8rem;
  color: var(--nord6);
}

p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--nord4);
}

.dropdown-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

#dropdownInput {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--nord3);
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  background: var(--nord2);
  color: var(--nord6);
  box-sizing: border-box;
}

#dropdownInput::placeholder {
  color: var(--nord4);
}

.dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: var(--nord2);
  border: 1px solid var(--nord3);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 10;
  display: none;
  animation: fadein 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
  webkit-scrollbar {width: 6px;}
  webkit-scrollbar-track {background: #f1f1f1;}
  webkit-scrollbar-thumb {background-color: #888; border-radius: 10px; border: 2px solid #f1f1f1;}
}

.dropdown-list div {
  padding: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  border-bottom: 1px solid var(--nord3);
  color: var(--nord5);
}

.dropdown-list div:last-child {
  border-bottom: none;
}

.dropdown-list div:hover {
  background: var(--nord3);
}

footer {
  margin-top: 3rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--nord4);
  text-decoration: none;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Light mode desteği */
.light-mode body {
  background: linear-gradient(135deg, var(--nord6), var(--nord5));
  color: var(--nord0);
}

.light-mode #dropdownInput {
  background: var(--nord6);
  color: var(--nord0);
  border: 1px solid var(--nord4);
}

.light-mode p,
.light-mode h1 {
  color: var(--nord1);
}

.light-mode #dropdownInput::placeholder {
  color: var(--nord3);
}

.light-mode .dropdown-list {
  background: var(--nord6);
  border: 1px solid var(--nord4);
}

.light-mode .dropdown-list div {
  color: var(--nord0);
  border-bottom: 1px solid var(--nord4);
}

.light-mode .dropdown-list div:hover {
  background: var(--nord5);
}

.light-mode footer a {
  color: var(--nord1);
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .dropdown-container {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  #dropdownInput {
    font-size: 1rem;
    padding: 0.6rem;
  }

  .dropdown-list div {
    font-size: 0.95rem;
    padding: 8px;
  }

  .container {
    padding: 1rem;
    border-radius: 10px;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  button {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }

  .qr-code {
    width: 80px !important;
    height: 80px !important;
  }

  .info-box {
    padding: 0.5rem;
  }

  .info-box span {
    font-size: 0.85rem;
  }
}