/* Chart containers for uslugi_ppc.html */
.chart-container {
  width: 100%;
  position: relative;
}
.chart-container--h200 {
  height: 200px;
}
.chart-container--h250 {
  height: 250px;
}
.chart-container--h300 {
  height: 300px;
}
/* Website circle for website list in user dropdown */
.website-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  background: #1976d2;
  /* Default, can be overridden by parent order or JS */
}
.website-circle:nth-child(1) { background: #1976d2; }
.website-circle:nth-child(2) { background: #ffc107; color: #212529; }
.website-circle:nth-child(3) { background: #e53935; }
.website-circle:nth-child(4) { background: #00bcd4; }
.website-circle:nth-child(5) { background: #388e3c; }
.website-circle:nth-child(6) { background: #212529; }
.website-circle:nth-child(n+7) { background: #6c757d; }
.website-circle { color: #fff; }

:root {
  --primary-color: #632483;
  --secondary-color: #470a69;
  --text-color: #212529;
  --success: #198754;
  --danger: #e40000;
  --lightpink: #ecddec;
  --warning: #725300;
  --warning-bright: #ffc107;
  --softpink: #fefaff;
  --violet: #855E9B;
}

:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(99, 36, 131, 0.25);
}

* {
  font-family: "Inter", sans-serif;
}
.navbar-brand img {
  width: 172px;
  max-width: 172px;
}

.bg-violet {
  background-color: var(--violet);
}

.dropdown-toggle::after {
  display: none;
}

.bg-softpink {
  background-color: var(--softpink);
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.notifications-pill {
  border: 2px solid var(--primary-color);
  width: 10px;
  height: 10px;
  font-size: 0;
}

.btn .badge {
  top: 4px;
  right: -8px;
  outline: 2px solid white;
}

.container,
.navbar .btn {
  padding: 0 !important;
}

#mainContainer,
main.content {
  min-width: 0;
}

.sidebar {
  max-width: 250px;
  width: 100%;
  transition: width 0.3s ease, max-width 0.3s ease;
  overflow: clip;
  white-space: nowrap;
}
.sidebar.sidebar--closed {
  max-width: 76px;
  width: 76px;
}

@media (min-width: 768px) {
  .sidebar {
    flex: 0 0 250px;
  }
  .sidebar.sidebar--closed {
    flex: 0 0 76px;
  }
  main.content {
    flex: 1 1 0;
    min-width: 0;
  }
}

.sticky-top:has(nav) {
  background-color: white;
  z-index: 1030;
}

.login-page .sticky-top:has(nav) {
  background-color: transparent;
  z-index: 1020;
}

.login-page .navbar {
  background-color: white;
}

.login-page #loginCarousel .carousel-indicators {
  bottom: -16px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn {
  padding: 12px;
}
.sidebar .accordion-button,
.sidebar .btn,
.sidebar .nav-link {
  padding: 12px !important;
}

.sidebar a,
.sidebar .accordion-button {
  font-size: 16px;
}
.accordion-item:has(.accordion-button:not(.collapsed)) .accordion-item {
  background-color: var(--softpink);
}

.sidebar .nav-link {
  color: var(--text-color);
  font-size: 18px;;
  border-radius: 0.375rem;
}

.sidebar .btn-active {
  background-color: var(--primary-color);
  color: white !important;
}

.sidebar .btn-active.nav-link i {
  color: white !important;
}

.sidebar .btn-active:hover,
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--secondary-color) !important;
  color: white;
}

.sidebar .nav-link:hover,
.sidebar .accordion .nav-link:hover i {
  color: var(--primary-color);
}

.accordion-item:has(.accordion-button:not(.collapsed)) .accordion-item {
  background-color: var(--lightpink);
}
.sidebar .accordion-button:not(.collapsed) {
  background-color: transparent;
  box-shadow: unset;
  color: var(--text-color);
  font-weight: 500;
}

.card__footer p {
  color: black;
  font-size: 18px;
}
.sidebar .accordion i,
.sidebar .nav-link i,
.bi.bi-download {
  color: var(--primary-color);
  transition: 0.15s;
}

.btn-primary .bi.bi-download {
  color: white;
}

.sidebar .accordion .nav-link {
  font-weight: 500;
}

.hero {
  min-height: 400px;
  border-radius: 0.375rem;
}

.hero h1 {
  font-weight: 600;
  font-size: 54px;
}

.hero .lead {
  font-size: 28px;
}
.hero .lead,
.hero h1 {
  position: relative;
  z-index: 2;
}

.hero-status-dot {
  width: 8px;
  height: 8px;
}

.hero-card--rounded {
  border-radius: 20px;
}

.hero-letter-spacing {
  letter-spacing: 1px;
}

.hero-text-xs {
  font-size: 0.7rem;
}

.hero-progress {
  height: 8px;
  background-color: #f0f0f0;
}

.hero-progress-bar {
  background-color: #3b2055 !important;
}
.accordion-item:has(.accordion-button:not(.collapsed)) .accordion-item {
  background-color: var(--lightpink);
}

.hero, .login-bg {
  background-image: url("../images/18620.webp");
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  overflow: clip;
}

 .login-bg {
  background-image: url("../images/stats.jpg");
 }
.login-bg img {
  position: relative;
  z-index: 2;
   width: 100%;
}

.login-bg #loginCarousel {
  position: relative;
  z-index: 2;
}

.login-bg #loginCarousel .carousel-indicators {
  z-index: 3;
}

 .login input[type="password"], .login input[type="email"] {
  padding-top: 15px;
  padding-bottom: 15px;;
 }

.form-control,
.form-select {
  padding-top: 15px;
  padding-bottom: 15px;
}

.form-select,
select.form-select {
  color: #212529 !important; /* strong fallback for all states */
  background-color: #fff !important;
  border: 1px solid #ced4da;
}

.form-select option,
.form-select option:checked,
.form-select option:hover {
  color: #212529 !important;
  background-color: #fff !important;
}

.form-select option[value="5"] {
  color: #212529 !important;
}

@media (max-width: 575.98px) {
  .form-select,
  select.form-select {
    color: #212529 !important;
    background-color: #fff !important;
  }
}

.navbar .search-form .form-control {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
main .accordion-collapse {
  background-color: var(--softpink);
}
.hero:after, .login-bg:after {
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  background: linear-gradient(135deg, #632483, #111139);
  opacity: 0.9;
  z-index: 1;
}

h2 {
  color: var(--text-color);
  font-size: 30px;
  font-weight: 400;
}

.table thead th {
  background-color: #f1f1f1;
  padding: 20px;
  color: var(--text-color);
  font-weight: 500;
}
.table tbody td {
  background-color: #ffffff;
  color: var(--text-color);
}

table {
  border-radius: 10px;
  overflow: clip;
}

.status {
  display: inline-block;
  font-size: 13px;
  white-space: nowrap;
  color: var(--danger);
  font-weight: 500;
}

.status--success {
  color: var(--success);
}

.status--warning {
  color: var(--warning);
}
.status--danger {
  color: var(--danger);
}

.pagination .page-item .page-link {
  border: unset;
  color: black;
  border-radius: 0.375rem;
  margin: 0 2px;
}
.pagination .page-item.active .page-link {
  background-color: var(--primary-color);

  color: white;
}

.page-link:hover {
  background-color: var(--lightpink);
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}
.contact-link:before {
  content: "Email";
  display: block;
  font-size: 14px;
  color: var(--text-color);
}

.contact-link--phone:before {
  content: "Telefon";
}

.manager-widget i,
.widget-info__icon i,
.services-list i,
.info-card-item i {
  background-color: var(--lightpink);
  padding: 5px;
  font-size: 20px;
  border-radius: 5px;
  aspect-ratio: 1;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 992px) {
  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.services-list > li,
.notifications-list li {
  border: 2px solid #f0f0f1 !important;
  padding: 20px;
  border-radius: 10px !important;
  color: var(--text-color);
  font-weight: 400;
}

.notifications-list li {
  border: unset !important;
  background-color: var(--lightpink);
}
.notifications-list li.notification-empty-state,
.services-list li.notification-empty-state {
  background-color: transparent;
  padding: 0;
  border: unset !important;
}
.notifications-list li.notification-empty-state .notification-empty-container,
.services-list li.notification-empty-state .notification-empty-container {
  background-color: var(--lightpink);
  padding: 1px;
  border-radius: 10px;
}
.notifications-list li.notification-empty-state .notification-empty-container .card,
.services-list li.notification-empty-state .notification-empty-container .card {
  border: none;
}
.services-list li span,
.services-list li h3,
.notifications-list h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
h4 em {
  font-style: normal;
  color: var(--primary-color);
}
.services-list li h3,
.notifications-list h3 {
  margin: 0;
}
.text-primary {
  color: var(--primary-color) !important;
}

.keywords-data__label {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.keyword-link {
  color: #612d7d;
}

.keyword-link:hover,
.keyword-link:focus {
  color: #612d7d;
}

.filter-label {
  font-size: 0.7rem;
  white-space: nowrap;
}

.filter-select {
  width: auto;
  min-width: 130px;
  cursor: pointer;
  background-position: right 0.25rem center;
}

.user-dropdown-card {
  border-radius: 8px;
}

.service-toggle-btn {
  box-shadow: 0 1px 4px rgba(99, 36, 131, 0.04);
  font-size: 16px;
}

.service-toggle-icon {
  font-size: 18px;
}

.service-toggle-chevron {
  font-size: 16px;
}

.service-list-panel {
  display: none;
}
.notifications-list h3 {
  color: var(--primary-color);
}
.services-list li h3:before,
.status:after,
.notifications-list h3:before {
  content: "";
  width: 10px;
  height: 10px;
  max-width: 10px;
  max-height: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--primary-color);
}
.notification__content {
  padding: 15px 0 0 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notification__content p {
  color: var(--text-color);
  font-weight: 500;
  margin: 0;
  font-size: 14px;
}

.status:after {
  background-color: var(--danger);
}

.status--success:after {
  background-color: var(--success);
}

.status--warning:after {
  background-color: var(--warning-bright);
}
.status--danger:after {
  background-color: var(--danger);
}

.status-dot-success {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.status-dot-success:before {
  content: "";
  width: 10px;
  height: 10px;
  max-width: 10px;
  max-height: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--success);
}

#uslugi-pane .services-list .status {
  min-width: 140px;
  display: inline-flex;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
  border: 2px solid var(--primary-color) !important;
  color: white;
  background-color: var(--primary-color) !important;
}
.accordion-button:not(.collapsed) {
  background-color: var(--softpink);
  color: var(--primary-color);
}

main .accordion-item:has(.accordion-button:not(.collapsed)) {
  border: 1px solid var(--lightpink) !important;
  background-color: var(--lightpink);
}

.accordion-item {
  border-color: #f0f0f1 !important;
}

.accordion-button {
  font-size: 18px !important;
}


.documents-list li h3:before {
  display: none;
}
.documents-list li h3 i {
  font-size: 20px;
  color: var(--primary-color);
}
.documents-list li h3 {
  color: var(--primary-color);
}
.documents-list li h3 {
  display: block !important;
}
.documents-list li h3:after {
  content: "Dokumenty";
  color: var(--text-color);
  display: block;
  padding-left: 32px;
  font-size: 14px;
  margin: 5px 0 0 0;
}

.rotated {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}


.documents-gallery .card-body {
  background-image: url("../images/18620.webp");
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  overflow: clip;
  display: flex;
  flex-direction: column;
  gap: 35px;
  aspect-ratio: 1;
  justify-content: space-between;
  opacity: 0.9;
  transition: 0.5s;
  text-decoration: unset;
}


#podglad-pane .card-body {
  aspect-ratio: 16/8;
}
.services-widget__content .card-body h3 {
  font-size: 22px;
}

.documents-gallery .card {
  border: 2px solid var(--primary-color) !important;
  border-radius: 10px;
  overflow: hidden;
}

.documents-gallery .card-body:hover {
  opacity: 1;
}

.documents-gallery .card-body:after {
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  background: linear-gradient(135deg, #632483, #111139);
  opacity: 0.9;
  z-index: 1;
}
.documents-gallery .card {
  border: unset;
}

.documents-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.documents-gallery__grid > .col {
  padding: 0;
  margin: 0;
}



.documents-gallery .card-body img {
  width: 75px;
}

.documents-gallery .card-body i {
  color: white;
}
.documents-gallery .card-body i {
  font-size: 22px;
}

.documents-gallery .card-body img,
.documents-gallery .card-body h3,
.documents-gallery .card-body i,
.document__data {
  position: relative;
  z-index: 2;
}
.widget-info__label {
  font-size: 13px;
}

.widget-info__value a {
  color: var(--primary-color);
}
.documents-gallery h3 {
  font-size: 28px;
  color: white;
  font-weight: 500;
  line-height: 48px;
  margin: 0;
}

.document__data p {
  color: white;
  font-size: 15px;
  margin: 0;
}

.nav-link {
  transition: 0.6s;
}
.nav-link {
  max-width: 100%;
}
.nav-title .nav-label {
  margin-left: 5px;
}

.nav-title i {
  font-size: 16px;
}

.sidebar--closed .nav-label,
.sidebar--closed .accordion-button:after {
  opacity: 0;
}
.sidebar.sidebar--closed .nav-link {
  max-width: 38px;
  overflow: hidden;
  transition: 0.6s !important;
}
.sidebar.sidebar--closed {
  max-width: 76px;
}
.sidebar:has(.sidebar--closed) .nav-link {
  max-width: 38px;
  overflow: hidden;
  transition: 0.6s !important;
}

.sidebar:has(.sidebar--closed) {
  max-width: 76px;
}

.nav-label {
  transition: 0.3s;
}

.sidebar--closed #collapseServices {
  transition: 0s;
}
.sidebar:has(.show) {
  max-width: 250px;
}

.sidebar:has(.show) .sidebar--closed .nav-label,
.sidebar:has(.show) .sidebar--closed .accordion-button:after {
  opacity: 1;
}

.sidebar:has(.show) .nav-link {
  max-width: 250px;
}

.offcanvas .sidebar {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.offcanvas .sidebar .accordion-button,
.offcanvas .sidebar .btn,
.offcanvas .sidebar .nav-link {
  padding: 12px !important;
}

.offcanvas .sidebar .nav-link {
  color: var(--text-color);
  font-size: 18px;
  font-weight: 400;
  border-radius: 0.375rem;
}

.offcanvas .sidebar .accordion-button {
  font-size: 16px;
  font-weight: 400;
}

.offcanvas .sidebar .btn-active,
.offcanvas .sidebar .btn-active.nav-link i {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.offcanvas .sidebar .accordion i,
.offcanvas .sidebar .nav-link i {
  color: var(--primary-color);
}

.sidebar.sticky-top {
  top: 105px !important;
  z-index: 1000;
  height: calc(100vh - 105px);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.sidebar.sticky-top::-webkit-scrollbar {
  width: 0;
}

.services-widget__tabs {
  background-color: #f8f9fa;
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.services-widget__tabs .nav-item {
  flex: 0 0 auto;
}

.services-widget__tabs .nav-link {
  color: var(--primary-color);
  border: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.services-widget__tabs .nav-link.active {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
}

.services-widget__tabs .nav-link:hover:not(.active) {
  background-color: #e9ecef;
  color: #343a40;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.services-widget__content,
.services-widget__content .tab-pane,
.services-widget__content .row,
.services-widget__content .card {
  min-width: 0;
}

.services-widget__content {
  overflow-x: hidden;
}

#podglad-pane {
  overflow-x: hidden;
}

.widget-info__item {
  min-width: 0;
}

.widget-info__details,
.widget-info__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-info__value a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#podglad-pane .documents-gallery,
#podglad-pane .documents-gallery .row,
#podglad-pane .documents-gallery .col,
#podglad-pane .documents-gallery .card,
#podglad-pane .documents-gallery .card-body {
  max-width: 100%;
  min-width: 0;
}
.timeline-scroll-container {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}

.timeline-scroll-container {
  overflow-x: auto;
  white-space: nowrap;
  padding: 1rem 0;
  cursor: grab;
  user-select: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.timeline-scroll-container::-webkit-scrollbar {
  display: none;
}

.timeline-scroll-container:active {
  cursor: grabbing;
}

.timeline {
  display: inline-flex;
  flex-wrap: nowrap;
  position: relative;
  padding: 0 1rem;
}

.timeline__item {
  position: relative;
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timeline__item::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--lightpink);
  z-index: 0;
}

.timeline__item:last-child::after {
  display: none;
}

.timeline__step {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  background: #ffffff;
  border: 2px solid var(--lightpink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  z-index: 2;
}

.timeline__step--completed {
  background: var(--lightpink);
  color: var(--primary-color);
  border-color: var(--lightpink);
}

.timeline__step--active {
  border-color: var(--primary-color);
}

.timeline__dot {
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
}

.timeline__dot--muted {
  background: var(--lightpink);
}

.timeline__content {
  margin-top: 1rem;
  white-space: normal;
  padding: 0 5px;
}

.timeline__content h6 {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.timeline__content .text-primary {
  color: var(--primary-color);
}

.timeline__content small {
  color: var(--text-color);
  font-size: 0.8rem;
}

.progress-circle {
  --progress: 0;
  --size: 120px;

  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(
    var(--success) calc(var(--progress) * 1%),
    var(--softpink) 0
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
}

.progress-circle::before {
  content: "";
  position: absolute;
  width: 82%;
  height: 82%;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.progress-circle__content {
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.1;
}

.progress-circle__value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--success);
  display: block;
}

.progress-circle__label {
  font-size: 0.7rem;
  color: var(--text-color);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.progress-pills {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  width: 100%;
}

.progress-pill {
  height: 3px;
  flex: 1;
  border-radius: 10px;
  background-color: var(--lightpink);
  transition: all 0.3s ease;
}

.progress-pill[data-status="completed"] {
  background-color: var(--primary-color);
}

.progress-pill[data-status="active"] {
  background-color: var(--lightpink);
  position: relative;
  overflow: hidden;
}

.progress-pill[data-status="active"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: var(--primary-color);
  opacity: 0.3;
}

.accordion-body h5 {
  color: var(--primary-color);
  font-size: 17px;
  font-weight: 600;;
}

.accordion-body a {
  color: var(--secondary-color);
}

.accordion-body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0 35px;
  padding: 0;
  list-style-type: none;
}

#optymalizacja-pane .accordion-body ul li::before {
  content: "";
  width: 25px;
  height: 25px;
  margin: 0 10px 0 0;
  aspect-ratio: 1;
  background-image: url(../images/checkbox.svg);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  transform: translateY(5px);
}

#optymalizacja-pane .accordion-body > :last-child {
  margin-bottom: 0;;
}

#optymalizacja-pane .accordion-body ul.links li::before {
  background-image: url(../images/link.svg);
}
#optymalizacja-pane .accordion-body ul.documents li::before {
  background-image: url(../images/file-text\ 1.svg);
}

/* ===== TABLE SORTING ===== */
.table-sortable thead th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  position: relative;
  padding-right: 28px !important;

}

.img-small {
      width: 100%;
    max-width: 35px;
}
.table-sortable thead th::after {
  content: '\2195';
  position: absolute;
  right: 8px;
  opacity: 0.4;
  font-size: 12px;
}
.table-sortable thead th.sort-asc::after {
  content: '\2191';
  opacity: 1;
  color: var(--primary-color);
}
.table-sortable thead th.sort-desc::after {
  content: '\2193';
  opacity: 1;
  color: var(--primary-color);
}
.table-sortable thead th:hover::after {
  opacity: 0.7;
}

.table-sortable thead th.no-sort {
  cursor: default;
}
.table-sortable thead th.no-sort::after {
  content: '';
  display: none;
}

section > :last-child {
  margin-bottom: 0 !important;
}

/* Karta usług nie wystaje poza dropdown, styl spójny z resztą */
.dropdown-menu[aria-labelledby="userDropdown"] {
  min-width: 380px;
  max-width: 480px;
  width: 100%;
  box-sizing: border-box;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.dropdown-menu[aria-labelledby="userDropdown"] .card {
  width: 100%;
  border-radius: 8px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
.dropdown-menu[aria-labelledby="userDropdown"] .card-body {
  padding-left: 16px !important;
  padding-right: 16px !important;
}
#toggleServiceList {
  border: 1px solid #e5d6ef !important;
  border-radius: 8px !important;
  background: #fff !important;
  padding: 10px 16px !important;
  font-size: 16px !important;
  box-shadow: 0 1px 4px rgba(99,36,131,0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 44px;
}
#toggleServiceList:focus, #toggleServiceList:hover {
  border-color: var(--primary-color) !important;
  box-shadow: 0 2px 8px rgba(99,36,131,0.10);
}
#toggleServiceList .bi-toggles2 {
  font-size: 18px !important;
}
#toggleServiceList .fw-semibold {
  font-weight: 600;
}
#toggleServiceListIcon {
  font-size: 16px !important;
}
.dropdown-menu[aria-labelledby="userDropdown"] .dropdown-item:focus, .dropdown-menu[aria-labelledby="userDropdown"] .dropdown-item:active {
  background: var(--primary-color) !important;
  color: #fff !important;
}
.dropdown-menu[aria-labelledby="userDropdown"] .dropdown-item:focus *,
.dropdown-menu[aria-labelledby="userDropdown"] .dropdown-item:active * {
  color: #fff !important;
}

/* Ustawienia – lista powiadomień */
.settings-page .services-list .list-group-item {
  border: 1px solid #f0f0f1 !important;
  border-radius: 5px !important;
}

/* Form switch – fioletowy styl */
.form-check-input[type="checkbox"] {
  border: 1px solid #ced4da;
  cursor: pointer;
}
.form-check-input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.form-check-input[type="checkbox"]:focus {
  box-shadow: 0 0 0 0.2rem rgba(99, 36, 131, 0.25);
  border-color: var(--primary-color);
}

@media (max-width: 865px) {
  .navbar .user-menu .dropdown:last-child button span,
  .navbar .user-menu .dropdown:last-child button .fw-semibold,
  .navbar .user-menu .dropdown:last-child button i {
    display: initial !important;
  }
}

/* HTMX hides indicators with opacity:0 by default, which leaves them taking
   up layout space and shifting neighbouring content (e.g. button labels).
   Toggle with display instead so idle indicators reserve no space. */
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline-block;
}
