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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f5f5f5;
  min-height: 100vh;
}

.centre_area {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.focus_area {
  width: 100%;
  max-width: 600px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2rem;
  text-align: center;
}

.search_container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.input_wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

input[type="text"] {
  flex: 1;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s;
  background-color: white;
}

input[type="text"]:focus {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
  background-color: white;
}

/* Remove autofill blue background */
input[type="text"]:-webkit-autofill,
input[type="text"]:-webkit-autofill:hover,
input[type="text"]:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px white inset;
  box-shadow: 0 0 0 1000px white inset;
  -webkit-text-fill-color: #1a1a1a;
}

input[type="text"]::placeholder {
  color: #999;
}

.search_button {
  padding: 14px;
  background-color: #1a1a1a;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.search_button:disabled {
  background-color: #666;
  cursor: not-allowed;
  opacity: 0.4;
}

.search_button:not(:disabled):hover {
  background-color: #333;
  transform: translateY(-1px);
}

.search_button:not(:disabled):active {
  transform: translateY(0);
}

.search_button svg {
  width: 20px;
  height: 20px;
}

/* Checkbox wrapper */
.checkbox_wrapper {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.checkbox_wrapper label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  margin-bottom: 0;
}

.checkbox_wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #1a1a1a;  /* Black checkbox instead of blue */
}

/* Results container */
.results_container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-height: 600px;
  overflow-y: auto;
}

.result_header {
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 16px;
}

.result_header h2 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.result_header p {
  font-size: 0.875rem;
  color: #666;
  word-break: break-all;
  margin-bottom: 4px;
}

.result_content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  white-space: pre-line;
  word-wrap: break-word;
  margin-bottom: 24px;
}

/* Links section */
.links_section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #f0f0f0;
}

.links_section h3 {
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 16px;
  font-weight: 600;
}

.links_container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.link_item {
  padding: 12px 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.2s;
}

.link_item:hover {
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.link_item a {
  color: #4a90e2;
  text-decoration: none;
  font-size: 0.9rem;
  word-break: break-all;
  display: block;
}

.link_item a:hover {
  text-decoration: underline;
}

/* Loading container */
.loading_container {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading_spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f0f0f0;
  border-top: 4px solid #1a1a1a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading_container p {
  font-size: 1rem;
  color: #666;
}

/* button field wrapper */
.button_wrapper{
  display:flex;
  margin-top: 20px;
  gap: 12px;
}

.button_wrapper button{
  padding: 12px 20px;
  background-color: #1a1a1a;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.button_wrapper button:hover{
  background-color: #333;
  transform: translateY(-1px);
}

.button_wrapper button:active{
  transform: translateY(0);
}