/* public.css — Public-facing pole status + subscribe page */

/* Search bar overlay */
.search-bar {
  position: absolute;
  top: 10px;
  left: 60px;
  z-index: 1000;
  display: flex;
  gap: 6px;
  align-items: center;
}

.search-bar input {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  width: 200px;
  outline: none;
}

.search-bar input:focus {
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.35);
}

.search-bar button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #007bff;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.15s;
}

.search-bar button:hover {
  background: #0056b3;
}

/* Subscribe form inside info panel */
.subscribe-form {
  margin-top: 12px;
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.subscribe-form h4 {
  font-size: 13px;
  margin-bottom: 8px;
  color: #333;
}

.subscribe-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
  margin-top: 8px;
}

.subscribe-form input[type="text"],
.subscribe-form input[type="tel"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
}

.subscribe-form .channel-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.subscribe-form .channel-options label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  cursor: pointer;
  margin-top: 0;
}

.subscribe-form .channel-options input[type="radio"] {
  margin: 0;
}

.subscribe-form .restore-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
}

.subscribe-form .restore-checkbox input[type="checkbox"] {
  margin: 0;
}

.subscribe-form button {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #007bff;
  color: #fff;
  transition: background 0.15s;
}

.subscribe-form button:hover {
  background: #0056b3;
}

/* Share link UI (inside SweetAlert) */
.share-link-box {
  margin-top: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: left;
}

.share-link-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.share-link-input-row {
  display: flex;
  gap: 6px;
}

.share-link-url {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
  background: #fff;
  color: #333;
}

.share-link-copy-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: #007bff;
  color: #fff;
  transition: background 0.15s;
  white-space: nowrap;
}

.share-link-copy-btn:hover {
  background: #0056b3;
}

/* Simplified legend for public */
.status-bar .legend-separator {
  margin-left: 8px;
  border-left: 1px solid #ccc;
  padding-left: 12px;
}

/* Mobile-friendly tweaks */
@media (max-width: 600px) {
  .search-bar {
    left: 10px;
    right: 10px;
  }

  .search-bar input {
    flex: 1;
    width: auto;
  }

  .info-panel {
    left: 10px;
    right: 10px;
    max-width: none;
    min-width: 0;
  }
}
