body, html{
    /*font-family: 'Montserrat'; */
	  font-display: swap;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Timeline egzaminów */
.exam-timeline-item {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.exam-timeline-item:hover {
  background-color: #f8f9fa !important;
  border-left-color: var(--bs-primary);
}

.exam-timeline-item.bg-success.bg-opacity-10 {
  border-left-color: #198754;
}

.exam-timeline-item.exam-registered {
  background-color: rgba(25, 135, 84, 0.1) !important;
  border-left-color: #198754;
}

.list-group-item.exam-registered {
  background-color: rgba(25, 135, 84, 0.1) !important;
  border-left: 3px solid #198754;
}

/* Style dla popupa egzaminów */
.modal .exam-date {
  min-width: 50px;
  text-align: center;
}

.modal .exam-time {
  min-width: 60px;
}

.exam-date {
  min-width: 50px;
  text-align: center;
}

.exam-month-group:not(:last-child) {
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem !important;
}

.transition-icon {
  transition: transform 0.3s ease;
}

[data-bs-toggle="collapse"][aria-expanded="false"] .transition-icon {
  transform: rotate(-90deg);
}

[data-bs-toggle="collapse"][aria-expanded="true"] .transition-icon {
  transform: rotate(0deg);
}

.hover-bg-light:hover {
  background-color: rgba(248, 249, 250, 0.5) !important;
}

a {
    text-decoration: none;
    /* color: var(--bs-primary); */
}

a:hover {
    text-decoration: none;
    /* color: var(--bs-primary); */
}

.content {
    flex-grow: 1;
    background-color: var(--bs-background-color);
  }
  
.navbar {
    background-color: var(--bs-navbar); /* Kolor tła navbaru */
}

.bar-color {
  background-color: var(--bs-navbar); /* Kolor tła navbaru */
}

.navbar-brand {
    display: flex;
    align-items: center;
  }

.navbar-brand-text {
    margin-left: 10px; /* Odstęp między logiem a tekstem */
    font-size: small;
}

.sidebar-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
}
.sidebar-mobile-toggle:hover { background: rgba(255, 255, 255, 0.16); }
.sidebar-mobile-toggle:focus-visible {
  outline: 2px solid var(--bs-accent-color);
  outline-offset: 2px;
}
.mode-switcher { position: relative; }

@media (max-width: 991.98px) {
  .mode-switcher .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    left: auto;
  }
}

@media (max-width: 575.98px) {
  .mode-switcher-toggle {
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding-right: 0.625rem;
    padding-left: 0.625rem;
  }
  .mode-switcher-label { display: none; }
  .mode-switcher-icon { margin-right: 0 !important; }
}

.jumbotron {
    border-bottom: 4px solid var(--bs-dark);
    text-align: center;
    padding: 10px 0; /* Wewnętrzny odstęp dla treści jumbotronu */
    text-decoration: none !important;
    color: #595959;
}

/* Loading Animation for Modals */
.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    animation: loading-bounce 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.image-box {
  position: relative;
  width: 100%;
  min-height: 400px;
  padding-top: calc(100% * (100 / 250));
  border-bottom: 4px solid var(--bs-dark);
}

.image-cropped-calc {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.white-row {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 0px 24px 0px 24px;
}

.white-row2{
  background-color: #ffffff;
  border-radius: 12px;
  padding: 12px 0px 12px 0px;
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

.card-body {
    flex-grow: 1;
  }

.card-img-container {
    position: relative;
    overflow: hidden;
  }
  
.card-img-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(32, 0, 0, 0), rgba(32, 0, 0, 0.2));
    z-index: 1;
  }
  
  .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .square-img-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Ustala wysokość na 100% szerokości (kwadrat) */
    overflow: hidden;
}

.square43-img-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Ustala wysokość na 75% szerokości (43) */
    overflow: hidden;
}

.square-img {
    position: absolute;
    width: auto;
    height: 100%;
    top: 0;
    left: 0;
    transition: transform 0.3s ease; /* Dodajemy przejście */
}

.object-cover {
    object-fit: cover;
}

.card-course-author {
    color: var(--bs-secondary);
    font-size: small;
}

.card-course-title{
    /*color: #595959;*/
    font-weight: bold;
}

.card-course-desc{
    color: #595959;
    font-weight: light;
    

}

.category {
    color: #595959;
    margin-bottom: 0;
}

.page-image {
  height: 200px;
}

.page-content{
  background-color: #ffffff;
  padding: 20px;
  height: 100%;
}

.page-content a {
  color: var(--bs-secondary); /* Ustaw kolor linków na niebieski */
}

.sidebar{
  border-left: thick #595959;
  color: var(--bs-sidebar-color);
}

.sidebar a {
  color: var(--bs-sidebar-color);
}

.sidebar-link {
  color: var(--bs-sidebar-color);
}

/* Ciemny sidebar — pełne style z makiet design/ */
.sidebar-column {
  position: relative;
  background-color: var(--bs-sidebar-bg);
  color: rgba(255, 255, 255, 0.85);
}
.app-sidebar.sidebar-column.offcanvas-lg {
  --bs-offcanvas-width: min(85vw, 320px);
  background-color: var(--bs-sidebar-bg) !important;
}
.app-sidebar .offcanvas-header {
  min-height: 56px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.app-sidebar .offcanvas-title { color: rgba(255, 255, 255, 0.78); }
.app-sidebar .offcanvas-body { padding: 0; }
.sidebar-content-backdrop { display: none; }

/* Akcentowa linia separatora navbar ↔ sidebar (2px + miękki glow) */
.sidebar-column::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--bs-accent-color);
  box-shadow: 0 1px 6px rgba(var(--bs-accent-rgb), 0.45);
  z-index: 1;
}

/* Wrap sidebar */
.sidebar-wrap {
  padding: 1.25rem 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Karta profilu */
.sidebar-column .sidebar-profile {
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.875rem 0.75rem;
  text-align: center;
  transition: background 0.15s ease;
}
.sidebar-column .sidebar-profile:hover {
  background: rgba(255, 255, 255, 0.14);
}
.sidebar-column .sidebar-profile-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}
.sidebar-column .sidebar-profile-org {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.125rem;
}
/* Avatar w karcie profilu — 56px (z makiet), nadpisuje get_avatar_big (100px) */
.sidebar-column .sidebar-profile img,
.sidebar-column .sidebar-profile .avatar-placeholder-100 {
  width: 56px !important;
  height: 56px !important;
  font-size: 1.25rem;
}

/* Sekcje sidebar */
.sidebar-section { margin-bottom: 0.75rem; }
.sidebar-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  padding: 0 0.75rem;
  margin-bottom: 0.375rem;
}
.sidebar-section-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0.75rem 0.5rem;
}

/* Linki sidebar */
.sidebar-column .sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-column .sidebar-link i {
  width: 1.125rem;
  text-align: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.sidebar-column .sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Aktywny link */
.sidebar-column .sidebar-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
}
.sidebar-column .sidebar-link.active::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--bs-accent-color);
  border-radius: 0 2px 2px 0;
}
.sidebar-column .sidebar-link.active i {
  color: var(--bs-accent-color);
}

/* Sekcja systemowa — mniejsza, przyciemniona */
.sidebar-column .sidebar-section.system .sidebar-link {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.48);
}
.sidebar-column .sidebar-section.system .sidebar-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Fokus klawiatury */
.sidebar-column .sidebar-link:focus-visible {
  outline: 2px solid var(--bs-accent-color);
  outline-offset: 2px;
}

/* link-secondary na ciemnym tle — nadpisz na biały (Bootstrap nie nadpisuje --bs-secondary-rgb w dark) */
.sidebar-column .link-secondary {
  color: rgba(255, 255, 255, 0.6) !important;
}
.sidebar-column .link-secondary:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ==========================================================================
   ZAKŁADKI (underline tabs) — z makiet design/
   ========================================================================== */
.tabs-underline {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border-soft);
  padding: 0 0.5rem;
  margin-bottom: 1.25rem;
}
.tabs-underline .tab-item {
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--bs-secondary);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.tabs-underline .tab-item:hover { color: var(--bs-body-color); }
.tabs-underline .tab-item.active {
  color: var(--bs-primary);
  font-weight: 600;
  border-bottom-color: var(--bs-primary);
}
.tabs-underline .tab-item:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* Strzałka powrotu wpasowana w tab (ekrany podrzędne) */
.tabs-underline .tab-back {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 0.75rem;
  color: var(--bs-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s ease;
  text-decoration: none;
}
.tabs-underline .tab-back:hover { color: var(--bs-primary); }
.tabs-underline .tab-back:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   HELP BOX — z makiet design/
   ========================================================================== */
.help-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.help-box:hover {
  border-color: var(--bs-primary);
  box-shadow: var(--shadow-soft);
}
.help-box-icon {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--bs-primary-tint);
  color: var(--bs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}
.help-box-text { font-size: 0.875rem; color: var(--bs-text-color); }

/* ==========================================================================
   SEKCJA GÓRNA (help-box + filtry) — tło surface
   ========================================================================== */
.content-top-bar .help-box,
.content-top-bar .card,
.content-top-bar .info-bar {
  background: #f8f9fa;
}

/* ==========================================================================
   INFO BAR — uniwersalny pasek informacji o kontekście (szkoła/klasa/egzamin)
   ========================================================================== */
.info-bar {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.info-bar-item {
  flex: 1 1 auto;
  padding: 0.75rem 1.25rem;
  border-right: 1px solid var(--border-softer);
  min-width: 140px;
}
.info-bar-item:last-child { border-right: none; }
.info-bar-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-secondary);
  margin-bottom: 0.25rem;
}
.info-bar-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bs-body-color);
}
@media (max-width: 575.98px) {
  .info-bar-item { border-right: none; border-bottom: 1px solid var(--border-softer); }
  .info-bar-item:last-child { border-bottom: none; }
}

/* ==========================================================================
   HELP OFFCANVAS — akcenty primary
   ========================================================================== */
.help-offcanvas-header {
  border-bottom: 3px solid var(--bs-primary);
}
.help-offcanvas-icon {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--bs-primary-tint);
  color: var(--bs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  line-height: 1;
  flex-shrink: 0;
}
.help-offcanvas-header .offcanvas-title {
  line-height: 1;
}

.help-offcanvas-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bs-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bs-primary-tint);
}

/* Typografia treści help */
.help-offcanvas-content h2 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bs-heading-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.help-offcanvas-content h2:first-child {
  margin-top: 0;
}
.help-offcanvas-content p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--bs-text-color);
  margin-bottom: 0.75rem;
}
.help-offcanvas-content ul,
.help-offcanvas-content ol {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--bs-text-color);
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
}
.help-offcanvas-content li {
  margin-bottom: 0.25rem;
}
.help-offcanvas-content strong {
  font-weight: 600;
}
.help-offcanvas-content a {
  color: var(--bs-primary);
  text-decoration: underline;
}

/* Karty w sekcji górnej (wyszukiwarka) i karcie listy — dopasowanie do makiet design/ */
.content-top-bar .card,
.app-content > .card.border-0 {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Etykiety pól w sekcji górnej — dopasowanie do makiet design/ */
.content-top-bar .form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bs-secondary);
  margin-bottom: 0.25rem;
}

/* Gutter i wyrównanie pionowe w sekcji górnej */
.content-top-bar form .row {
  --bs-gutter-x: 1rem;
  align-items: flex-end;
}

/* ==========================================================================
   MIĘKKIE KARTY (card-soft) — z makiet design/
   ========================================================================== */
.card-soft {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.card-soft > .card-soft-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-softer);
}
.card-soft > .card-soft-body { padding: 1.25rem; }
.card-soft > .card-soft-footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border-softer);
  background: rgba(248, 249, 250, 0.5);
}
.content-top-bar .card-soft {
  background: #f8f9fa;
}

/* ==========================================================================
   PAGINACJA — z makiet design/
   ========================================================================== */
.pagination-soft {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
  padding: 1rem 0 0.25rem;
}
.pagination-soft .page-btn {
  min-width: 2rem; height: 2rem;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--bs-text-color);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.pagination-soft .page-btn:hover:not([aria-disabled="true"]) {
  background: var(--bs-primary-tint);
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}
.pagination-soft .page-btn.active {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
  font-weight: 600;
}
.pagination-soft .page-btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination-soft .page-info {
  font-size: 0.8125rem;
  color: var(--bs-secondary);
  margin: 0 0.5rem;
}

/* ==========================================================================
   PRZYCISKI IKONOWE (akcje w wierszach list) — z makiet design/
   ========================================================================== */
.btn-icon {
  width: 2rem; height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius, 0.5rem);
  border: 1px solid transparent;
  background: transparent;
  color: var(--bs-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn-icon:hover { background: rgba(0, 0, 0, 0.05); color: var(--bs-body-color); }
.btn-icon.btn-icon-primary:hover { background: var(--bs-primary-tint); color: var(--bs-primary); }
.btn-icon.btn-icon-danger:hover { background: var(--bs-danger-tint); color: var(--bs-danger); }

/* ==========================================================================
   STAN PUSTY (puste listy) — z makiet design/
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--bs-secondary);
}
.empty-state i { font-size: 1.75rem; margin-bottom: 0.5rem; color: var(--bs-secondary); opacity: 0.5; }
.empty-state .empty-title { font-size: 0.9375rem; font-weight: 600; color: var(--bs-body-color); }
.empty-state .empty-desc { font-size: 0.8125rem; margin-top: 0.25rem; }

/* ==========================================================================
   LAYOUT — kontener z sidebar (z makiet design/)
   ========================================================================== */
.app-layout {
  --app-mobile-navbar-height: 60px;
  display: flex;
  min-height: calc(100vh - 56px);
}
.app-sidebar {
  position: relative;
  flex: 0 0 260px;
  min-height: calc(100vh - 56px);
  border-right: 1px solid #dee2e6;
}
.app-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1.5rem;
}

@media (max-width: 991.98px) {
  .navbar {
    position: relative;
    z-index: 1041;
  }
  .app-layout { display: block; }
  #appSidebar.showing + .sidebar-content-backdrop,
  #appSidebar.show + .sidebar-content-backdrop,
  #appSidebar.hiding + .sidebar-content-backdrop {
    display: block;
    position: fixed;
    top: var(--app-mobile-navbar-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    padding: 0;
    background: rgba(0, 0, 0, 0.5);
    border: 0;
  }
  #appSidebar.app-sidebar {
    position: fixed;
    top: var(--app-mobile-navbar-height);
    bottom: 0;
    left: 0;
    z-index: 1045;
    min-height: 0;
    flex: none;
    border-right: 0;
  }
  .app-sidebar .offcanvas-body { overflow-y: auto; }
  .app-content { padding: 0.75rem; }
}

.blog-sidebar {
  color: #595959;
}

.blog-sidebar a {
  color: #595959;
}

.header-with-line {
  position: relative;
  display: inline-block;
}

.header-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom: 4px solid #CCC;
}

.header1-line {
  position: absolute;
  bottom: 8px;
  left: 0%;
  width: 100%;
  height: 16px; /* wysokość linii */
  background-image: url('line-pattern-primary.png'); /* ścieżka do obrazka */
  background-repeat: repeat-x; /* powtarzanie tylko w poziomie */
  background-position: center; /* wyśrodkowanie w pionie */
  background-size: 50px; /* szerokość grafiki */
}

.header2-line {
  position: absolute;
  bottom: -6px;
  left: 10%;
  width: 80%;
  height: 16px; /* wysokość linii */
  background-image: url('line-pattern-secondary.png'); /* ścieżka do obrazka */
  background-repeat: repeat-x; /* powtarzanie tylko w poziomie */
  background-position: center; /* wyśrodkowanie w pionie */
  background-size: 36px; /* szerokość grafiki */
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/static/fonts/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
}

.calendar-month td {
  width: 14.28%;
  justify-content: center;
  align-items: center;
}

.calendar-month tr {
  height: 60px;
}

.calendar-circle {
  width: 40px;
  height: 40px;
  display: flex;
  border-radius: 50%; /* Ustala kształt kółka */
  justify-content: center;
  align-items: center;
}

.calendar-circle:hover {
  border: 2px solid;
}

.toc {
  padding-left: 0;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  text-align: center;
  list-style: none;
  border: 2px solid #dee2e6;
  border-radius: 0 0 0.5rem 0.5rem;
}

.toc li {
  border-bottom: 1px solid #dee2e6;
  padding-top: 5px;
  padding-bottom: 5px;
}



.calendar-week {
  table-layout: fixed;
}

.calendar-week td {
  width: 12.5%;
  overflow: hidden;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Proporcje 16:9 dla wideo */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.underline_w {
    background-image: url('/static/img/slice4.png');
    background-repeat: repeat-x;
    height:50px;
}

.underline_g {
  background-image: url('/static/img/slice6.png');
  background-repeat: repeat-x;
  height:50px;
}

.part_style_box {
  padding: 1rem 1rem 1rem 1rem;
  margin-right: 3px;
}

.part_style_box p {
  margin-top: 1rem;
}

.part_style_box_primary {
  background-color: #a3819180;
  border-left: 10px solid #a38191;
}

.part_style_box_secondary {
  background-color: #cccccc80;
  border-left: 10px solid #cccccc;
}

.part_style_box_success {
  background-color: #d0cd8980;
  border-left: 10px solid #d0cd89;
}

.part_style_box_danger {
  background-color: #ff888580;
  border-left: 10px solid #ff8885;
}

.part_style_box_warning {
  background-color: #ffce9280;
  border-left: 10px solid #ffce92;
}

.part_style_box_info {
  background-color: #83adc380;
  border-left: 10px solid #83adc3;
}

.part_style_box_light {
  background-color: #eeeeee80;
  border-left: 10px solid #dddddd;
}

.part_style_box_dark {
  background-color: #000000AA;
  border-left: 10px solid #000;
  color: #ffffff;
}

/* Pokaż elementy menu na małych rozdzielczościach */
@media (max-width: 768px) {
  .visible-sm {
    display: block !important;
  }
}

.thumb-container-50 {
  width: 50px;
  height: 50px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-container-75 {
  width: 75px;
  height: 75px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-container-75 img {
  width: 100%;
  height: auto;
}

.thumb-container-100 {
  width: 100px;
  height: 100px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-container-150 {
  width: 150px;
  height: 150px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767.98px) { /* Bootstrap breakpoint dla "md" */
  .thumb-container-150 {
    width: 75px;
    height: 75px;
  }
}

.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-icon {
  position: absolute;
  bottom: 5px;
  right: 5px;
  color: green; /* Możesz dostosować kolor ikony */
}

/* ==========================================================================
   STATUS PILL — oznaczenia konta/ucznia (z makiet design/)
   ========================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}
.pill i { font-size: 0.6875rem; }
.pill-success { background: var(--bs-success-tint); color: #6b6730; }
.pill-warning { background: var(--bs-warning-tint); color: #74501f; }
.pill-danger { background: var(--bs-danger-tint); color: #8a2f47; }
.pill-secondary { background: rgba(108, 117, 125, 0.14); color: var(--bs-sidebar-color); }

/* ==========================================================================
   TAB Z PILL — wyrównanie pill po prawej stronie taba
   ========================================================================== */
.tabs-underline .tab-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}
.tabs-underline .tab-item.tab-item-fill {
  flex: 1 1 auto;
}
.tabs-underline .tab-item .pill {
  margin-left: auto;
  flex-shrink: 0;
}

/* ==========================================================================
   NAGŁÓWKI TEKSTOWE — nagłówki kart/sekcji
   ========================================================================== */
.text-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bs-heading-color);
}
.text-subtitle {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bs-body-color);
}

/* ==========================================================================
   SEKCJE FORMULARZA — wewnątrz kart
   ========================================================================== */
.form-section {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-softer);
}
.form-section:last-child { border-bottom: 0; }
.form-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bs-heading-color);
  margin-bottom: 0.25rem;
}
.form-section-desc {
  font-size: 0.8125rem;
  color: var(--bs-secondary);
  margin-bottom: 1rem;
}

/* ==========================================================================
   WYGLĄD KONTA W SEKCJI POWIĄZANIA
   ========================================================================== */
.account-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem;
  border: 1px solid var(--border-softer);
  border-radius: var(--radius);
  background: #fff;
}
.account-row .avatar-sm {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.8125rem;
  border-radius: 50%;
  background: var(--bs-primary-tint);
  color: var(--bs-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.account-row-main { flex: 1 1 auto; min-width: 0; }
.account-row-meta { flex: 0 0 auto; }
.account-row .text-subtitle { font-weight: 600; color: var(--bs-body-color); }
.account-row .text-meta { font-size: 0.8125rem; color: var(--bs-secondary); }

.mermaid-diagram svg { 
  max-width: 100% !important;
  width: 100% !important;
  height: auto;
}

.color-red {
  color: var(--bs-danger);
}

.avatar-container {
  display: inline-flex;
  vertical-align: middle;
}

.avatar-placeholder-100 {
  background-color: var(--bs-warning);
  color: var(--bs-dark);
  font-weight: bold;
  font-size: 32px;
  text-transform: uppercase;
  width: 100px;
  height: 100px;
}

.avatar-placeholder-50 {
  background-color:  var(--bs-warning);
  color: var(--bs-dark);
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  width: 50px;
  height: 50px;
}

.avatar-placeholder-25 {
  background-color:  var(--bs-warning); 
  color: var(--bs-dark);
  font-weight: bold;
  font-size: 10px;
  text-transform: uppercase;
  width: 25px;
  height: 25px;
}

.product-tile-row {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.page-color {
    background-color: var(--bs-background-color);
}

.section-color {
    background-color: #dbd3dd;
}

.btn-eye:active {
  opacity: 0.5;
}

/* Password input with eye icon inside */
.password-input-wrapper {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}

.password-eye-icon {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  cursor: pointer !important;
  color: #6c757d !important;
  font-size: 18px !important;
  z-index: 9999 !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  background: white !important;
  padding: 5px !important;
  border-radius: 4px !important;
  pointer-events: auto !important;
  border: 1px solid #ccc !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.password-eye-icon:hover {
  color: #495057 !important;
  background-color: #f8f9fa !important;
}

.password-eye-icon:active {
  opacity: 0.7 !important;
}

/* Adjust padding-right for password input to accommodate icon */
.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
  padding-right: 50px !important;
}

/* Ensure the wrapper doesn't interfere with Bootstrap form layout */
.password-input-wrapper .form-control {
  width: 100% !important;
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 767.98px) {
    .min-vh-100 {
        min-height: auto !important;
    }
}

/* Breadcrumb link hover effect */
.card-header .breadcrumb-link {
    transition: opacity 0.2s ease-in-out;
}

.card-header .breadcrumb-link:hover {
    opacity: 0.7 !important;
}

/* Help offcanvas z-index above modal */
#helpOffcanvas {
    width: min(600px, 90vw);
    z-index: 1060;
}

.offcanvas-backdrop {
    z-index: 1059 !important;
}


/* ==========================================================================
   WIERSZE LISTY (szkoły, egzaminy, uczniowie)
   ========================================================================== */
.list-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-softer);
  transition: background 0.15s ease;
  position: relative;
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: rgba(248, 249, 250, 0.6); }

.list-row-main    { grid-column: 1; grid-row: 1; min-width: 0; }
.list-row-meta    { grid-column: 2; grid-row: 1; }
.list-row-actions { grid-column: 3; grid-row: 1; display: flex; gap: 0.25rem; justify-content: flex-end; }

@media (max-width: 575.98px) {
  .list-row { grid-template-columns: 1fr; }
  .list-row-main    { grid-column: 1; grid-row: 1; }
  .list-row-actions { grid-column: 1; grid-row: 2; justify-content: flex-end; }
  .list-row-meta    { grid-column: 1; grid-row: 3; }
}

/* ==========================================================================
   LISTA — wspólne klasy dla wierszy (szkoły, uczniowie, egzaminy)
   ========================================================================== */
.list-name { font-size: 0.9375rem; font-weight: 600; color: var(--bs-body-color); line-height: 1.2; }
.list-name-lg { font-size: 1rem; font-weight: 700; color: var(--bs-heading-color); line-height: 1.2; }
.list-sub-line { font-size: 0.8125rem; color: var(--bs-sidebar-color); margin-top: 0.125rem; }
.list-meta-line { font-size: 0.8125rem; color: var(--bs-sidebar-color); margin-top: 0.25rem; }
.list-meta-line i { color: var(--bs-sidebar-color); }

.avatar-sm {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--bs-primary-tint);
  color: var(--bs-primary);
  font-weight: 700;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Meta tekst pomocniczy */
.text-meta { font-size: 0.8125rem; color: var(--bs-sidebar-color); }

/* Nagłówek i stopka karty listy */
.app-content > .card.border-0 .card-header,
.app-content > .card.border-0 .card-footer {
  background: transparent;
  border-color: var(--border-softer);
  padding: 1rem 1.25rem;
}
.app-content > .card.border-0 .card-body.p-0 { padding: 0; }

/* Lewy akcent koloru statusu */
.list-row.accent-success::before,
.list-row.accent-warning::before,
.list-row.accent-danger::before,
.list-row.accent-info::before,
.list-row.accent-secondary::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.list-row.accent-success::before { background: var(--bs-success); }
.list-row.accent-warning::before { background: var(--bs-warning); }
.list-row.accent-danger::before { background: var(--bs-danger); }
.list-row.accent-info::before { background: var(--bs-info); }
.list-row.accent-secondary::before { background: var(--bs-sidebar-color); }

/* Tabela statystyk — soft table */
.table-soft {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.table-soft thead th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary);
  border-bottom: 2px solid var(--border-softer);
  white-space: nowrap;
}
.table-soft thead th a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.table-soft thead th a:hover { color: var(--bs-primary); }
.table-soft thead th.text-center { text-align: center; }
.table-soft thead th .sort-icon { font-size: 0.625rem; opacity: 0.6; }
.table-soft tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-softer);
  vertical-align: middle;
}
.table-soft tbody tr:last-child td { border-bottom: none; }
.table-soft tbody tr:hover { background: var(--bs-gray-100); }
.table-soft .text-center { text-align: center; }
.table-soft .student-name { font-weight: 600; color: var(--bs-body-color); }
.table-soft .class-name { color: var(--bs-secondary); }
.table-soft .class-none { color: var(--bs-secondary); font-style: italic; }
