*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d1117;
  color: #e6edf3;
  min-height: 100vh;
}

.screen { display: none; }
.screen.active { display: block; }

/* Login */
#login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 24px;
}
#login-screen h1 { font-size: 2rem; font-weight: 700; }
#login-screen p { color: #8b949e; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: #238636; color: #fff; }
.btn-primary:hover { background: #2ea043; }
.btn-danger { background: #da3633; color: #fff; font-size: 0.8rem; padding: 6px 12px; }
.btn-danger:hover { background: #f85149; }
.btn-secondary { background: #21262d; color: #e6edf3; border: 1px solid #30363d; }
.btn-secondary:hover { background: #30363d; }

/* App shell */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid #21262d;
}
header .brand { font-weight: 700; font-size: 1.1rem; }
header .user { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #8b949e; }
header img { width: 28px; height: 28px; border-radius: 50%; }

main { max-width: 900px; margin: 40px auto; padding: 0 24px; }

/* Deploy form */
.deploy-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}
.deploy-card h2 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; color: #8b949e; text-transform: uppercase; letter-spacing: 0.05em; }
.form-row { display: flex; gap: 12px; }
.form-row input, .form-row select {
  flex: 1;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 10px 14px;
  color: #e6edf3;
  font-size: 0.95rem;
}
.form-row input:focus, .form-row select:focus { outline: none; border-color: #58a6ff; }

/* Project list */
.projects-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.projects-header h2 { font-size: 1.1rem; font-weight: 600; }
.projects-list { display: flex; flex-direction: column; gap: 12px; }
.project-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.project-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.project-meta { font-size: 0.8rem; color: #8b949e; display: flex; gap: 12px; }
.project-meta a { color: #58a6ff; text-decoration: none; }
.project-meta a:hover { text-decoration: underline; }
.project-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Status badge */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-creating { background: #4a3000; color: #e3b341; }
.badge-running  { background: #0a3622; color: #3fb950; }
.badge-failed   { background: #3d0014; color: #f85149; }
.badge-deleted  { background: #21262d; color: #8b949e; }

.empty { color: #8b949e; text-align: center; padding: 48px 0; }
