/* Page-specific styles for v6sites_optimized.php (CSP-safe external sheet). */

.banner-ipv6 {
  background: #43a047;
  color: #fff;
  padding: 16px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  margin-bottom: 20px;
}

.banner-ipv4 {
  background: #c62828;
  color: #fff;
  padding: 16px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  margin-bottom: 20px;
}

.banner-database-error {
  background: #ff9800;
  color: #fff;
  padding: 16px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  margin-bottom: 20px;
}

.banner-detected-ip {
  font-size: 0.9em;
  font-weight: normal;
}

/* Allow title tooltips to extend outside the table wrapper */
.table-container {
  overflow: visible;
}

.table-container table {
  overflow: visible;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 300px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -150px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  pointer-events: none;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.address-cell {
  font-family: monospace;
  font-size: 0.9em;
  word-break: break-all;
  max-width: 300px;
}

.search-form {
  flex-wrap: wrap;
}

.search-input {
  min-width: 200px;
}

.checkbox-control {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.checkbox-control label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 0.9em;
}

.checkbox-control input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.export-link {
  display: inline-block;
  background: #2196F3;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.export-link:hover {
  background: #1976D2;
  text-decoration: none;
  color: white;
}

.search-disabled-message {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 5px;
  padding: 15px;
  margin: 10px 0;
  color: #856404;
}
