/* Google Fonts Loader Container - Match specimen style */
#font-loader-container {
  background-color: #fff;
  padding: 0;
  margin-bottom: 0;
}

/* Google Fonts Loader Styles - Match specimen grid layout */
.font-loader {
  background-color: #fff;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 18px;
  margin-top: 0;
  box-shadow: none;
}

/* Match the "Text sample" h2 style exactly */
.font-loader h2 {
  font: normal 13px/18px Verdana, sans-serif;
  color: #c00;
  margin: 18px 0;
}

/* Match specimen span style for subtitles */
.font-loader span {
  color: #999;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}

.font-url-input,
.font-name-input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #eeeee2;
  border-radius: 0;
  font-size: 13px;
  position: relative;
  background-color: #fff;
}

.font-url-input {
  font-family: Verdana, sans-serif;
}

.font-name-input {
  font-family: Verdana, sans-serif;
}

.font-url-input:focus,
.font-name-input:focus {
  outline: none;
  border-color: #c00;
  background-color: #fffff2;
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 80px; /* Account for button width */
  background: white;
  border: 1px solid #eeeee2;
  border-top: none;
  border-radius: 0;
  box-shadow: none;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
}

.search-result-item {
  padding: 6px 8px;
  cursor: pointer;
  border-bottom: 1px solid #eeeee2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Verdana, sans-serif;
  font-size: 13px;
}

.search-result-item:hover {
  background-color: #fffff2;
}

.search-result-item:last-child {
  border-bottom: none;
}

.font-name {
  font-weight: 500;
  color: #333;
}

.font-category {
  font-size: 13px;
  color: #999;
  text-transform: capitalize;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

/* Position search input container relatively */
.input-group {
  position: relative;
}

.load-font-btn,
.quick-font-btn,
.reset-font-btn {
  background-color: #eeeee2;
  color: #888882;
  border: none;
  padding: 3px 8px;
  border-radius: 0;
  cursor: pointer;
  font-size: 13px;
  font-family: Verdana, sans-serif;
  text-decoration: none;
}

.load-font-btn:hover,
.quick-font-btn:hover,
.reset-font-btn:hover {
  background-color: #fffff2;
  color: #888882;
}

.load-font-btn:active,
.quick-font-btn:active,
.reset-font-btn:active {
  background-color: #000;
  color: #fff;
}

.quick-fonts {
  border-top: 1px solid #eeeee2;
  padding-top: 18px;
  margin-top: 18px;
}

.quick-font-btn {
  background-color: #eeeee2;
  color: #888882;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 3px 8px;
  font-size: 13px;
}

.quick-font-btn:hover {
  background-color: #fffff2;
}

.reset-font-btn {
  background-color: #eeeee2;
  color: #c00;
  margin-top: 18px;
  font-size: 13px;
  padding: 3px 8px;
}

.reset-font-btn:hover {
  background-color: #fffff2;
  color: #c00;
}

.load-status {
  margin-top: 10px;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
  min-height: 20px;
}

.load-status.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.load-status.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.load-status.loading {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.load-status.info {
  background-color: #cce7ff;
  color: #004085;
  border: 1px solid #b8daff;
}

/* WCAG Compliance Indicators */
.wcag-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border-radius: 50%;
  font-size: 8px;
  line-height: 12px;
  text-align: center;
  color: white;
  font-weight: bold;
  vertical-align: middle;
}

.wcag-pass {
  background-color: #28a745;
}

.wcag-fail {
  background-color: #dc3545;
}

.wcag-indicator::before {
  content: "✓";
}

.wcag-fail::before {
  content: "✗";
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .font-url-input {
    margin-bottom: 10px;
  }

  .quick-font-btn {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    margin-right: 0;
  }
}
