/* Global Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(to bottom right, #ffffff, #dbe6f6);
  color: #333;
  transition: all 0.3s ease;
}

body.dark {
  background: linear-gradient(to bottom right, #1a202c, #2d3748);
  color: #f7fafc;
}

.container {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 20px;
  width: 500px;
  transition: all 0.3s ease;
}

body.dark .container {
  background: rgba(26, 32, 44, 0.9);
  color: #f7fafc;
}

/* Theme Toggle Button */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
}

.theme-toggle button {
  font-size: 20px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  transition: transform 0.2s ease;
}

body.dark .theme-toggle button {
  color: #f7fafc;
}

.theme-toggle button:hover {
  transform: scale(1.2);
}

/* Heading */
h1 {
  text-align: center;
  font-size: 24px;
}

/* Form Styling */
form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

form input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
}

form button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background: #2a2a72;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

form button:hover {
  background: #009ffd;
}

/* Keyword List */
.list-section {
  margin-top: 20px;
}

.list-section h2 {
  margin-bottom: 10px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

body.dark li {
  background: rgba(45, 55, 72, 0.8);
}

li:hover {
  transform: scale(1.02);
}

.remove-btn {
  cursor: pointer;
  color: red;
  font-size: 18px;
  transition: all 0.3s ease;
}

.remove-btn:hover {
  transform: scale(1.3);
}

/* Footer Styling */
footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #555;
}

body.dark footer {
  color: #a0aec0;
}

footer a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}
