body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 15px;
  width: 320px;
  background-color: #f8f9fa;
  color: #333;
}

h2 {
  margin-top: 0;
  text-align: center;
  color: #1b1b1b;
  font-size: 1.4em;
}

input, select {
  width: 100%;
  margin-top: 5px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95em;
  box-sizing: border-box;
}

input:focus, select:focus {
  outline: none;
  border-color: #1DA1F2;
  box-shadow: 0 0 5px rgba(29,161,242,0.5);
}

button {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  background-color: #1DA1F2;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.95em;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #0d8ddb;
}

#status {
  margin-top: 10px;
  font-size: 0.9em;
  text-align: center;
}

#status.success {
  color: green;
}

#status.error {
  color: red;
}

ul {
  padding-left: 15px;
}

li {
  margin-bottom: 5px;
}

code {
  background: #e9ecef;
  display: block;
  padding: 4px 6px;
  margin-top: 2px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #2c3e50;
}

a {
  color: #1DA1F2;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Optional: Twitter handle at bottom */
#twitterHandle {
  display: block;
  margin-top: 15px;
  text-align: center;
  font-size: 0.9em;
}

/* Found results container */
#results {
  margin-top: 10px;
  font-size: 14px;
}

/* Each result card */
.result-card {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-size: 0.9em;
}

/* Keyword highlight */
.result-card b {
  color: #d6336c; /* bright pink/red for keyword */
}

/* URL link */
.result-card a {
  color: #1DA1F2;
  text-decoration: none;
  word-break: break-word;
}

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

/* Snippet line */
.result-card code {
  display: block;
  background-color: #f4f6f7;
  padding: 4px 6px;
  border-radius: 4px;
  margin-top: 4px;
  font-size: 0.85em;
  color: #495057;
}
/* Toggle Switch */
.toggle-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.site-label {
  margin-left: 10px;
  font-size: 0.95em;
  font-weight: 500;
  color: #333;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #1DA1F2;
}

input:checked + .slider:before {
  transform: translateX(22px);
}


/* Container for parameter links */
#linksWithParams {
  margin-top: 12px;
  max-height: 400px;
  overflow-y: auto;
}

/* Card style for each link */
.result-card {
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  word-wrap: break-word;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* Link inside card */
.result-card a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 500;
}

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