/* === IMPORTOWANIE CZCIONKI === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* === ZMIENNE CSS (Profesjonalne zarządzanie kolorami) === */
:root {
  --primary-color: #58a6ff;   /* Główny niebieski */
  --secondary-color: #238636; /* Zielony dla akcentów */
  --bg-dark: #0d1117;         /* Tło strony */
  --bg-medium: #161b22;       /* Tło kart i sekcji */
  --border-color: #30363d;    /* Kolor ramek */
  --text-light: #e6edf3;     /* Jasny tekst */
  --text-medium: #c9d1d9;    /* Mniej ważny tekst */
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-highlight: rgba(88, 166, 255, 0.2);
  --transition-speed: 0.3s;
}

/* === RESET I STYLE GLOBALNE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Aby linki nie chowały się pod nawigacją */
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden; /* Zapobiega poziomemu przewijaniu */
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === NAGŁÓWEK === */
header {
  background: url("header.png") center/cover no-repeat;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  border-bottom: 3px solid var(--primary-color);
  animation: fadeInDown 1s ease-out;
}

.header-logo {
  max-height: 280px;
  width: auto;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 15px var(--shadow-highlight));
}

.header-logo:hover {
  transform: scale(1.07);
  filter: drop-shadow(0 0 25px rgba(88, 166, 255, 0.8));
}

/* === NAWIGACJA === */
nav {
  background: var(--bg-medium);
  display: flex;
  justify-content: center;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 5px 15px var(--shadow-color);
  animation: fadeInDown 1s ease-out 0.2s;
  animation-fill-mode: backwards; /* Startuje animację z opóźnieniem */
}

.nav-buttons {
  display: flex;
  flex-wrap: wrap; /* Kluczowe dla responsywności */
  justify-content: center;
  gap: 0.5rem;
}

.nav-buttons button {
  background: transparent;
  border: none;
  margin: 0 0.25rem;
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.nav-buttons button::after { /* Efekt podkreślenia */
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width var(--transition-speed) ease;
}

.nav-buttons button:hover,
.nav-buttons button:focus {
  color: #fff;
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(35, 134, 54, 0.4);
  outline: none;
}

.nav-buttons button:hover::after {
  width: 0; /* Ukryj podkreślenie, gdy tło jest aktywne */
}

.nav-buttons button.active { /* Aktywna strona */
  color: var(--secondary-color);
  font-weight: 700;
}
.nav-buttons button.active::after {
  width: 50%;
}


/* === GŁÓWNY KONTENER TREŚCI === */
.container {
  max-width: 1200px;
  margin: 3rem auto 4rem;
  padding: 2.5rem 3rem;
  background: var(--bg-medium);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px var(--shadow-highlight);
}

/* === STYL KARTY (Wspólny dla kadr, partnerów, galerii) === */
.card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform var(--transition-speed) ease, 
              box-shadow var(--transition-speed) ease, 
              border-color var(--transition-speed) ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px var(--shadow-highlight);
}

/* === TYPOGRAFIA (Nagłówki, Paragrafy) === */
h1, h2, h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

h1 { /* Główny tytuł strony (np. Regulamin) */
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 2.5rem;
  position: relative;
}

h1::after { /* Belka pod H1 */
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 0.75rem auto 0;
  border-radius: 5px;
}

h2 { /* Tytuł sekcji (np. O nas, Współpracujemy z) */
  font-size: 2.2rem;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

h2::after { /* Belka pod H2 */
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin: 0.5rem auto 0;
  border-radius: 5px;
}

h3 { /* Mniejszy podtytuł (np. Zarząd) */
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-medium);
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-medium);
}

ul {
  list-style-type: square;
  margin-left: 30px;
  color: var(--text-medium);
}
ul li {
  margin-bottom: 8px;
}

/* === SEKCJA: STRONA GŁÓWNA (index.html) === */
.onas-container, .rekrutacja-container {
  max-width: 90%;
  margin: 0 auto 3rem auto;
  background: var(--bg-dark);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.onas-img, .rekrutacja-img {
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.onas-container:hover .onas-img,
.rekrutacja-container:hover .rekrutacja-img {
  transform: scale(1.03);
}

/* --- POPRAWKA DLA PARTNERÓW --- */
.partners-container {
  display: flex; /* ZMIENIONE Z 'grid' */
  flex-wrap: wrap; /* DODANE */
  justify-content: center; /* DODANE - to jest kluczowa zmiana */
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 200px;
  
  /* DODANE - ustalamy bazową szerokość, jak w gridzie */
  flex-basis: 180px; 
  flex-grow: 0;
}
/* --- KONIEC POPRAWKI --- */


.partner-item img {
  width: auto;
  max-width: 90%;
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: grayscale(50%) brightness(0.8);
  transition: filter var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.partner-item:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
}

.partner-item p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

/* === SEKCJA: KADRA (team.html) === */
.number-box {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 10px 0;
  text-align: center;
  text-shadow: 0 0 15px var(--shadow-highlight);
}

#team > p {
  text-align: center;
  font-size: 1.1rem;
}

.team-category {
  margin-top: 3.5rem;
}

.profile-grid {
  display: grid;
  /* Elastyczne kolumny, min 240px */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  align-items: stretch; /* --- TO JEST ROZWIĄZANIE PROBLEMU NIERÓWNOŚCI --- */
}

.profile {
  text-align: center;
  display: flex; /* Używamy flexa, aby elementy w karcie się rozciągały */
  flex-direction: column;
  justify-content: space-between; /* Rozkłada treść równo */
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 20px auto 15px;
  border: 4px solid var(--primary-color);
  object-fit: cover; /* Ważne, jeśli zdjęcia mają różne proporcje */
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.profile:hover .profile-avatar {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.6);
}

.profile-info {
  padding: 15px;
  margin-top: auto; /* Wypycha info na dół, jeśli karta jest wyższa */
}

.profile-title {
  color: var(--secondary-color); /* Używamy koloru akcentu */
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

.profile-name {
  font-weight: bold;
  font-size: 1.3rem;
  margin-top: 5px;
  color: var(--text-light);
}

/* === SEKCJA: KONWOJE (convoys.html) === */
.convoy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.convoy-card {
  text-decoration: none;
  color: var(--text-light);
  text-align: center;
}

.convoy-card img {
  width: 100%;
  aspect-ratio: 16 / 9; /* Zachowuje proporcje 16:9 */
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  transition: transform 0.4s ease;
}

.convoy-card:hover img {
  transform: scale(1.05);
}

.convoy-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  padding: 1.5rem 1rem;
  margin: 0;
  border-bottom: none; /* Reset stylu h3 */
}

/* === SEKCJA: GALERIA (gallery.html) === */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px var(--shadow-highlight);
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* === SEKCJA: REGULAMIN (regulations.html) === */
.regulations h2 {
  text-align: left;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
  margin: 2rem 0 1.5rem 0;
  font-size: 1.5rem;
  color: var(--text-light);
}

.regulations h2::after {
  display: none; /* Wyłączamy globalną belkę dla h2 w regulaminie */
}

.regulations p {
  margin: 10px 0;
  padding: 12px;
  border-left: 4px solid var(--primary-color);
  background-color: var(--bg-dark);
  border-radius: 5px;
}

.regulations p span {
  font-weight: bold;
  color: var(--primary-color);
}

/* === STOPKA === */
footer {
  background: var(--bg-medium);
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-content img {
  height: 50px;
  width: auto;
  max-width: 150px;
  filter: grayscale(50%) brightness(0.8);
  transition: filter var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.footer-content img:hover {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.1);
}

.footer-separator {
  height: 1px;
  background: var(--border-color);
  margin: 1.5rem auto;
  width: 80%;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.7;
  color: var(--text-medium);
  margin: 0;
}

/* === ANIMACJE (Wejście) === */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE DESIGN (Media Queries) === */
@media (max-width: 900px) {
  .container {
    padding: 2rem 1.5rem;
    margin: 2rem auto 3rem;
  }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
}

@media (max-width: 600px) {
  .container {
    padding: 1.5rem 1rem;
    margin: 1.5rem auto 2rem;
  }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }

  .nav-buttons {
    gap: 0.2rem;
  }
  .nav-buttons button {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  header {
    min-height: 200px;
  }
  .header-logo {
    max-height: 180px;
  }

  .profile-grid, .partners-container, .convoy-grid, .gallery-container {
    /* Na mobilce chcemy 1 lub 2 kolumny, min 200px jest zbyt małe */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  /* Poprawka dla partnerów na mobilce */
  .partners-container {
    grid-template-columns: none; /* Wyłączamy grid na rzecz flex */
  }
  
  /* Na bardzo małych ekranach, jedna kolumna */
  @media (max-width: 380px) {
    .profile-grid, .partners-container, .convoy-grid, .gallery-container {
      grid-template-columns: 1fr;
    }
    .partner-item {
      flex-basis: 100%; /* Na najmniejszych ekranach partner zajmuje 100% */
    }
  }

  .footer-content {
    gap: 1.5rem;
  }
  .footer-content img {
    height: 40px;
  }
}

/* ==========================================================================
  STYLE DLA PANELU LOGOWANIA I ADMINA 
==========================================================================
*/

/* === STYL TŁA DLA STRONY LOGOWANIA (SLIDESHOW) === */
.login-body {
  overflow: hidden; /* Zapobiega przewijaniu tła */
}
/* 1. Kontener na zdjęcia (cały ekran, w tle) */
.login-bg-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1; /* Kluczowe: umieść tło pod wszystkim innym */
  background-color: var(--bg-dark); /* Kolor na wypadek, gdyby zdjęcia się nie załadowały */
}
/* 2. Poszczególne zdjęcia w pokazie slajdów */
.login-bg-slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Zdjęcie zawsze pokrywa cały ekran */
  opacity: 0; /* Domyślnie niewidoczne */
  
  /* Animacja: nazwa 'bgFade', trwa 25s, zapętlona w nieskończoność */
  animation: bgFade 25s infinite;
}
/* 3. Opóźnienia animacji dla każdego zdjęcia (kluczowe!) */
.login-bg-slideshow img:nth-child(2) {
  animation-delay: 5s;
}
.login-bg-slideshow img:nth-child(3) {
  animation-delay: 10s;
}
.login-bg-slideshow img:nth-child(4) {
  animation-delay: 15s;
}
.login-bg-slideshow img:nth-child(5) {
  animation-delay: 20s;
}
/* 4. Definicja animacji (płynne pojawianie się i znikanie) */
@keyframes bgFade {
  0%   { opacity: 0; transform: scale(1.05); } /* Startuje niewidoczne i lekko powiększone */
  10%  { opacity: 1; } /* Pojawia się przez 10% czasu (2.5s) */
  30%  { opacity: 1; transform: scale(1); } /* Widoczne przez 20% czasu (5s), lekko się pomniejsza */
  40%  { opacity: 0; } /* Znika przez 10% czasu (2.5s) */
  100% { opacity: 0; } /* Resztę czasu (15s) jest niewidoczne, czekając na swoją kolej */
}
/* 5. Ciemna nakładka (overlay) dla czytelności */
.login-body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6); /* Czarny z 60% przezroczystością */
  z-index: 1; /* Musi być NAD tłem (z-index: -1) */
}
/* 6. Poprawka dla kontenera logowania */
.login-container-wrapper {
  position: relative; /* Konieczne do działania z-index */
  z-index: 2; /* Umieść panel logowania na samej górze */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 2rem;
}
.login-header {
  background: transparent; /* Przezroczyste tło nagłówka na stronie logowania */
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  animation: fadeInDown 1s ease-out;
  position: relative; /* Konieczne do z-index */
  z-index: 2; /* Musi być nad overlayem */
}
.login-header .header-logo {
  max-height: 180px;
  margin: 0 auto;
  filter: none;
}
.login-header .header-logo:hover {
  transform: scale(1.05);
}

.login-container {
  max-width: 450px;
  width: 100%;
  padding: 2.5rem;
  background: var(--bg-medium);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px var(--shadow-highlight);
}
.login-container h1 {
  text-align: center;
  margin-bottom: 1rem;
}
.login-container p {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-medium);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-medium);
}
.form-group input[type="text"],
.form-group input[type="password"] {
  padding: 0.8rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1rem;
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--shadow-highlight);
}

.login-button {
  padding: 0.9rem 1.5rem;
  background: var(--secondary-color);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.login-button:hover {
  background-color: #2c9e40; /* Jaśniejszy zielony */
  transform: translateY(-2px);
}

.back-to-site {
  text-align: center;
  margin-top: 1.5rem;
}
.back-to-site a {
  color: var(--text-medium);
  font-size: 0.9rem;
}
.back-to-site a:hover {
  color: var(--primary-color);
}
/* Styl dla komunikatu o błędzie logowania */
.login-error {
  color: #ff8a8a; /* Czerwony kolor */
  text-align: center;
  font-weight: 500;
  /* Ustawiamy minimalną wysokość, aby formularz nie "skakał" */
  min-height: 1.5em; 
  margin-bottom: 0.5rem;
}

/* === STYL PANELU ADMINA (admin.html) === */

.admin-body {
  display: flex;
  background: #06090d; /* Jeszcze ciemniejsze tło dla panelu */
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-medium);
  min-height: 100vh;
  padding: 1.5rem;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}
.admin-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.admin-logo img {
  max-height: 100px;
  margin-bottom: 0.5rem;
}
.admin-logo span {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-light);
}

.admin-nav {
  margin-top: 1.5rem;
}
.admin-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.admin-nav li {
  margin-bottom: 0.5rem;
}
.admin-nav li a {
  display: block;
  padding: 0.9rem 1.2rem;
  color: var(--text-medium);
  border-radius: 8px;
  font-weight: 500;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}
.admin-nav li a:hover {
  background: var(--bg-dark);
  color: var(--text-light);
}
.admin-nav li.active a {
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 10px var(--shadow-highlight);
}
/* Link wyloguj */
.admin-nav li:last-child a {
  color: #ff8a8a; /* Czerwony dla wylogowania */
}
.admin-nav li:last-child a:hover {
  background: #ff8a8a;
  color: #000;
}

.admin-content {
  flex: 1; /* Zajmuje resztę miejsca */
  padding: 2rem 3rem;
  overflow-y: auto; /* Pozwala przewijać treść */
  max-height: 100vh;
}

.admin-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}
.admin-header h1 {
  margin: 0;
}
.admin-header p {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin: 0;
}

.admin-card {
  padding: 2rem;
  margin-bottom: 2rem;
}
.admin-card h3 {
  text-align: left;
  border-bottom: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.admin-upload-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.admin-upload-form input[type="file"] {
  padding: 0.6rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-medium);
}
.admin-upload-form button {
  align-self: flex-start; /* Przycisk nie jest na całą szerokość */
}

.gallery-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}
.gallery-manage-item {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.gallery-manage-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.gallery-manage-item p {
  font-size: 0.8rem;
  color: var(--text-medium);
  margin-bottom: 0.8rem;
  /* Zapobiega łamaniu tekstu */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.delete-button {
  width: 100%;
  padding: 0.5rem;
  background: #ff6b6b;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
}
.delete-button:hover {
  background: #e03131;
}

/* === DODATKOWE STYLE DLA PANELU ADMINA (KADRA) === */
.admin-table-container {
  width: 100%;
  overflow-x: auto; /* Pozwala przewijać tabelę na boki na mobilce */
}
.admin-table {
  width: 100%;
  border-collapse: collapse; /* Łączy ramki komórek */
  margin-top: 1rem;
}
.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.admin-table th {
  background: var(--bg-dark);
  color: var(--text-light);
  font-weight: 600;
}
.admin-table td {
  color: var(--text-medium);
}
.table-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}
.edit-button {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  border: none;
  border-radius: 5px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
  margin-right: 0.5rem;
}
.edit-button:hover {
  background: #3a8ee8;
}
.admin-table td:last-child {
  /* Zapobiega łamaniu przycisków */
  white-space: nowrap; 
}


/* Poprawki responsywności dla admina */
@media (max-width: 900px) {
  .admin-body {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    min-height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .admin-nav {
    margin-top: 0;
  }
  .admin-nav ul {
    display: flex;
    gap: 0.5rem;
  }
  .admin-nav li {
    margin: 0;
  }
  .admin-logo {
    flex-direction: row;
    border: none;
    padding: 0;
  }
  .admin-logo span {
    display: none; /* Ukryj tekst na mobilce */
  }
  .admin-logo img {
    max-height: 50px;
  }
  .admin-content {
    padding: 1.5rem;
    max-height: none;
  }
}
@media (max-width: 600px) {
  .admin-sidebar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-logo {
    justify-content: center;
    padding: 0.5rem;
  }
  .admin-logo span {
    display: block;
  }
  .admin-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}