/* Ogólny padding do ciała, uwzględniający top-bar + header */
html,
body {
  height: 100%;
  margin: 0;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
  /* dynamiczne wyliczenie miejsca na top-bar i header */
  padding-top: calc(38px + 120px); /* 38px = top-bar, 120px = header */
}

.scrollable-main {
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 2rem;
}

/* Scrollbar (Chrome/Safari/Edge) */
.scrollable-main::-webkit-scrollbar {
  width: 10px;
}

.scrollable-main::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

/* Scrollbar (Firefox) */
.scrollable-main {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Górny pasek */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #f8f9fa;
  font-size: 0.875rem;
  border-bottom: 1px solid #dee2e6;
  z-index: 1010;
  transition: transform 0.8s ease;
}

.top-bar.hidden {
  transform: translateY(-100%);
}

.top-bar a {
  color: #6c757d;
  text-decoration: none;
}

/* Nagłówek główny */
.main-header {
  position: fixed;
  top: 38px; /* dokładnie pod top-barem */
  left: 0;
  right: 0;
  z-index: 999; /* wyżej niż top-bar, żeby być na wierzchu */
  background-color: white;
  transition: top 0.6s ease, box-shadow 0.4s ease;
}

.main-header.fixed {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.main-header.no-top-bar {
  top: 0; /* header podjeżdża na samą górę */
}

/* Nawigacja */
.nav-link {
  padding: 0.75rem 1rem;
}

/* Karta artykułu */
.article-card {
  border: 1px solid #dee2e6;
  border-left: 6px solid #0d6efd;
  padding: 1rem;
  background-color: #fff;
  margin-bottom: 1rem;
}

.article-price {
  min-width: 100px;
  background-color: #0d6efd;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.article-price h4 {
  margin: 0;
}

.article-price small {
  display: block;
  font-size: 0.75rem;
}

/* Sidebar */
.sidebar-menu {
  background-color: #f1f4f9;
  border-radius: 0.5rem;
  padding: 0.5rem; /* mniej paddingu dla kompaktowego wyglądu */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.sidebar-menu .nav-link {
  display: flex;
  align-items: center;
  color: #333;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.sidebar-menu .nav-link i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.sidebar-menu .nav-link:hover {
  background-color: #e0e7ff;
  color: #0d6efd;
}
