    /* GŁÓWNE USTAWIENIA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f5f5f5 ;
    color: #222;
    transition: 0.3s;
    line-height: 1.6;
}

/* -------------------- DARK MODE -------------------- */
body.dark {
    background: #0f0f0f;
    color: #e7e7e7;
}

body.dark .card { background: #1b1b1b; }
body.dark nav { background: #121212; }
body.dark nav a { color: #e7e7e7; }
body.dark nav a:hover { color: #f0c040; }
body.dark footer { background: #000; }

/* -------------------- HERO -------------------- */
header {
    background: url('images/WSB_title.webp') center/cover no-repeat;
    position: relative;
    width: 100%;
    aspect-ratio: 1600 / 450; /* TU WSTAW SWOJE WYMIARY */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;   
}

header::after {
    content: "";
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.2);
}

header h1 {
    position: relative;
    font-size: 42px;
    font-weight: 800;
         color: inherit;       
    text-decoration: none; 
    background:  rgba(0,0,0,0.5);
    display: inline-block;
    border-radius: 10px;
}

header p {
    position: relative;
    margin-top: 10px;
    font-size: 19px;
        background:  rgba(0,0,0,0.5);
        border-radius: 10px;
        

}

/* nawigacja */
nav {
    background: #333;
    padding: 14px;
    position: sticky;
    top: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

nav a:hover {
    color: #f0c040;
}

nav a[href="https://trucksbook.eu/company/107942"]:hover{color:#3A72BD !important;}

nav a[href="https://discord.com/invite/BB6BjbWMB6"]:hover{color:#5865F2 !important;}

nav a[href="https://www.facebook.com/groups/1117368809225137/"]:hover {color:#0866FF !important;}

/* nawigacja rozwijana mobilna */
.menu-toggle {
    display: none;
    background: #f0c040;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

@media (max-width: 800px){
    nav {
        flex-direction: column;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        margin-bottom: 10px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links.open {
        display: flex;
    }
}

/* zawartość strony */
.card {
    max-width: 1000px;
    margin: 30px auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

h2 {
    border-left: 6px solid #f0c040;
    padding-left: 12px;
    margin-bottom: 10px;
}

/* galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* lightbox - wyswietlanie zdjecia full screen */
.lightbox {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.9);
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    pointer-events:none;
    transition:0.25s;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox.active {
    opacity:1;
    pointer-events:auto;
}

/* stopka  */
footer {
    background:#222;
    padding: 20px;
    color:white;
    text-align:center;
    margin-top: 40px;
}
/*suwak zmiany tryb ciemny/jasny*/
#darkmode-slider {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 34px;
  background: #333;
  border-radius: 20px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background 0.3s;
  z-index:9999;
}

#darkmode-slider.dark { background: #f0c040; }

#darkmode-slider .slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

#darkmode-slider .icon {
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  font-size: 18px;
  transition: left 0.4s ease, color 0.4s ease;
  color: white;
}

body.dark #darkmode-slider .icon { color: black; }

 /*najechanie na menu- kolory powiekszenie*/
nav a:hover {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}
section:hover{
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}
/* wideo */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* proporcje 16:9 */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Lista pracowników - tabela */
#lista-pracownikow {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
}

#lista-pracownikow h2 {
  border-left: 6px solid #f0c040;
  padding-left: 12px;
  margin-bottom: 15px;
  font-size: 22px;
}

.table-container {
  overflow-x: auto; /* przewijanie na małych ekranach */
}

#lista-pracownikow table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 500px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

#lista-pracownikow th, 
#lista-pracownikow td {
  padding: 10px 15px;
  border-bottom: 1px solid #ccc;
}

#lista-pracownikow th {
  background-color: #f0c040;
  color: #222;
  text-align: left;
}

#lista-pracownikow tbody tr:nth-child(even) {
  background-color: rgba(240,192,64,0.1);
}

#lista-pracownikow tbody tr:hover {
  background-color: rgba(240,192,64,0.2);
  transition: 0.2s;
}

#lista-pracownikow a {
  color: #f0c040;
  text-decoration: none;
  font-weight: bold;
  margin: 0 5px;
}

#lista-pracownikow a:hover {
  text-decoration: underline;
}

/* Responsywność na telefonach (tabela)*/
@media (max-width: 600px){
  #lista-pracownikow th, 
  #lista-pracownikow td {
    padding: 8px 10px;
    font-size: 14px;
  }

  #lista-pracownikow a {
    display: inline-block;
    margin: 3px 0;
  }
}
/* Styl przycisków w tabeli */
#lista-pracownikow .btn-profil,
#lista-pracownikow .btn-dziennik {
  display: inline-block;
  padding: 8px 16px;
  margin: 2px 4px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16);
  transition: all 0.2s ease;
}

/* Dziennik – zielony guzik */
#lista-pracownikow .btn-dziennik {
  background-color: #28a745;
  color: white;
  border: 1px solid #218838;
}
/* Dziennik – zielony guzik*/
#lista-pracownikow .btn-dziennik {
  display: inline-block;
  padding: 8px 16px;
  margin: 2px 4px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16);
  transition: all 0.2s ease;
  background-color: #28a745 !important;
  color: white !important;
  border: 1px solid #218838; 
}
#lista-pracownikow .btn-dziennik:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* Kliknięcie (efekt naciśnięcia lista) */
#lista-pracownikow .btn-profil:active,
#lista-pracownikow .btn-dziennik:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  opacity: 0.95;
}
/* Przyciski w sekcji Modyfikacje - niebieskie */
#modifikacje .btn-mod,
#modifikacje a.btn-mod,
#modyfikacje .btn-mod {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px 6px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    transition: all 0.2s ease;
    background-color: #007bff; 
    color: white;
    border: 1px solid #0069d9;
}
/*efekty przy najechaniu na guzik mod*/
#modifikacje .btn-mod:hover,
#modyfikacje .btn-mod:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

#modifikacje .btn-mod:active,
#modyfikacje .btn-mod:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    opacity: 0.95;
}

/*-------REKRUTACJA-------*/


/*siatka obrazkow do modow*/

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}

.addons-grid img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.addons-grid img:hover {
    transform: scale(1.05);
}

/*Formularz*/
.card2 {
    max-width: 1000px;
    margin: 30px auto;
    background: #1b1b1b;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
    
    
}
.google-form-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.google-form-iframe {
    width: 100%;
    min-width: 500px; /* Google Forms wygląda dobrze przy min. 480–500px */
    height: 1700px;
    border: none;

    /* Używamy skalowania tylko na małych ekranach */
    transform-origin: top left;
}
/* ---- Google Form FIX (telefon pełna szerokość) ---- */

.google-form-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.google-form-iframe {
    border: none;
    width: 100%;
    height: 1700px;
}

/* TELEFONY */
@media (max-width: 600px) {

    /* obliczamy skalę: screen_width / 640 */
    .google-form-iframe {
        transform: scale(calc(100vw / 640));
        transform-origin: top left;
        width: 640px;         /* oryginalna szerokość formularza */
        height: calc(1700px / (100vw / 640));
    }

    .google-form-wrapper {
        height: calc(1700px * (100vw / 640)); 
    }
}
/* — RESPONSYWNY Google Form Embed — */
.g-form-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.g-form-container .responsive-form {
  position: relative;
  width: 100%;
  min-width: 320px; /* minimalna szerokość formularza */
  border: none;
}

/* Jeśli chcesz, możesz ustawić wysokość w zależności od urządzenia */
@media (min-width: 800px) {
  .g-form-container .responsive-form {
    height: 1700px; /* dla desktopów — oryginalna wysokość */
  }
}

@media (max-width: 799px) {
  .g-form-container .responsive-form {
    height: auto;
    min-height: 1400px; /* albo inna wartość, którą uznasz za wystarczającą */
  }
}
.google-form {
    width: 100%;
    height: 2000px; /* możesz dopasować */
    border: none;
}
/* ---- Poprawione Google Form na pełną wysokość ---- */
.g-form-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.responsive-form {
    width: 100%;
    min-height: 2200px; /* zwiększamy, żeby całość formularza była widoczna */
    border: none;
}



