/* SHiNE Server Admin UI — тёмная тема */
:root {
  --bg: #111;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #4a9eff;
  --accent-hover: #6ab4ff;
  --success: #4caf50;
  --error: #f44336;
  --warning: #ff9800;
  --radius: 8px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
  font-size: 14px;
  line-height: 1.5;
  padding: 24px 16px;
}

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

h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 13px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.card h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.field {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input[type="text"], input[type="password"], textarea {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: monospace;
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
  border-color: var(--accent);
}

input[type="text"][readonly] {
  opacity: 0.6;
}

textarea {
  min-height: 80px;
}

.hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

button {
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.status {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-top: 16px;
  word-break: break-all;
  display: none;
}

.status.info    { display: block; background: #1a2433; border: 1px solid #2a4a6a; color: #7bb8ff; }
.status.success { display: block; background: #1a2e1a; border: 1px solid #2a4a2a; color: #7dcc7d; }
.status.error   { display: block; background: #2e1a1a; border: 1px solid #5a2a2a; color: #f08080; }

.pda-info {
  display: none;
  margin-top: 12px;
}

.pda-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.pda-row:last-child { border-bottom: none; }

.pda-key   { color: var(--text-muted); min-width: 160px; }
.pda-value { color: var(--text); font-family: monospace; text-align: right; word-break: break-all; }

.nav-links {
  margin-bottom: 20px;
}

.nav-links a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 16px;
  font-size: 13px;
}

.nav-links a:hover { text-decoration: underline; }

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
