body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #00ffff;
  background-image: url("assets/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Logo */
.logo-container {
  text-align: center;
  margin-top: 50px;
}
.arloiq-logo {
  width: 220px;
  height: auto;
}

/* Search Input */
.search-container {
  text-align: center;
  margin-top: 40px;
}
.search-container input[type="text"] {
  padding: 10px;
  width: 320px;
  font-size: 16px;
  border-radius: 5px;
  border: none;
}
.search-container button {
  padding: 10px 20px;
  font-size: 16px;
  margin-left: 10px;
  background-color: #00ffff;
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Toggle */
.toggle-wrapper {
  text-align: center;
  margin-top: 25px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 24px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}
.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}
input:checked + .slider {
  background-color: #00ffff;
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}
.toggle-label {
  color: #00ffff;
  margin-left: 10px;
  font-size: 16px;
}

/* Footer */
.footer-links {
  background-color: #050505;
  padding: 15px;
  text-align: center;
  margin-top: 50px;
}
.footer-links a {
  color: #00ffff;
  margin: 0 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

/* Spinner */
.loading-spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #00ffff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 30px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Results */
#results {
  text-align: center;
  margin-top: 30px;
}

/* Advanced Mode Enhancements Display */
.adv-tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
}

.adv-tag {
  background-color: rgba(0, 255, 255, 0.08);
  color: #00ffff;
  border: 1px solid #00ffff;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.adv-tag:hover {
  background-color: #00ffff;
  color: #000;
}

/* Search Stack Section */
#searchStack {
  margin: 60px auto 30px auto;
  max-width: 800px;
  padding: 0 20px;
}

#searchStack h2 {
  text-align: center;
  font-size: 22px;
  color: #00ffff;
  margin-bottom: 15px;
}

.stack-controls {
  text-align: center;
  margin-bottom: 20px;
}

.stack-controls button {
  background-color: transparent;
  color: #00ffff;
  border: 1px solid #00ffff;
  padding: 8px 16px;
  margin: 0 6px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.stack-controls button:hover {
  background-color: #00ffff;
  color: #000;
}

#stackContainer {
  display: flex;
  flex-direction: column-reverse;
  gap: 20px;
  margin-top: 10px;
}

/* Search Stack Card */
.stack-card {
  background-color: rgba(0, 255, 255, 0.05);
  border-left: 4px solid #00ffff;
  padding: 12px 18px;
  border-radius: 8px;
  color: #ccffff;
  font-size: 15px;
  box-shadow: 0 0 4px rgba(0, 255, 255, 0.15);
}

.stack-card h4 {
  margin: 0 0 8px 0;
  color: #00ffff;
  font-size: 14px;
}

.stack-card p {
  margin: 0;
  line-height: 1.4;
  font-size: 14px;
}

/* Mobile */
@media (max-width: 600px) {
  .search-container input[type="text"] {
    width: 90%;
    margin-bottom: 10px;
  }

  .toggle-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .adv-tag-list {
    flex-direction: column;
    align-items: center;
  }

  .stack-controls button {
    display: block;
    width: 80%;
    margin: 10px auto;
  }
}
