* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #333;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
}

h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.search-container {
  margin: 20px 0 30px 0;
  text-align: center;
}

.search-input {
  width: 100%;
  max-width: 500px;
  padding: 10px 15px;
  font-size: 16px;
  border: 2px solid #007bff;
  border-radius: 5px;
  box-sizing: border-box;
  background-color: #fff;
  color: #333;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 5px rgba(0, 86, 179, 0.5);
}

.dark-mode .search-input {
  background-color: #555;
  color: #eee;
  border-color: #66b3ff;
}

.dark-mode .search-input:focus {
  border-color: #99ccff;
  box-shadow: 0 0 5px rgba(102, 179, 255, 0.5);
}

.dark-mode .search-input::placeholder {
  color: #aaa;
}

ul {
  list-style: none;
  margin-bottom: 30px;
  margin-left: 0;
  transition: margin 0.3s ease;
}

li {
  margin-bottom: 10px;
  padding: 12px 15px;
  background-color: #f9f9f9;
  border-radius: 5px;
  line-height: 1.6;
  transition: all 0.3s ease;
  overflow: hidden;
}

li b {
  color: #66b3ff;
  display: inline;
  margin-right: 8px;
  font-weight: 600;
}

a {
  color: #0056b3;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

.dark-mode a {
  color: #66b3ff;
}

i {
  color: #666;
  font-size: 0.9rem;
}

/* Dark mode */
.dark-mode {
  background-color: #333;
  color: #eee;
}

.dark-mode h2 {
  border-bottom-color: #555;
}

.dark-mode li {
  background-color: #444;
}

.dark-mode i {
  color: #999;
}

/* Mobile responsive */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  h2 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 12px;
  }

  li {
    padding: 12px 15px;
    margin-bottom: 12px;
  }

  .search-container {
    margin: 20px 0 30px 0;
  }
}

#modeToggle {
  position: fixed;
  left: 10px;
  bottom: 10px;
  padding: 10px 20px;
  background: #f2f2f2;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

#modeToggle:hover {
  background-color: #e2e2e2;
}

.dark-mode #modeToggle {
  background: #555;
  color: #fff;
}

.dark-mode #modeToggle:hover {
  background-color: #666;
}