:root {
  --bg-color: #f5f7fa;
  --text-color: #333;
  --card-bg: #fff;
  --online-color: #4CAF50;
  --offline-color: #F44336;
  --response-color: #2196F3;
  --primary-color: #4e54c8;
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #f0f0f0;
  --card-bg: #2d2d2d;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s;
  padding: 20px;
  margin: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  color: var(--text-color);
}

.controls {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

button {
  padding: 10px 15px;
  background: #4e54c8;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  flex: 1;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  background: var(--card-bg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-card span:first-child {
  font-size: 24px;
  font-weight: bold;
  display: block;
}

.online { color: var(--online-color); }
.offline { color: var(--offline-color); }
.response { color: var(--response-color); }

.server-card {
  background: var(--card-bg);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin-right: 10px;
}

.server-info {
  display: flex;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.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: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4e54c8;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.hak-cipta {
  text-align: center;
  margin-top: 25px;
  padding: 15px 0;
  color: var(--text-color);
  font-size: 0.85em;
  opacity: 0.8;
  border-top: 1px solid rgba(0,0,0,0.1);
}

[data-theme="dark"] .hak-cipta {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.live-clock {
  text-align: center;
  font-size: 1.2em;
  margin: -10px 0 15px 0;
  color: var(--text-color);
  opacity: 0.8;
  font-weight: 500;
}

.status {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 15px;
  box-shadow: 0 0 8px currentColor;
}

.status.online { background: var(--online-color); }
.status.offline { background: var(--offline-color); }

.server-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.server-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.server-status {
  font-weight: 600;
  font-size: 1.1rem;
}

.fa-spinner {
  animation: spin 1.5s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}
