/*!***********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/components/Header.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************/
.header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  z-index: 10;
}

.header-top {
  height: 61px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1;
}

.brand-avatar {
  width: 32px;
  height: 32px;
  background: #10b981;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 18px;
  font-weight: bold;
  color: #111827;
  line-height: 18px;
}

.brand-subtitle {
  font-size: 12px;
  color: #6b7280;
  line-height: 16px;
}

.brand-settings-button {
  background: #374151;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.brand-settings-button:hover {
  background: #4b5563;
}

.settings-icon {
  width: 14px;
  height: 14px;
}

.header-tabs {
  height: 51px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid #e5e7eb;
}

.tab {
  height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tab:hover {
  color: #111827;
}

.tab.active {
  color: #111827;
  border-bottom: 2px solid #000;
}

.tab span {
  line-height: 24px;
  pointer-events: none;
}



/*!********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/components/SearchTermsPage.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************/
.search-terms-page {
  padding: 24px;
  background: white;
  min-height: calc(100vh - 112px);
}

/* Credit Usage Banner */
.credit-usage-banner {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.credit-usage-left {
  display: flex;
  align-items: center;
  gap: 94px;
}

.credit-usage-label {
  font-size: 14px;
  font-weight: 500;
  color: #1d4ed8;
}

.credit-values {
  display: flex;
  gap: 30px;
}

.credit-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.credit-number {
  font-size: 16px;
  font-weight: bold;
  color: #111827;
}

.credit-label {
  font-size: 12px;
  color: #1d4ed8;
}

.credit-usage-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.view-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
}

.view-toggle span {
  font-size: 14px;
  color: #1d4ed8;
  cursor: pointer;
}

.view-toggle span.active {
  color: #1d4ed8;
  font-weight: 500;
}

.toggle-switch {
  width: 40px;
  height: 20px;
  background: #d1d5db;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
}

.toggle-slider {
  width: 20px;
  height: 20px;
  background: #1d4ed8;
  border-radius: 50%;
  position: absolute;
  left: 0;
  transition: left 0.2s;
}

.toggle-slider.active {
  left: 20px;
}

.usage-stats {
  display: flex;
  gap: 16px;
  align-items: center;
}

.usage-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.usage-number {
  font-size: 14px;
  font-weight: bold;
  color: #111827;
  text-align: right;
}

.usage-label {
  font-size: 12px;
  color: #1d4ed8;
}

.info-icon {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Search and Action Bar */
.search-action-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.search-container {
  position: relative;
  flex: 1 1;
  max-width: 508.5px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
}

.search-input {
  width: 100%;
  height: 38px;
  padding: 7px 12px 7px 39px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: #1f2937;
}

.search-input::placeholder {
  color: #9ca3af;
}

.group-by-button {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.group-by-label {
  font-size: 14px;
  color: #4b5563;
  font-weight: 600;
}

.group-by-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}

.chevron-icon {
  width: 10px;
  height: 6px;
  margin-left: auto;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.action-button {
  height: 38px;
  padding: 9px 16px;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.action-button:hover {
  opacity: 0.9;
}

.action-button.primary {
  background: #1d4ed8;
  color: white;
}

/* Table */
.search-terms-table {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.table-header {
  display: flex;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  height: 44.5px;
  align-items: center;
}

.table-header-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.checkbox-cell {
  width: 45px;
  justify-content: center;
}

.term-cell {
  flex: 1 1;
  min-width: 356.953px;
}

.engine-cell {
  width: 176.875px;
}

.visibility-cell {
  width: 168.906px;
}

.schedule-cell {
  width: 175.281px;
}

.updated-cell {
  width: 192.813px;
}

.status-cell {
  width: 146.594px;
}

.actions-cell {
  width: 100px;
  justify-content: flex-end;
}

.table-body {
  background: white;
}

.term-group {
  border-bottom: 1px solid #f3f4f6;
}

.term-row {
  display: flex;
  align-items: center;
  min-height: 49px;
  border-bottom: 1px solid #f3f4f6;
}

.term-row.highlighted {
  background: rgba(239, 246, 255, 0.3);
}

.term-row.sub-row {
  background: white;
}

.term-row.sub-row.highlighted {
  background: rgba(239, 246, 255, 0.3);
}

.table-cell {
  display: flex;
  align-items: center;
  padding: 12.5px 16px;
  font-size: 14px;
  color: #111827;
}

.expand-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.term-info {
  flex: 1 1;
}

.term-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-name {
  font-size: 16px;
  font-weight: bold;
  color: #111827;
}

.term-badges {
  display: flex;
  gap: 8px;
  margin-left: 19px;
}

.badge {
  font-size: 12px;
  font-weight: 500;
}

.badge.active {
  color: #16a34a;
}

.badge.inactive {
  color: #9ca3af;
}

.sub-term-indicator {
  color: #9ca3af;
  font-size: 12px;
  margin-right: 12px;
}

.sub-term-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-term-name {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.sub-term-topic {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #9ca3af;
}

.engine-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.engine-icon {
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #111827;
}

.engine-badge span {
  font-size: 12px;
  font-weight: 500;
  color: #111827;
}

.visibility-not-found {
  color: #9ca3af;
  font-size: 14px;
}

.visibility-found {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.visibility-percentage {
  font-size: 14px;
  font-weight: bold;
  color: #d97706;
}

.visibility-label {
  font-size: 12px;
  color: #1d4ed8;
}

.schedule-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.schedule-badge.weekly {
  background: #faf5ff;
  border: 1px solid #f3e8ff;
  color: #7e22ce;
}

.schedule-runs {
  font-size: 12px;
  color: #6b7280;
}

.updated-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.updated-badge.old {
  background: #fef3c7;
  border: 1px solid #fef9c3;
  color: #d97706;
}

.status-toggle {
  width: 40px;
  height: 20px;
  background: #1d4ed8;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
}

.status-toggle .toggle-slider {
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: calc(50% + 10.17px);
  transform: translate(-50%, -50%);
  transition: left 0.2s;
}

.status-toggle:not(.active) .toggle-slider {
  left: 0;
  transform: translateY(-50%);
}

.actions-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* Metrics Snapshot */
.metrics-snapshot {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin: 0 56px;
  box-shadow: 0px 0px 0px 0px rgba(0,0,0,0);
}

.metrics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 16px;
}

.metrics-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #6b7280;
}

.metrics-link {
  color: #1d4ed8;
  text-decoration: none;
  font-size: 13.796px;
}

.trailing-average {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trailing-label {
  font-size: 12px;
  color: #9ca3af;
}

.trailing-buttons {
  display: flex;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  overflow: hidden;
}

.trailing-btn {
  padding: 4px 8px;
  border: none;
  background: white;
  color: #4b5563;
  font-size: 12px;
  cursor: pointer;
  border-right: 1px solid #d1d5db;
}

.trailing-btn:last-child {
  border-right: none;
}

.trailing-btn.active {
  background: #1d4ed8;
  color: white;
}

.last-run-btn {
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: white;
  color: #4b5563;
  font-size: 12px;
  cursor: pointer;
  margin-left: 8px;
}

.metrics-cards {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.metric-card {
  width: 128px;
  height: 74px;
  padding: 12px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-card.visibility-score {
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.metric-card.avg-position,
.metric-card.citations {
  background: white;
  border: 1px solid #e5e7eb;
}

.metric-label {
  font-size: 12px;
  color: #6b7280;
}

.metric-value {
  font-size: 19.643px;
  font-weight: bold;
  color: #111827;
}

.metric-value.green {
  color: #16a34a;
  font-size: 20px;
}

.competitors-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.competitors-title {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.competitors-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px;
}

.competitor-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}

.competitor-name {
  color: #1f2937;
}

.competitor-score {
  font-weight: 500;
}

.competitor-score.green {
  color: #16a34a;
}

.competitor-score.orange {
  color: #d97706;
}


