/* Scoped CSS for sites.html */
.sites-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 2em;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}
.sites-table th, .sites-table td {
  border-bottom: 1px solid #e0e0e0;
  padding: 0.75em 1em;
  text-align: center;
  font-size: 0.93rem;
  background: transparent;
}
.sites-table th {
  background: #e3f0fa;
  color: #23405c;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: 0.04em;
  border-bottom: 2.5px solid #b3c7dd;
  box-shadow: 0 2px 8px rgba(42,140,255,0.04);
  position: sticky;
  top: 0;
  z-index: 2;
}
.sites-table input[type="text"] {
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  padding: 0.3em 0.5em;
  font-size: 1rem;
  background: #fafbfc;
  transition: border 0.2s;
  width: 100%;
}
.sites-table input[type="text"]:focus {
  border-color: #2a3a4a;
  outline: none;
}
.sites-table input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #199bd7;
  margin: 0 auto;
  display: block;
}
.sites-table td:last-child {
  text-align: center;
}
.delete-site-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.delete-site-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #e74c3c;
  stroke-width: 2;
  transition: stroke 0.2s;
}
.delete-site-btn:hover svg,
.delete-site-btn:focus svg {
  stroke: #a00;
}
.table-actions {
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  gap: 1em;
}
.icon-btn {
  background: #199bd7;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5em 1.2em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.icon-btn:hover {
  background: #1766b3;
}
#sites-unsaved-indicator {
  color: #c00;
  font-weight: 500;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.3);
}
.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 2em 2.5em;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  position: relative;
}
.close {
  position: absolute;
  right: 1em;
  top: 1em;
  font-size: 1.5em;
  color: #888;
  cursor: pointer;
}
.close:hover {
  color: #c00;
}
#site-form label {
  display: block;
  margin-top: 1em;
  margin-bottom: 0.2em;
  font-weight: 500;
}
#site-form input[type="text"] {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}
#site-form input[type="checkbox"] {
  margin-left: 0.5em;
}
#site-form button[type="submit"] {
  margin-top: 1.5em;
  width: 100%;
}
.toggle-switch-container {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
input:checked + .slider {
  background-color: #2a8cff;
}
input:checked + .slider:before {
  transform: translateX(20px);
}
.toggle-label {
  margin-left: 0.5em;
  font-size: 1em;
  color: #2a3a4a;
  cursor: pointer;
  user-select: none;
}
.table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5em;
  margin-bottom: 0.5em;
  position: relative;
}

.sites-table th:nth-child(1),
.sites-table td:nth-child(1) {
  width: 60px;   /* adjust as needed */
  text-align: center;
}