:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --border: #e2e8f0;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; padding: 1rem; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem; border-radius: var(--radius);
  font-weight: 500; cursor: pointer; border: none; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { background: var(--danger); color: white; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.status-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; margin-right: 8px;
}
.status-online { background: var(--success); }
.status-offline { background: var(--danger); }
.status-warning { background: var(--warning); }

.log-console {
  background: #1e293b; color: #e2e8f0; font-family: monospace;
  font-size: 0.85rem; padding: 1rem; border-radius: var(--radius);
  height: 300px; overflow-y: auto; white-space: pre-wrap;
}
.log-error { color: #f87171; }
.log-warn { color: #fbbf24; }

.loading-screen {
  display: flex; height: 100vh; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--text-muted);
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }

/* Tambahan untuk Batch 5 */
.app-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.tabs { display: flex; gap: 0.5rem; }
.tabs button {
  padding: 0.5rem 1rem; background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; font-weight: 500;
}
.tabs button.active { background: var(--primary); color: white; border-color: var(--primary); }

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.stat-box {
  background: var(--bg); padding: 1rem; border-radius: var(--radius); text-align: center;
  border-left: 4px solid var(--primary);
}
.stat-box.success { border-left-color: var(--success); }
.stat-box.warning { border-left-color: var(--warning); }
.stat-box.danger { border-left-color: var(--danger); }
.stat-value { font-size: 1.8rem; font-weight: bold; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

.action-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-secondary { background: #e2e8f0; color: #0f172a; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.8rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.input-text {
  width: 100%; padding: 0.5rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 1rem;
}
.checkbox-list { max-height: 200px; overflow-y: auto; border: 1px solid var(--border); padding: 0.5rem; border-radius: var(--radius); }
.checkbox-item { padding: 0.25rem 0; }
.checkbox-item.disabled { opacity: 0.5; }

.alert { padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-warning { background: #fef3c7; color: #92400e; }

.badge { padding: 0.25rem 0.5rem; border-radius: 99px; font-size: 0.75rem; font-weight: bold; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }

.log-time { color: #94a3b8; }
.log-module { color: #38bdf8; font-weight: bold; }