: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 */
}


/* 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;
}


.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;
}