body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  overflow-x: hidden;
}

html, body {
  height: 100%;
}

.row {
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  background-color: #dbeafe;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
}

.sidebar a {
  display: block;
  font-weight: bold;
  padding: 15px 20px;
  border-bottom: 1px solid white;
  text-decoration: none;
  color: black;
  background-color: #dbeafe;
  transition: background-color 0.2s ease;
}

.sidebar a:hover {
  background-color: #e2e8f0;
}

.title {
  color: #0077c8;
  font-size: 24px;
  font-weight: bold;
}

.content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* STOPKA Z POPRAWKĄ - ANIMACJA UNOSZENIA + ROZSZERZALNOŚĆ STRONY */
footer {
  font-size: 0.9em;
  color: gray;
  margin-top: 20px;
  padding: 15px 20px 15px 250px; /* zostaw miejsce na linki po lewej */
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  transition: padding 0.3s ease, margin-bottom 0.3s ease;
}

footer.shrunk {
  padding-bottom: 5px;
  padding-top: 5px;
  align-items: flex-start;
  margin-bottom: 180px; /* miejsce dla metki / dziennika */
}

footer > .footer-text {
  flex: 1 1 100%;
  transition: opacity 0.3s ease, height 0.3s ease;
}



/* Kontener z linkami po lewej stronie */
.shortcut-icons {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
  background: transparent;
}

/* Linki bez podkreślenia */
.shortcut-icons a {
  text-decoration: none;
  color: black;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Metka i dziennik - pojawiają się pod tekstem stopki */
#label-container,
#change-log {
  background-color: #f0f9ff;
  border: 1px solid #0077c8;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 0.9em;
  color: #003a6d;
  white-space: pre-line;
  max-width: 100%;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
  user-select: text;
  margin-top: 10px;
  display: none;
  width: 100%;
}

#change-log ul {
  margin: 0;
  padding-left: 20px;
  color: #555;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
aside {
  min-height: 100vh;
  border-left: 1px solid #ddd;
}
