/* ====== KazBoiler UI — black/red/white ====== */
:root {
  --bg: #ffffff;
  --ink: #101113;
  --muted: #6b7280;
  --red: #d40011;
  --black: #000000;
  --line: #e6e8ec;
}

/* reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
  background: #f5f6f8;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ====== Header (white, centered logo) ====== */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 16px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
header img {
  height: 60px;   /* при необходимости подгоните высоту */
  width: auto;
  display: block;
}
header h1 { display: none; } /* текст заголовка не показываем, оставляем только логотип */

/* ====== Layout ====== */
.container {
  max-width: 820px;
  margin: 22px auto;
  padding: 0 14px;
}

.card {
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .06);
  padding: 18px;
  margin-bottom: 16px;
}
.card h2 {
  margin: 0 0 12px 0;
  font-size: 18px;
}

/* ====== Form ====== */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #c7c9cf;
  box-shadow: 0 0 0 3px rgba(212, 0, 17, .12); /* red glow */
}

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

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

/* ====== Buttons ====== */
button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
}

.btn {
  background: linear-gradient(90deg, #000, #d40011);
  color: #fff;
}
.btn:hover {
  filter: brightness(1.05);
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--line);
  color: #111;
}
.btn-outline:hover {
  border-color: #bbb;
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* ====== Status ====== */
.status {
  padding: 12px;
  border-radius: 12px;
  margin-top: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}
.status.ok {
  background: #e9fff0;
  color: #0a7a3b;
  border-color: #bfe7cb;
}
.status.bad {
  background: #fff1f1;
  color: #b00012;
  border-color: #f0c4c4;
}

/* ====== Tables (админка) ====== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
table th,
table td {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
table th {
  background: #111;
  color: #fff;
  position: sticky; /* удобно при прокрутке */
  top: 0;
  z-index: 1;
}
table tr:nth-child(even) td {
  background: #fafafa;
}

/* ====== Utilities ====== */
.center { text-align: center; }
.right  { text-align: right; }
.hidden { display: none !important; }

/* ====== Responsive ====== */
@media (max-width: 720px) {
  .row { grid-template-columns: 1fr; }
  header img { height: 50px; }
  .card { padding: 16px; }
}
