/* 🎨 style_base.css
   Zawiera bazowe style wspólne dla całego projektu:
   – zmienne globalne (:root),
   – podstawowy reset i typografię (body, button, nagłówki),
   – uniwersalne klasy pomocnicze (np. .ukryj, .highlight),
   – domyślne style tabel i komórek,
   – wspólne formatowanie pól wyboru (checkboxy).
*/

/* ------------------------------ */
/* 🧱 Zmienne globalne            */
/* ------------------------------ */

:root {
  --skala-podgladu: 2;         /* współczynnik skalowania podglądu dekoracji */
  --tlo-intensywnosc: 0.22;    /* 💡 Wartość od 0 (niewidoczne) do 1 (pełne) */
}

/* ------------------------------ */
/* 🌐 Podstawowy reset i wygląd  */
/* ------------------------------ */

body {
  font-family: sans-serif;
  margin: 20px;
  position: relative; /* potrzebne dla ::before z position: fixed */
}

/* 🎨 Tło strony – powtarzany wzór z regulowaną przezroczystością */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;

  background-image: var(--tlo-obrazek, none);
  background-repeat: var(--tlo-repeat, no-repeat);
  background-size: var(--tlo-size, cover);
  background-position: var(--tlo-position, center center);

  opacity: var(--tlo-intensywnosc); /* 🧩 intensywność sterowana zmienną */
}

h2 {
  margin: 0;
}

button {
  margin-top: 15px;
  padding: 5px 15px;
  cursor: pointer;
}

.ukryj {
  display: none;
}

/* ------------------------------ */
/* 📊 Tabele i komórki           */
/* ------------------------------ */

table {
  border: 3px solid #172d54;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #faf6ee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px -4px rgba(18, 38, 74, 0.28);
  transition: box-shadow 0.2s ease;
}

th,
td {
  border-right: 1px solid #e2d9c8;
  border-bottom: 1px solid #e2d9c8;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.93em;
}

th:last-child,
td:last-child {
  border-right: none;
}

table tr:last-child td {
  border-bottom: none;
}

th {
  background: linear-gradient(180deg, #355c9d 0%, #224278 100%);
  color: #ffffff;
  font-weight: 700;
  border-bottom: 2px solid #1a325e;
}

th span {
  color: #fef08a !important;
}

/* 👉 Powiększenie checkboxów */


.highlight {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #38bdf8 !important;
  font-weight: bold;
}

.highlight-warning {
  background-color: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #ef4444 !important;
  font-weight: bold;
}

