* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.container {
  max-width: 1200px;
  width: 100%;
  background: #161b22;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid #30363d;
}
h1 { font-size: 28px; margin-bottom: 6px; color: #f0f6fc; }
.subtitle { color: #8b949e; margin-bottom: 24px; font-size: 14px; }

.login-box {
  max-width: 400px;
  margin: 60px auto;
  text-align: center;
}
.login-box h1 { margin-bottom: 8px; }
.login-box .subtitle { margin-bottom: 24px; }
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 600; }
.form-group input {
  width: 100%;
  padding: 10px 12px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #c9d1d9;
  font-size: 14px;
  outline: none;
}
.form-group input:focus { border-color: #58a6ff; }
.login-box button {
  width: 100%;
  padding: 12px;
  background: #238636;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.login-box button:hover { background: #2ea043; }
.login-box button:disabled { background: #3d3d3d; cursor: not-allowed; }
.error-message { color: #f85149; margin-top: 12px; font-size: 14px; }

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.btn-logout {
  background: #da3633;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.btn-logout:hover { background: #f85149; }

.control-panel {
  background: #0d1117;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #30363d;
  margin-bottom: 20px;
}
.row { display: flex; gap: 20px; flex-wrap: wrap; }
.col { flex: 1; min-width: 250px; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type="text"], textarea {
  width: 100%;
  padding: 10px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #c9d1d9;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
input[type="text"]:focus, textarea:focus { border-color: #58a6ff; }
textarea { font-family: 'Courier New', monospace; }

.btn-primary {
  width: 100%;
  padding: 12px;
  background: #238636;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
}
.btn-primary:hover { background: #2ea043; }
.btn-primary:disabled { background: #3d3d3d; cursor: not-allowed; }

.btn-secondary {
  padding: 8px 16px;
  background: #1f6feb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 12px;
}
.btn-secondary:hover { background: #388bfd; }

.status-section { margin-bottom: 20px; }
.status-box {
  background: #0d1117;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #30363d;
  min-height: 50px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  margin-bottom: 8px;
}
.status-box .success { color: #3fb950; }
.status-box .error { color: #f85149; }
.status-box .loading { color: #d29922; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.progress-bar {
  width: 100%;
  height: 8px;
  background: #0d1117;
  border-radius: 4px;
  border: 1px solid #30363d;
  overflow: hidden;
}
.progress-bar #progressFill {
  height: 100%;
  background: #238636;
  width: 0%;
  transition: width 0.5s ease;
}
.progress-text { font-size: 12px; color: #8b949e; text-align: right; margin-top: 4px; }

.results-section { margin-bottom: 20px; }
.results-box {
  background: #0d1117;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #30363d;
  max-height: 500px;
  overflow-y: auto;
  font-size: 13px;
}
.results-box .info { color: #8b949e; font-style: italic; }

.log-section { margin-bottom: 20px; }
.log-box {
  background: #0d1117;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #30363d;
  max-height: 250px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  color: #8b949e;
}

@media (max-width: 768px) {
  .container { padding: 16px; }
  .row { flex-direction: column; }
}