/* Stylizacja głównego układu */
#wrapper {
  display: flex !important;
  width: 100% !important;
  position: relative !important;
  min-height: 100vh !important;
}

/* Stylizacja menu bocznego */
#accordionSidebar {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  width: 14rem !important;
  flex-shrink: 0 !important;
  z-index: 9999 !important;
  overflow-y: auto !important;
  transition: all 0.25s ease-in-out !important;
  padding-bottom: 30px !important;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

/* Stan zwinięty menu bocznego */
.sidebar.toggled {
  margin-left: -14rem !important;
  width: 0 !important;
  overflow: hidden !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* Stylizacja gradientu tła */
.bg-gradient-primary {
  background-color: #4e73df !important;
  background-image: linear-gradient(180deg, #353847 10%, #224abe 100%) !important;
  background-size: cover !important;
}

/* Stylizacja marki w sidebar */
.sidebar-brand {
  height: 6.4rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 1rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease-in-out !important;
}

.sidebar-brand:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.sidebar-brand-icon {
  font-size: 1.5rem !important;
  margin-right: 0.25rem !important;
}

.sidebar-brand-text {
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #fff !important;
}

/* Stylizacja elementów nawigacji */
.sidebar .nav-item {
  position: relative !important;
}

.sidebar .nav-item .nav-link {
  display: block !important;
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  color: rgba(255, 255, 255, 0.8) !important;
  text-align: left !important;
  transition: all 0.3s ease-in-out !important;
}

.sidebar .nav-item .nav-link:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  padding-left: 1.25rem !important;
}

/* Stylizacja aktywnego elementu */
.sidebar .nav-item.active .nav-link {
  color: #fff !important;
  font-weight: 600 !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-left: 4px solid #fff !important;
  padding-left: calc(1rem - 4px) !important;
}

/* Stylizacja ikon w menu */
.sidebar .nav-item .nav-link i {
  margin-right: 0.5rem !important;
  color: rgba(255, 255, 255, 0.3) !important;
  font-size: 0.85rem !important;
}

.sidebar .nav-item .nav-link:hover i,
.sidebar .nav-item.active .nav-link i {
  color: #fff !important;
}

/* Stylizacja nagłówków sekcji */
.sidebar .sidebar-heading {
  padding: 0 1rem !important;
  margin-top: 1rem !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Dzielniki w menu */
.sidebar hr.sidebar-divider {
  margin: 1rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Przycisk zwijania menu na dole sidebar */
#sidebarToggle {
  width: 2.5rem !important;
  height: 2.5rem !important;
  text-align: center !important;
  margin-bottom: 1rem !important;
  cursor: pointer !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: none !important;
  border-radius: 50% !important;
  transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out !important;
}

#sidebarToggle:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

#sidebarToggle:after {
  font-weight: 900 !important;
  content: '\f104' !important;
  font-family: 'Font Awesome 5 Free' !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

body.sidebar-toggled #sidebarToggle {
  transform: rotate(180deg) !important;
}

body.sidebar-toggled #sidebarToggle:after {
  content: '\f105' !important;
}

/* Kontener treści */
#content-wrapper {
  flex: 1 0 auto !important;
  width: calc(100% - 14rem) !important;
  min-width: 0 !important;
  margin-left: 14rem !important;
  transition: margin-left 0.25s ease-in-out !important;
    background: linear-gradient(to bottom right, #e8e8e8, #eee);
    /* For older browsers that don't support gradients */
    background: -webkit-linear-gradient(top left, #e8e8e8, #eee);
    background: -moz-linear-gradient(top left, #e8e8e8, #eee);
    background: -o-linear-gradient(top left, #e8e8e8, #eee);
    /* Make sure the gradient covers the entire area */
    background-size: 100% 100%;
    background-attachment: fixed;
}

/* Treść główna */
#content {
  width: 100% !important;
  padding-bottom: 1.5rem !important;
}

/* Przycisk mobilnego zwijania sidebar */
#sidebarToggleTop {
  height: 2.5rem !important;
  width: 2.5rem !important;
  border-radius: 50% !important;
  font-size: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 1rem !important;
  cursor: pointer !important;
}

/* Górny pasek */
.topbar {
  position: relative !important;
  z-index: 1 !important;
  height: 4.375rem !important;
}

/* Scrollbar dla sidebar */
#accordionSidebar::-webkit-scrollbar {
  width: 6px !important;
}

#accordionSidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1) !important;
}

#accordionSidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3) !important;
  border-radius: 3px !important;
}

#accordionSidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5) !important;
}

/* Overlay dla mobilnego menu */
body.sidebar-toggled:before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

/* Responsywność */
@media (max-width: 768px) {
  /* Na urządzeniach mobilnych sidebar jest domyślnie ukryty */
  #accordionSidebar {
    margin-left: -14rem !important;
  }
  
  /* Po kliknięciu przycisku, menu się pokazuje */
  body.sidebar-toggled #accordionSidebar {
    margin-left: 0 !important;
    width: 14rem !important;
  }
  
  /* Kontener treści zajmuje całą szerokość */
  #content-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* Pokazanie overlay'a po rozwinięciu menu na mobilnych */
  body.sidebar-toggled:before {
    display: block;
  }
}

/* Dodatkowe style dla elementów UI */

/* Karty */
.card {
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1) !important;
  border: none !important;
  border-radius: 0.35rem !important;
}

.card-header {
  border-bottom: 1px solid #e3e6f0 !important;
  padding: 0.75rem 1.25rem !important;
  background-image: linear-gradient(180deg, #5c6699 10%, #224abe 100%) !important;
}

/* Przywrócenie domyślnego koloru dla nagłówków wykresów (np. text-primary) */
.card-header.chart-header h6.text-primary {
  color: #4e73df !important;
}

/* Wysokość canvasów w kartach z wykresami */
.card-header.chart-header + .card-body canvas,
.card.chart-card canvas {
  height: 200px !important;
  max-height: 200px !important;
}

.card-header h6.text-primary {
  color: #fff !important;
}

/* Przyciski */
.btn-primary {
  background-color: #4e73df !important;
  border-color: #4e73df !important;
}

.btn-primary:hover {
  background-color: #2e59d9 !important;
  border-color: #2653d4 !important;
}

.btn-secondary {
  background-color: #858796 !important;
  border-color: #858796 !important;
}

.btn-secondary:hover {
  background-color: #717384 !important;
  border-color: #6b6d7d !important;
}

/* Tabele */
.table-bordered {
  border: 1px solid #e3e6f0 !important;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid #e3e6f0 !important;
}

/* Globalny font-size dla wszystkich tabel w panelu administracyjnym */
.container-fluid table.table,
.card-body table.table,
.table-responsive table.table {
    font-size: 0.8rem;
}

/* Wyśrodkowanie treści w pionie w tabelach panelu administracyjnego */
.container-fluid table.table th,
.container-fluid table.table td,
.card-body table.table th,
.card-body table.table td,
.table-responsive table.table th,
.table-responsive table.table td {
    vertical-align: middle;
}

/* Efekt hover dla wierszy tabeli */
table.table tbody tr {
    transition: background-color 0.15s ease-in-out;
}

table.table tbody tr:hover td {
    background-color: rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

/* Badges - kolory i style */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: #fff !important;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.35rem;
}

.badge-danger {
    background-color: #e74a3b !important;
    color: #fff !important;
}

.badge-primary {
    background-color: #4e73df !important;
    color: #fff !important;
}

.badge-info {
    background-color: #36b9cc !important;
    color: #fff !important;
}

.badge-success {
    background-color: #1cc88a !important;
    color: #fff !important;
}

.badge-warning {
    background-color: #f6c23e !important;
    color: #fff !important;
}

.badge-secondary {
    background-color: #858796 !important;
    color: #fff !important;
}

/* Formularze */
.form-control:focus {
  border-color: #bac8f3 !important;
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25) !important;
}

/* Breadcrumbs */
.breadcrumb {
  background-color: transparent !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "\f105" !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  padding-right: 0.5rem !important;
  color: #858796 !important;
}

/* Poprawiona nawigacja na stronie dla mobilnych urządzeń */
.navbar-nav .nav-link {
  padding-right: 1rem !important;
  padding-left: 1rem !important;
}

/* Styl dla profilowego zdjęcia w topbar */
.img-profile {
  height: 2rem !important;
  width: 2rem !important;
}

/* Styl dla dropdown menu */
.dropdown-menu {
  border: none !important;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.dropdown-item:active {
  background-color: #4e73df !important;
}

/* Dodatkowe style dla głównej treści przy zwinięciu menu */
body.sidebar-toggled #content-wrapper {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Poprawki dla przycisku sidebarToggleTop */
#sidebarToggleTop {
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  color: #4e73df !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
  padding: 0.25rem 0.75rem !important;
  position: relative !important;
}
#sidebarToggleTop::after,
#sidebarToggleTop::before {
  display: none !important;
  content: none !important;
}

#sidebarToggleTop:hover {
  color: #224abe !important;
  transform: scale(1.1) !important;
}

#sidebarToggleTop:focus {
  outline: none !important;
}

#sidebarToggleTop i {
  font-size: 1.5rem !important;
  transition: transform 0.3s ease !important;
}

/* Animacja przycisku przy zwijaniu/rozwijaniu */
body.sidebar-toggled #sidebarToggleTop i {
  transform: rotate(90deg) !important;
}

/* Zaktualizowanie stylów na urządzeniach mobilnych */
@media (max-width: 768px) {
  #sidebarToggleTop {
    display: block !important;
    position: relative !important;
    z-index: 1050 !important; /* Wyższy z-index niż sidebar */
  }
  
  /* Gładsze przejście dla menu bocznego */
  #accordionSidebar {
    transition: transform 0.3s ease, width 0.3s ease !important;
    transform: translateX(-100%) !important;
    width: 14rem !important;
  }
  
  body.sidebar-toggled #accordionSidebar {
    transform: translateX(0) !important;
  }
  
  /* Animacja zaciemnienia tła przy otwartym menu na mobile */
  body.sidebar-toggled::after {
    content: "" !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 900 !important;
    animation: fade-in 0.3s ease !important;
  }
  
  @keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* Naprawienie problemu z zawartością pod menu */
@media (min-width: 768px) {
  body.sidebar-toggled #content-wrapper {
    /*margin-left: 6.5rem !important;*/
    width: calc(100% - 6.5rem) !important;
  }
  
  body.sidebar-toggled #accordionSidebar {
    width: 6.5rem !important;
  }
  
  body.sidebar-toggled .sidebar .nav-item .nav-link {
    padding: 0.75rem 1rem !important;
    text-align: center !important;
  }
  
  body.sidebar-toggled .sidebar .nav-item .nav-link span {
    display: none !important;
  }
  
  body.sidebar-toggled .sidebar .nav-item .nav-link i {
    margin-right: 0 !important;
    font-size: 1.25rem !important;
  }
  
  body.sidebar-toggled .sidebar .sidebar-brand-text {
    display: none !important;
  }
}

/* Style, które zapewnią, że nawigacja będzie zawsze po prawej stronie */
.navbar-nav.ml-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  width: auto !important;
  flex-grow: 1 !important;
}

/* Naprawiamy też kontener nawigacji */
.navbar-expand .navbar-nav {
  flex-direction: row !important;
}

/* Upewniamy się, że rodzic ma odpowiedni display */
.navbar {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  width: 100% !important;
}

/* Dodatkowe style dla poprawnego wyświetlania na urządzeniach mobilnych */
@media (max-width: 768px) {
  .navbar-nav.ml-auto {
    justify-content: flex-end !important;
    width: 100% !important; /* Na małych ekranach może zajmować pełną szerokość */
  }
  
  /* Upewniamy się, że przycisk toggle jest po lewej */
  #sidebarToggleTop {
    margin-right: auto !important;
    order: -1 !important;
  }
  
  /* Topbar musi mieć prawidłowy display */
  .topbar {
    display: flex !important;
    flex-wrap: wrap !important;
  }
  
  /* Naprawiamy kontener nawbaru */
  .topbar .navbar {
    flex-wrap: nowrap !important;
  }
}

/* Poprawki dla alertów bootstrap */

/* Kontener alertu */
.alert {
  position: relative;
  padding: 1rem 3.5rem 1rem 1.25rem; /* Zwiększony padding po prawej dla przycisku zamykania */
  border: 1px solid transparent;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

/* Poprawka przycisku zamykania */
.alert .close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.75rem 1.25rem;
  color: inherit;
  opacity: 0.5;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 0 #fff;
  outline: none;
}

.alert .close:hover,
.alert .close:focus {
  opacity: 0.75;
  text-decoration: none;
  cursor: pointer;
}

/* Poprawa efektu hover na przycisku */
.alert-dismissible .close:hover {
  opacity: 0.9;
}

/* Style dla różnych typów alertów */
.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-success .close {
  color: #155724;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-danger .close {
  color: #721c24;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.alert-warning .close {
  color: #856404;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert-info .close {
  color: #0c5460;
}

/* Animacja fade */
.alert.fade {
  opacity: 0;
  transition: opacity 0.15s linear;
}

.alert.fade.show {
  opacity: 1;
}

/* Responsywność dla małych ekranów */
@media (max-width: 576px) {
  .alert {
    padding: 0.75rem 3rem 0.75rem 1rem;
  }
  
  .alert .close {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
  }
}

a.dropdown-item > div {
  font-size: 11px !important;
}

/* Style dla modali */
.modal-open {
  overflow: hidden;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

.modal.show .modal-dialog {
  transform: none;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid #e3e6f0;
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
}

.modal-header .close {
  padding: 1rem;
  margin: -1rem -1rem -1rem auto;
  background-color: transparent;
  border: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
  cursor: pointer;
}

.modal-header .close:hover {
  opacity: 0.75;
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem;
  border-top: 1px solid #e3e6f0;
  border-bottom-right-radius: calc(0.3rem - 1px);
  border-bottom-left-radius: calc(0.3rem - 1px);
}

.modal-footer > * {
  margin: 0.25rem;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
  }
}
.modal-backdrop {
  z-index: 1040;  
}

.card-body.ostatnia-aktywnosc {
  font-size: 0.8rem !important;
}

/* Poprawka widoczności i pozycjonowania scroll-to-top */
.scroll-to-top {
  position: fixed !important;
  right: 1.5rem !important;
  bottom: 1.5rem !important;
  z-index: 1051 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.75rem !important;
  height: 2.75rem !important;
  background: #4e73df !important;
  color: #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58,59,69,.15) !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s, background 0.2s !important;
}

.scroll-to-top:hover {
  opacity: 1 !important;
  background: #224abe !important;
  color: #fff !important;
}

.scroll-to-top.rounded {
  border-radius: 50% !important;
}

@media (max-width: 768px) {
  .scroll-to-top {
    right: 1rem !important;
    bottom: 1rem !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
  }
}

/* Footer zawsze na dole strony i większy padding */
footer {
  position: fixed !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  background: #fff !important;
  z-index: 1050 !important;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}
body {
  padding-bottom: 70px !important; /* Zapobiega nachodzeniu treści na footer */
}

main {
  min-height: 100vh;
  background: linear-gradient(to bottom right, #e8e8e8, #eee) !important;
  background-size: 100% 100% !important;
  background-attachment: fixed !important;
}

.container-fluid {
  max-width: 1400px;
  margin-left: 0;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Stylizacja nagłówków sekcji */
.dashboard-section-title, .section-title, h1, h2, h3 {
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #2a2e4d;
  background: linear-gradient(90deg, #4e73df 0%, #224abe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* text-fill-color: transparent;  <-- usunięto, nieobsługiwane */
  /* Fallback: jeśli gradient nie jest obsługiwany, kolor tekstu pozostaje #2a2e4d */
  text-shadow: 0 2px 8px rgba(80,80,120,0.07);
  margin-bottom: 1.1em;
}

.form-card .card-header h3.text-white.mb-0 {
  color: #fff !important;
  -webkit-text-fill-color: unset !important;
}

.card-header-chart {
  background: linear-gradient(90deg, rgba(78,115,223,0.10) 0%, rgba(28,200,138,0.10) 100%) !important;
  backdrop-filter: blur(2px);
  border-bottom: 1px solid #e3e6f0 !important;
}

.card-header-chart h6.text-primary {
  color: #4e73df !important;
  -webkit-text-fill-color: #4e73df !important;
}

.card-header-faq {
  background: linear-gradient(90deg, rgba(78,115,223,0.07) 0%, rgba(28,200,138,0.07) 100%) !important;
  backdrop-filter: blur(1.5px);
  border-bottom: 1px solid #e3e6f0 !important;
}

.card-header.card-question {
  background: linear-gradient(90deg, rgba(78,115,223,0.07) 0%, rgba(28,200,138,0.07) 100%) !important;
  backdrop-filter: blur(1.5px);
  border-bottom: 1px solid #e3e6f0 !important;
}

.card-header.card-question .btn-link {
  text-decoration: none !important;
  box-shadow: none !important;
}
.card-header.card-question .btn-link:hover,
.card-header.card-question .btn-link:focus {
  text-decoration: none !important;
  color: #224abe !important;
  background: rgba(78,115,223,0.08);
}

/* Nowoczesny styl dla kart statystyk */
.card.stats-card {
  background: rgba(255,255,255,0.85) !important;
  box-shadow: 0 8px 32px 0 rgba(60, 80, 180, 0.12), 0 1.5px 6px 0 rgba(78,115,223,0.10) !important;
  border-radius: 1.25rem !important;
  border: 1.5px solid rgba(78,115,223,0.10) !important;
  padding: 1.5rem 1.25rem 1.25rem 1.25rem !important;
  transition: box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.card.stats-card:before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #4e73df 0%, #1cc88a 100%);
  opacity: 0.08;
  border-radius: 50%;
  z-index: 0;
}

.card.stats-card .card-body {
  position: relative;
  z-index: 1;
}

.card.stats-card .stats-label {
  font-size: 0.95rem;
  color: #6c757d;
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.card.stats-card .stats-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: #224abe;
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
}

.card.stats-card .stats-icon {
  font-size: 2.2rem;
  color: #4e73df;
  opacity: 0.18;
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 1;
}

.card.stats-card .stats-trend {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1cc88a;
  margin-top: 0.2rem;
}

.card.stats-card .stats-trend.negative {
  color: #e74a3b;
}

/* Nowoczesny styl dla kart na pulpicie nawigacyjnym */
.card.card-dashboard {
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 8px 32px 0 rgba(60, 80, 180, 0.13), 0 1.5px 6px 0 rgba(78,115,223,0.10) !important;
  border-radius: 1.25rem !important;
  border: 0.5px solid rgba(78,115,223,0.10) !important;
  padding: 1.5rem 1.25rem 1.25rem 1.25rem !important;
  position: relative;
  overflow: hidden;
  transition: none !important;
}

.card.card-dashboard:before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #4e73df 0%, #1cc88a 100%);
  opacity: 0.09;
  border-radius: 50%;
  z-index: 0;
}

.card.card-dashboard .card-body {
  position: relative;
  z-index: 1;
}

.card.card-dashboard .text-xs {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #6c757d !important;
  margin-bottom: 0.25rem !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

.card.card-dashboard .h5,
.card.card-dashboard .stats-value {
  font-size: 2.1rem !important;
  font-weight: 700 !important;
  color: #224abe !important;
  margin-bottom: 0.15rem !important;
  letter-spacing: -0.01em !important;
}

.card.card-dashboard .col-auto i {
  font-size: 2.2rem !important;
  color: #4e73df !important;
  opacity: 0.5 !important;
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 1;
}

.card.card-dashboard .stats-trend {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1cc88a;
  margin-top: 0.2rem;
}

.card.card-dashboard .stats-trend.negative {
  color: #e74a3b;
}

.login-card h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.card-login .card-header h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}








