.subtitle {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* FIELD CARDS */

.field-card {
  cursor: pointer;
  transition: var(--transition);
}

.field-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px var(--accent-glow);
}

.active-field {
  border: 1px solid var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ZONE CARDS */

.zone-card {
  transition: var(--transition);
}

.zone-card:hover {
  transform: translateY(-6px);
}

.warning-zone {
  border-left: 3px solid var(--yellow);
}

.danger-zone {
  border-left: 3px solid var(--red);
}

.progress {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 6px;
  background: var(--accent);
  border-radius: 6px;
  transition: width 1s ease;
}

/* RULES */

.rule {
  margin-top: 15px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  transition: var(--transition);
}

.rule:hover {
  transform: translateX(5px);
}

/* TABLE */

.table-card {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  text-align: left;
}

th {
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: rgba(255,255,255,0.05);
}

.badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.online {
  background: rgba(34,197,94,0.1);
  color: var(--accent);
}

.warning {
  background: rgba(250,204,21,0.1);
  color: var(--yellow);
}

.offline {
  background: rgba(239,68,68,0.1);
  color: var(--red);
}

.link {
  color: var(--accent);
  cursor: pointer;
}

.manual-card {
  padding: 30px;
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.button-row {
  margin-top: 20px;
  margin-bottom: 20px;
}

.btn-start {
  background: #00c853;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  color: white;
  cursor: pointer;
}

.btn-stop {
  background: #2f3545;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  color: white;
  margin-left: 10px;
  cursor: pointer;
}

.status-box {
  padding: 15px;
  border-radius: 12px;
  background: rgba(0,255,140,0.08);
  font-weight: 500;
}

.status-on {
  color: #00ff8c;
}

.status-off {
  color: #ff4d4d;
}

/* Toggle Switch */

.switch {
  position: relative;
  width: 50px;
  height: 26px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #3a4258;
  border-radius: 30px;
  transition: 0.3s;
}

.slider:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background: #00ff8c;
  box-shadow: 0 0 10px rgba(0,255,140,0.6);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

input:disabled + .slider {
  opacity: 0.5;
}

.button-row button {
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.card.section {
  position: relative;
  z-index: 1;
}
