:root {
  --blue: #005ca7;
  --blue-hover: #0070cc; /* jaśniejszy odcień na hover */
  --gray: #f5f5f5;
  --white: #ffffff;
  --yellow: #f8c53a;
  --darkgray: #444444;
  --darkgray2: #292727;
  --footerBorderColor: #004680;
}

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

body {
  font-family: Arial, sans-serif;
  background-color: var(--gray);
  color: var(--darkgray2);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: var(--blue);
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

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

input[type="submit"] {
    background-color: #005baa;       /* głęboki niebieski */
    color: #ffffff;                  /* biały tekst */
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #0073e6;       /* jaśniejszy niebieski przy najechaniu */
}


/* input */
input[type="text"] {
  width: 100%;
  max-width: 350px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  color: var(--darkgray2);
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 4px rgba(0, 92, 167, 0.4);
  outline: none;
}

input[type="text"]:hover {
  border-color: var(--blue-hover);
}
/* input end */



/* Nowy nagłówek */
.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  border-bottom: 2px solid var(--footerBorderColor);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  z-index: 1000;
}

.header-baners {
  display: flex;
  align-items: center;
  gap: 2em;
}

.header-baners img {
  max-height: 60px;
}

.header-btns {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.header-btns button {
  background: transparent;
  border: none;
  color: var(--blue);
  padding: 0.5em 1em;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
}


.header-btns button:hover {
  background-color: var(--blue);
  color: var(--white);
}

/* Główna zawartość */
main {
  margin-top: 120px; /* wysokość nagłówka */
  display: flex;
  flex-direction: row;
  padding: 2em;
  gap: 2em;
  flex: 1;
}

.side-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.side-menu button {
  background-color: var(--blue);
  color: var(--white);
  border: none;
  padding: 1.7em 1.3em; /* więcej miejsca w pionie */
  font-weight: bold;
  cursor: pointer;
  text-align: left;
  font-size: 0.85em;
  text-transform: uppercase;
  font-family: sans-serif;
  position: relative; /* potrzebne dla ::before */
  transition: background-color 0.5s ease, color 0.5s ease; /* ? to dodaje płynne przejście */
}

.side-menu button::before {
  content: '';
  display: block;
  width: 100%;
  height: 4px; /* wysokość złotego paska */
  background-color: #FFD700; /* kolor złoty */
  position: absolute;
  top: 0;
  left: 0;
}




  /* 🔹 Podmenu (ukryte domyślnie) */
  .submenu {
    display: none;
    flex-direction: column;
    gap: 0.5em;
    padding-left: 1em;
    border-left: 3px solid #ffd700;
  }

  .submenu.open {
    display: flex;
  }

  /* 🔹 Styl przycisku rozwijającego */
  .toggle-section::after {
    content: " ▼";
    font-size: 0.9em;
  }

  .submenu.open + .toggle-section::after,
  .toggle-section.open::after {
    content: " ▲";
  }

  /* 🔹 Przyciski w submenu — trochę mniejsze */
  .submenu button {
    /* background-color: #0070cc; */
    background-color: var(--blue);
    padding: 1em;
    font-size: 0.8em;
  }





.side-menu button:hover {
  background-color: var(--gray);
  color: var(--blue);
}

.content {
  flex: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: justify;
  align-items: top;
}

.content img {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--blue);
  border-radius: 5px;
}

.bottom-bar {
  background-color: var(--footerBorderColor);
  height: 40px;
  width: 100%;
}


.custom-footer {
  margin-top: auto;
  width: 100%;
}

.footer-top-bar {
  background-color: var(--blue);
  height: 2px;
  width: 100%;
}

.footer-content {
  background-color: var(--white);
  text-align: center;
  padding: 1em;
  font-size: 0.6em;
  text-transform: uppercase;
  color: var(--darkgray2);
}

.footer-content a {
  color: var(--blue);
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}


/* Responsywność */
@media (max-width: 768px) {
  main {
    flex-direction: column;
  }

  .side-menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .side-menu button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .custom-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1em;
  }

  .header-baners {
    margin-bottom: 0.5em;
    justify-content: center;
  }

  .header-btns {
    flex-direction: column;
    align-items: center;
  }

  .header-btns button {
    font-size: 1.2em; /* nieco mniejsze na mobilu */
    white-space: normal;
    text-align: center;
  }
}
@media (max-width: 768px) {
  main {
    margin-top: 200px; /* lub więcej ? dopasuj do realnej wysokości nagłówka */
  }
}


.mobim {
  display: none;
  font-size: 2em;
  cursor: pointer;
  color: var(--blue);
}

/* Menu mobilne (ukryte na początku) */
.side-menu.mobile-hidden {
  display: none;
  flex-direction: column;
  background-color: var(--white);
  padding: 1em;
  border-top: 2px solid var(--blue);
  z-index: 999;
}

/* Stylowanie dla mobilnych */
@media (max-width: 768px) {
  .mobim {
    display: block;
  }

  .side-menu {
    display: none; /* domyślnie chowamy */
  }

  .side-menu.open {
    display: flex;
  }

  main {
    padding: 1em; /* trochę mniejsze paddingi */
  }
}



/* tabela */
/* Stylizacja dla tabeli */
.table {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    table-layout: auto;
}

.table th, .table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
    font-size: 13px;
}

.table th {
    background-color: #005ca7;
    color: white;
    text-transform: uppercase;
    font-size: 12px;
}

.table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.table tr:hover {
    background-color: #ddd;
}

.table a {
    color: #005ca7;
    text-decoration: none;
    font-weight: bold;
}

.table a:hover {
    color: #6a9fd0;
    text-decoration: underline;
}





/* Estetyczny box na treść */
.info-box {
  background-color: var(--white);
  border: 1px solid #ddd;
  border-right: 6px solid var(--blue);
  border-radius: 10px;
  padding: 2em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* max-width: 1500px; */
  line-height: 1.6;
  color: var(--darkgray2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: none; /* albo usuń tę właściwość */
  padding: 2em;
  box-sizing: border-box; /* żeby padding nie zwiększał szerokości */
}

.info-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.info-box h2 {
  color: var(--blue);
  margin-bottom: 1em;
  font-size: 1.4em;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.4em;
}

.info-box p {
  margin-bottom: 1em;
  font-size: 1em;
  text-align: justify;
}

/* przyciski w sekcji treści */
.info-actions {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin-top: 1.5em;
}

.info-actions button {
  background-color: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 0.8em 1.5em;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.info-actions button:hover {
  background-color: var(--blue-hover);
  transform: scale(1.03);
}



/* Stylizacja tabeli w info-box */
.info-box table {
  width: 100%;
  border-collapse: collapse;
  font-family: inherit;
  font-size: 0.95em;
  margin-top: 1em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.info-box th,
.info-box td {
  padding: 0.8em 1em;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.info-box th {
  background-color: var(--blue);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95em;
}

.info-box tr:nth-child(even) {
  background-color: #f9f9f9;
}

.info-box tr:hover {
  background-color: rgba(0, 123, 255, 0.1); /* delikatny efekt hover */
  transition: background-color 0.3s ease;
}

.info-box td {
  color: var(--darkgray2);
}

.info-box caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  padding-bottom: 0.5em;
  font-size: 1.1em;
  color: var(--blue);
}



.button-karta {
    background-color: #0070cc;       /* zielony */
    color: white;                    /* tekst biały */
    padding: 10px 20px;              /* wewnętrzne odstępy */
    font-size: 14px;
    border: none;                    /* bez ramki */
    border-radius: 6px;              /* zaokrąglone rogi */
    cursor: pointer;                 /* zmiana kursora */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* delikatny cień */
    transition: all 0.2s ease-in-out;       /* płynne przejście przy hover */
}

.button-karta:hover {
    background-color: #005baa;       /* ciemniejszy zielony przy hover */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* większy cień */
}


/* buttons */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}


/* mniejsza tabela */

.tabelam {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 11px !important;;
    background-color: #fafafa;
    table-layout: auto;
    border: 1px solid #ccc;
}

.tabelam th,
.tabelam td {
    border: 1px solid #ddd;
    padding: 4px 6px;
    text-align: left;
    vertical-align: top;
}

.tabelam th {
    background-color: #005ca7;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    white-space: normal;      /* ✅ nagłówki mogą się łamać */
    word-wrap: break-word;    /* ✅ wymusza łamanie długich tytułów */
}

.tabelam td {
    white-space: normal;      /* ✅ dane w wierszach zostają w jednej linii */
}

.tabelam tr:nth-child(even) {
    background-color: #f2f2f2;
}

.tabelam tr:hover {
    background-color: #e8f1ff;
}

.tabelam a {
    color: #005ca7;
    text-decoration: none;
}

.tabelam a:hover {
    text-decoration: underline;
}