/* Ogólne */
html, body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #f0f4ff, #dbeafe, #e0f7fa);
  color: #1a1a1a;
  font-size: 18px;
  min-height: 100vh;
}

/* Nagłówek */
header {
  height: 280px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("baza.jpg") center/cover no-repeat;
  opacity: 0.15;
}

.header-overlay {
  position: relative;
  text-align: center;
  color: white;
}

.header-overlay h1 {
  font-size: 52px;
  margin: 0;
  animation: fadeInDown 2s ease forwards;
}

.header-overlay p {
  font-size: 20px;
  margin-top: 10px;
  opacity: 0.9;
}

.header-overlay a {
  color: #fef3c7;
  text-decoration: none;
  font-weight: bold;
}
.header-overlay a:hover {
  color: #fff;
  text-decoration: underline;
}

@keyframes fadeInDown {
  from {opacity: 0; transform: translateY(-40px);}
  to {opacity: 1; transform: translateY(0);}
}

/*menu*/


nav {
    background: #023E8A;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;   /* upewnia się, że nav nie przykrywa wszystkiego */
    z-index: 10;
}

nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}

nav a {
    position: relative;
    display: block;
    padding: 18px 28px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    font-family: "Cactus Classical Serif", serif;
    transition: color 0.3s;
}

nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #90E0EF;
    transition: width 0.3s;
    border-radius: 2px;
}

nav a:hover,
nav a.active {
    color: #90E0EF;
}

nav a:hover::after,
nav a.active::after {
    width: 60%;
}

.header-overlay {
    position: relative;
    z-index: 5; /* link będzie klikalny */
}

.header-overlay a {
    color: #90E0EF;
    text-decoration: underline;
    pointer-events: auto; /* na wszelki wypadek włączamy klikanie */
}




/* Główna treść */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 40px auto;
  max-width: 1200px;
  gap: 20px;
}
.content {
  flex: 3;
  padding: 24px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.content h2 {
  font-size: 22px;
  border-left: 4px solid #0ea5e9;
  padding-left: 10px;
}

/* Pliki */
.files a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 5px 0;
  transition: transform 0.2s;
}
.files a:hover {
  transform: translateY(-3px);
  background: #e0f2fe;
}

/* Collapsible */
.collapsible {
  cursor: pointer;
  background-color: #0ea5e9;
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin: 15px 0;
  transition: background 0.3s;
}
.collapsible:hover {
  background-color: #0284c7;
}
.content-collapsible {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}
.content-collapsible.show {
 max-height: 4000px; /* jak sie nie che juz wyswietlać rozwijana zawartość zwiększyć */
  margin-top: 10px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 50%;                /* pozycja od góry */
    right: 0;                /* przyklejone do prawej krawędzi */
    transform: translateY(-50%); /* wyśrodkowanie w pionie */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 1000;
    gap: 12px; /* odstęp między panelami */
}

.panel {
    position: relative;
    background: #023E8A;
    color: #ffffff;
    padding: 12px;
    width: 80px;
    text-align: center;
    cursor: pointer;
    border-radius: 12px 0 0 12px;
    transition: all 0.4s ease;
    overflow: hidden;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.panel:hover {
    width: 250px;
    background: #023E8A;
}

.panel-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    text-align: left;
    font-size: 15px;
    margin-top: 8px;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

.panel:hover .panel-content {
    opacity: 1;
    max-height: 400px;
}

.panel a {
    display: block;
    color: #90E0EF;
    text-decoration: none;
    margin: 4px 0;
    transition: color 0.3s;
}

.panel a:hover {
    color: #ffffff;
    text-decoration: underline;
}








/* Efekt wysuwania przy najechaniu */

.panel:hover {
  transform: translateX(0);
}

/* Stopka */
footer {
  background: #1e293b;
  color: #fff;
  text-align: center;
  padding: 14px 0;
  margin-top: auto;
  font-size: 14px;
}
footer a {
  color: #0ea5e9;
}



.header-overlay h1 {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
    animation: fadeInDown 1.2s ease-out;
}

.header-overlay p {
    font-size: 22px;
    margin-top: 15px;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
    animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-50px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* --- Styl dla tabeli baz danych --- */
.tabela_format {
  width: 100%;
  border-collapse: collapse;
  margin: 30px auto;
  background: #fff;
  border: 1px solid #dbeafe; /* delikatna ramka */
  border-radius: 8px;
  overflow: hidden;
  font-size: 16px;
}

/* Nagłówki */
.tabela_format th {
  background: #e8f6ff;   /* jasny błękit */
  color: #1e293b;
  padding: 12px 14px;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px solid #dbeafe;
}

/* Komórki */
.tabela_format td {
  padding: 14px;
  text-align: center;
  vertical-align: top;
  border-bottom: 1px solid #e5f0fa;
}

/* Wiersze co drugi w lekko niebieskim odcieniu */
.tabela_format tr:nth-child(even) td {
  background: #f9fcff;
}

/* Ostatni wiersz bez linii */
.tabela_format tr:last-child td {
  border-bottom: none;
}

/* Efekt hover */
.tabela_format tr:hover td {
  background: #eef8ff;
}

/* Linki do plików */
.tabela_format .files a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: 4px 0;
  border-radius: 6px;
  text-decoration: none;
  color: #1e293b;
  background: #f9fafb;
  border: 1px solid #e0f2fe;
  transition: all 0.2s ease;
}

.tabela_format .files a:hover {
  background: #e0f2fe;
  transform: translateY(-2px);
}

.tabela_format .files img {
  width: 22px;
  height: auto;
}


