/* Surf Faucet v0.1.0 — Global Base CSS (theme-independent) */

/* Installer page */
.installer {
  min-height: 100vh;
  background: #0e0e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #ddd;
}

.installer-card {
  background: #16162a;
  border: 1px solid #2a2a45;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 560px;
  position: relative;
}

.installer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00ff88, #00d4ff);
  border-radius: 16px 16px 0 0;
}

.installer-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.installer-sub {
  color: #7878a0;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.installer-steps {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
}

.installer-step {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: #555;
  position: relative;
  padding-top: 36px;
}

.installer-step::before {
  content: attr(data-step);
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #2a2a45;
  color: #555;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #2a2a45;
}

.installer-step.active::before {
  background: #00ff88;
  color: #000;
  border-color: #00ff88;
}

.installer-step.done::before {
  content: '✓';
  background: rgba(0,255,136,0.15);
  color: #00ff88;
  border-color: #00ff88;
}

.installer-step + .installer-step::after {
  content: '';
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: #2a2a45;
}

.installer-form-group { margin-bottom: 18px; }

.installer-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8080a0;
  margin-bottom: 7px;
}

.installer-input {
  width: 100%;
  background: #0e0e1a;
  border: 1px solid #2a2a45;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.installer-input:focus {
  border-color: #00ff88;
  box-shadow: 0 0 0 3px rgba(0,255,136,0.1);
}

.installer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #00ff88;
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  font-family: inherit;
}

.installer-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.installer-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.installer-alert--error {
  background: rgba(255,64,96,0.1);
  border: 1px solid rgba(255,64,96,0.3);
  color: #ff4060;
}

.installer-alert--success {
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.3);
  color: #00ff88;
}

.installer-alert--info {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: #00d4ff;
}

.installer-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0e0e1a;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.check-pass { color: #00ff88; }
.check-fail { color: #ff4060; }
.check-warn { color: #ffcc00; }

/* Maintenance page */
.maintenance-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-page, #09090f);
  font-family: var(--font-body, sans-serif);
  color: var(--text-primary, #eee);
}

.maintenance-icon {
  font-size: 3.5rem;
  color: var(--accent, #00ff88);
  margin-bottom: 20px;
}

.maintenance-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.maintenance-msg {
  color: var(--text-secondary, #888);
  max-width: 480px;
  margin: 0 auto;
}

/* Print */
@media print {
  .navbar, .sidebar, .btn, .pagination, .filter-bar { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ddd; box-shadow: none; }
}

/* Focus outlines for accessibility */
:focus-visible {
  outline: 2px solid var(--accent, #00ff88);
  outline-offset: 2px;
}
