html {
   position: relative; 
    min-height: 100%;
  }
  body {
    margin-bottom: 60px;
    background: #f3ebe4;
  }


 .kol-bread ol li a{
  color: #fcbf17;;  
  } 
  
 .kol-menu ul li a{
  gap: 10px;
  padding: 10px;
  } 

 .kol-menu ul li a{
  color: #ffffff;
  }
  
 .kol-menu ul li a:active{
  color: #8714d4;
  }

 .kol-menu ul li a:hover{
  background: #f3ebe4;
  border-radius: 6px;
  color: #0a6801;
  }  
 
 .sidebar {
  width: 250px;
  min-height: 50vh;
  background:  #8BC34A;
  color:black;
  border-right: 1px solid #ddd;

  }

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: #333;
  transition: background 0.2s ease;
}

.sidebar .nav-link:hover {
      background: #f3ebe4;
      border-radius: 6px;
}

.sidebar .nav-link:active {
  border-left: 4px solid #ff7f00;;
  background-color: #e9ecef;
  font-weight: bold;
}
  
@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    z-index: 1000;
    background:  #8BC34A;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    color:black;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  } 
  


.playwrite-pl-light {
  font-family: "Playwrite PL", cursive;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

        /* Pomarańczowo-Zielona kolorystyka */
.pagination .page-link {
  color: #28a745; /* zielony */
  border: 1px solid #28a745;
  transition: background 0.3s ease, color 0.3s ease;
}
.pagination .page-link:hover {
  background: #28a745;
  color: #fff;
}
.pagination .page-item.active .page-link {
  background-color: #ff7f00; /* pomarańczowy */
  border-color: #ff7f00;
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  color: #ccc;
  border-color: #ccc;
  background-color: #f8f9fa;
}

.img-hover {
  transition: 0.3s;
}
.img-hover:hover {
  filter: brightness(80%);
}

.gradient-bg {
  background: linear-gradient(90deg, #f3ebe4, #feb47b); /* pomarańcz → jasny pomarańcz */
}

 #lightboxImage {
    transition: opacity 0.4s ease;
    cursor: pointer;
  }
  #lightboxImage.fade-out {
    opacity: 0;
  }

    /* Kontener do przewijania w poziomie */
  .table-responsive {
    display: block;
    max-width: 100%; 
    overflow-x: auto;
   /* position: relative; */
  }

/* 1 kolumna zamrożona */
  .table th:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
    background-color: #ff9800; /* lub inny kolor */    
    min-width: 100px;
    max-width: 100px;
  }

  .table td:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 100px;
    max-width: 100px;
  }

 /* Reszta kolumn - stała szerokość */
  .table th:nth-child(n+2) {
    min-width: 140px;
    max-width: 140px;
    background-color: #ff9800; /* lub inny kolor */      
  } 

  .table td:nth-child(n+2) {
    min-width: 140px;
    max-width: 140px;
  }

  /* Nagłówki nad treścią */
  thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  }

  /* Mniejsza czcionka */
  .table-sm-font {
    font-size: 13px;
  }

#tab_kalendarz {
 /* border: 0.3px solid #037c09;       /* Zewnętrzna linia */
  border-radius: 5px;          /* Zaokrąglenie rogów */
  border-collapse: collapse;    /* Potrzebne, aby działało zaokrąglenie */
  border-spacing: 0;            /* Brak przerw między komórkami */
  overflow: hidden;             /* Ukrywa ostre rogi komórek w narożnikach */
  font-size: 13px;
}

#tab_kalendarz th:nth-child(2),
#tab_kalendarz td:nth-child(2) {
  min-width: 70px;
  max-width: 70px;
}
#tab_kalendarz tr:last-child td {
  border-bottom: none;    
}

#tab_kalendarz th:first-child,
#tab_kalendarz td:first-child {
  padding: 8px;
  min-width: 20px;
  max-width: 20px;
}


#popup-overlay {
  position: fixed !important;          /* ⭐ ZAWSZE względem okna */
  inset: 0;                 /* ⭐ top/right/bottom/left = 0 */
  display: none;
  justify-content: center;  /* ⭐ centrowanie */
  align-items: center;      /* ⭐ centrowanie */
  background: rgba(0,0,0,0.6);
  z-index: 999999;          /* ⭐ nad stopką i wszystkim */
}

#popup-overlay.show {
  display: flex;
}

#popup-box {
  background: #fff;
  max-width: 520px;
  width: 90%;
  border-radius: 12px;
  overflow: visible;
  position: relative;

  /* animacja */
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.4s ease;
}

#popup-overlay.show #popup-box {
  opacity: 1;
  transform: scale(1);
}

#popup-box img {
  width: 100%;
  display: block;
}

.popup-content {
  padding: 18px;
  text-align: center;
}

#popup-close {
  position: absolute;
  top: -14px;              /* „doklejony” do ramki */
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111827;
  border: 2px solid #fff;
  cursor: pointer;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

/* Ikona X */
#popup-close::before,
#popup-close::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

#popup-close::before {
  transform: rotate(45deg);
}

#popup-close::after {
  transform: rotate(-45deg);
}

/* Hover */
#popup-close:hover {
  background: #ef4444;
  transform: scale(1.1);
}

.custom-height {
  height: 10px;
}

  code {
    font-size: 80%;
  }

   .footer_social a {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 30px;
    color: #ffffff; 
    text-decoration: none;
    margin: 10px;
    transition: .3s;
  }

   .footer_social_up a {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 30px;
    color: #ffffff; 
    text-decoration: none;
    margin: 10px;
    transition: .3s;
  }  

  .bg1 {
    background: #a221b9;
  }

  .bg1:hover {
    background: #4867AA;
  }
  
  .bg2 {
    background: #fc097c;
  }

  .bg2:hover {
    background: #1DA1F2;
  }

  .bg3 {
    background: #189D0E;
  }
  
  .bg3:hover {
    background: #ffae4a;
  }
  
  .bg4 {
    background: #00acee;
  }

  .bg4:hover {
    background: #4867AA;
  }

@keyframes autofill {
    from {}
    to {}
}

input:-webkit-autofill {
    animation-name: autofill;
    animation-duration: 0.01s;
    animation-iteration-count: 1;
}

.jadlospis-table p {
    margin: 0 0 4px 0; /* dolny odstęp */
    line-height: 1.3; /* wysokość linii */
}



.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    opacity: 0.85;
    pointer-events: none;
}





.video-thumb {
    position: relative;
    display: block;
    cursor: pointer;
}

.video-thumb img {
    display: block;
    width: 100%;
    border-radius: 6px;
    transition: filter 0.2s ease;
}

.video-thumb:hover img {
    filter: brightness(0.75);
}

.video-label {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 3px 7px;
    border: 2px solid #0a6801;
    color: #0a6801;
    background: rgba(255,255,255,0.9);
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    transition: background 0.2s ease;
}

.video-play-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent white;
}

.video-thumb:hover .video-play-icon {
    background: rgba(0,0,0,0.75);
}
