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

body {
  font-family: 'Outfit', sans-serif;
  background-color: #1A1A1A;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 200px;
  padding-top: 60px; /* Space for top toolbar */
}

.top-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #1a1a1a;
  padding: 10px 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  z-index: 1001;
}

.top-toolbar button {
  background-color: #2e2e2e;
  border: none;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
}

.top-toolbar button:hover {
  background-color: #3a3a3a;
}

.top-toolbar button.active {
  background-color: #ffffff;
  color: #0e0e0e;
}

.container {
  width: 100%;
  max-width: 720px;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.logo {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: url('https://upload.wikimedia.org/wikipedia/commons/0/00/X_logo_2023.svg') no-repeat center;
  background-size: contain;
  filter: brightness(0) invert(1);
}

.wiki-result {
  max-width: 720px;
  width: 100%;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.wiki-result h3 {
  color: #ffffff;
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 600;
}

.wiki-result h4 {
  color: #ffffff;
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 500;
}

.wiki-result .paragraph-container {
  background-color: #1a1a1a;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.wiki-result .paragraph-container p {
  line-height: 1.8;
  color: #d1d1d1;
  font-size: 16px;
  margin: 0;
}

.wiki-result img {
  max-width: 100%;
  border-radius: 8px;
  margin: 24px 0;
  display: block;
}

.wiki-result a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.wiki-result a:hover {
  text-decoration: underline;
}

.search-box {
  background-color: #1e1e1e;
  border-radius: 16px;
  padding: 16px;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.input-row {
  display: flex;
  align-items: center;
  background-color: #121212;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  position: relative;
}

.input-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  font-family: 'Outfit', sans-serif;
  outline: none;
  padding-right: 40px;
}

.send-btn {
  position: absolute;
  right: 12px;
  width: 32px;
  height: 32px;
  background-color: #2e2e2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.send-btn:hover {
  background-color: #3a3a3a;
}

.send-btn::before {
  content: '↑';
  font-size: 16px;
  font-family: 'Outfit', sans-serif;
}

.toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.tool-btn {
  background-color: #1e1e1e;
  border: 1px solid #333;
  color: #fff;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  min-width: 80px;
  text-align: center;
}

.tool-btn:hover {
  background-color: #2a2a2a;
  transform: translateY(-1px);
}

.tool-btn.active {
  background-color: #ffffff;
  color: #0e0e0e;
  border-color: #ffffff;
}

select.tool-btn {
  background: #1e1e1e;
  border: none;
  color: #fff;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  padding: 10px 24px 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  min-width: 100px;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

select.tool-btn:focus {
  outline: none;
  background-color: #2a2a2a;
}