/* Prodoktor CMS - global styles (night mode) */

:root {
  --bg: #141414;
  --panel: #1e1e1e;
  --panel-2: #242424;
  --border: #343434;
  --text: #e7e7e7;
  --muted: #a9a9a9;
  --link: #5aa7ff;

  --success: #2e7d32;
  --success-2: #388e3c;
  --danger: #c62828;
  --danger-2: #d32f2f;
  --info: #1565c0;
  --info-2: #1976d2;
  --secondary: #424242;
  --secondary-2: #4f4f4f;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.45;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 18px;
}

.container-narrow {
  max-width: 520px;
}

.page-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin: 0 0 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.card-narrow {
  width: 30%;
  min-width: 340px;
  max-width: 520px;
}
@media (max-width: 720px) {
  .card-narrow {
    width: 100%;
    min-width: 0;
  }
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) {
  .row { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #121212;
  color: var(--text);
  outline: none;
}

.form-narrow {
  width: 30%;
  min-width: 280px;
}
@media (max-width: 720px) {
  .form-narrow {
    width: 100%;
    min-width: 0;
  }
}

textarea { min-height: 100px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: rgba(90,167,255,0.6);
  box-shadow: 0 0 0 4px rgba(90,167,255,0.15);
}

.form-actions {
  margin-top: 14px; /* gap from previous input */
  display: flex;
  justify-content: center;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.alert {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}
.alert-danger {
  border-color: rgba(198,40,40,0.6);
  background: rgba(198,40,40,0.12);
}
.alert-success {
  border-color: rgba(46,125,50,0.6);
  background: rgba(46,125,50,0.12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--secondary);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 120ms ease, filter 120ms ease, background 120ms ease;
  user-select: none;
}
.btn:hover { background: var(--secondary-2); filter: brightness(1.03); }
.btn:active { transform: translateY(1px); }

.btn-success { background: var(--success); }
.btn-success:hover { background: var(--success-2); }

.btn-danger { background: var(--danger); }
.btn-danger:hover { background: var(--danger-2); }

.btn-info { background: var(--info); }
.btn-info:hover { background: var(--info-2); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}
th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; }

code {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 2px 6px;
  border-radius: 8px;
  color: #d7e8ff;
}

/* Feature selection grid */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
}
.feat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(255,255,255,0.10);
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.feat input { width: auto; margin-top: 2px; }

