:root {
  --primary-color: #8000FF;   /* 🟣 Bright Purple */
  --primary-hover: #5e00b3;   /* 🟣 Darker purple for hover */
  --text-color: #222;
  --bg-color: #fff;
  --font-family: 'Roboto', sans-serif;
  --border-radius: 6px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.at-keyword-tool {
  font-family: var(--font-family);
  background: var(--bg-color);
  color: var(--text-color);
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.at-keyword-tool h1 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-color);  /* 🟣 Heading color */
}

.at-keyword-tool h3 {
  color: var(--primary-color);  /* 🟣 Subheading color */
  margin-top: 20px;
}

.tool-container {
  background: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.tool-container textarea {
  width: 100%;
  min-height: 180px;
  padding: 10px;
  border: 2px solid var(--primary-color);  /* 🟣 Purple border */
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  resize: vertical;
  outline: none;
}

.tool-container textarea:focus {
  border-color: var(--primary-hover);
  box-shadow: 0 0 5px var(--primary-hover);
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.options input[type="text"] {
  flex: 1;
  padding: 8px;
  border-radius: var(--border-radius);
  border: 1px solid #ccc;
}

.options input[type="text"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 4px var(--primary-color);
  outline: none;
}

.options label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  gap: 5px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.actions button {
  background: var(--primary-color);  /* 🟣 Purple buttons */
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.actions button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.actions .secondary {
  background: #777;
}

.results {
  margin-top: 20px;
}

.results table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.results th,
.results td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.results th {
  background: #f5f5f5;
}

.highlight {
  background: #e5ccff;  /* 🟣 Light purple highlight */
  font-weight: bold;
}


@media (max-width: 600px) {
  .options {
    flex-direction: column;
  }

  .actions {
    flex-direction: column;
  }

  .actions button {
    width: 100%;
  }
}
