/**
 * @file
 * Premium UI/UX enhancements and interactive styling for the Citizen Hub theme.
 */

:root {
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(0, 40, 120, 0.06);
  --glass-shadow-hover: 0 12px 40px 0 rgba(0, 40, 120, 0.12);
  --brand-gradient-primary: linear-gradient(135deg, #980c2f 0%, #274b8c 100%);
  --brand-gradient-accent: linear-gradient(135deg, #980c2f 0%, #274b8c 100%);
  --brand-gradient-navy-burgundy: linear-gradient(135deg, #980c2f 0%, #274b8c 100%);
}

/* 1. Menu Indicator Custom Styling */
.nav-indicator {
  position: absolute;
  height: 3px;
  background: var(--brand-gradient-primary);
  border-radius: 2px;
  pointer-events: none;
  z-index: 10;
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              top 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.2s ease;
  opacity: 0;
}

/* 2. Glassmorphism Design Tokens */
.glass-card, .hero-glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-4px);
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

/* 3. Text & Button Gradients */
.text-gradient, .text-gradient-brand, .text-gradient-navy-burgundy, .brand-text {
  background: linear-gradient(135deg, #980c2f 0%, #274b8c 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  display: inline-block;
}

.text-gradient-brand {
  background: var(--brand-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-navy-burgundy {
  background: var(--brand-gradient-navy-burgundy);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-premium-gradient {
  background: var(--brand-gradient-primary) !important;
}

.btn-premium-gradient {
  background: var(--brand-gradient-primary);
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.btn-premium-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-gradient-accent);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.btn-premium-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-premium-gradient:hover::before {
  opacity: 1;
}

/* 4. Hover Lift Animations & Transforms */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.transform-rotate-3 {
  transform: rotate(1.5deg);
  transition: transform 0.4s ease;
}

.transform-rotate-3:hover {
  transform: rotate(0deg) scale(1.02);
}

/* 5. Preloading Hero Background Transition */
.hero-background {
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1);
  filter: blur(8px);
}

.hero-background.loaded {
  opacity: 1;
  filter: blur(0px);
}

/* 6. Timeline (Oś Czasu) Enhancements */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Środkowa pionowa linia osi czasu */
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(180deg, #274b8c 0%, #980c2f 100%);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

/* Pojedynczy krok na osi czasu */
.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* Kropki indykatorów w punktach styku osi z kartą */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: #ffffff;
  border: 4px solid #274b8c;
  top: 40px;
  border-radius: 50%;
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 rgba(39, 75, 140, 0.4);
}

.timeline-item:hover::after {
  transform: scale(1.2);
  border-color: #980c2f;
  box-shadow: 0 0 0 6px rgba(152, 12, 47, 0.2);
}

/* Elementy po lewej stronie */
.timeline-item.left {
  left: 0;
}

/* Elementy po prawej stronie */
.timeline-item.right {
  left: 50%;
}

/* Dostosowanie prawych kropek */
.timeline-item.right::after {
  left: -10px;
  border-color: #980c2f;
}

.timeline-item.right:hover::after {
  border-color: #274b8c;
  box-shadow: 0 0 0 6px rgba(39, 75, 140, 0.2);
}

/* Kontener z treścią karty milowej */
.timeline-content {
  padding: 24px 30px;
  background-color: #ffffff;
  position: relative;
  border-radius: 16px;
  border-left-width: 5px !important;
  border-left-style: solid;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--glass-shadow);
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-hover);
}

/* Kolorystyka obramowań dla lepszego kontrastu */
.timeline-item.left .timeline-content {
  border-left-color: #274b8c !important;
}

.timeline-item.right .timeline-content {
  border-left-color: #980c2f !important;
}

/* Responsywność dla ekranów mobilnych (max-width: 767.98px) */
@media screen and (max-width: 767.98px) {
  /* Linia przesuwa się na lewy margines */
  .timeline::after {
    left: 31px;
  }

  /* Karty zajmują pełną szerokość */
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  /* Wszystkie układają się po prawej stronie osi */
  .timeline-item.right {
    left: 0%;
  }

  /* Kropki pozycjonują się na lewą stronę */
  .timeline-item.left::after, .timeline-item.right::after {
    left: 21px;
    right: auto;
  }
}

/* 7. Term Countdown Bar & Counts */
.term-countdown {
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(8px);
}

.bg-gradient-danger {
  background: var(--brand-gradient-accent) !important;
}

.term-countdown__progress-bar {
  transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.count {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

/* 8. Masonry Card Transition */
.masonry-item {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-item.is-filtered-out {
  opacity: 0.15;
  transform: scale(0.95);
  pointer-events: none;
}

/* 9. Voting System Enhancements */
.voting-main-title {
  background: var(--brand-gradient-primary) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.voting-divider {
  width: 80px;
  height: 4px;
  background: var(--brand-gradient-primary);
  border-radius: 2px;
}

.voting-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.voting-card:hover {
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-hover);
}

.proposal-title {
  color: #1a202c;
  font-weight: 700;
}

.vote-btn {
  transition: all 0.2s ease-in-out;
  border-width: 2px;
}

.vote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.vote-btn[data-choice="yes"]:hover {
  background-color: #d1e7dd;
  color: #0f5132;
  border-color: #badbcc;
}

.vote-btn[data-choice="no"]:hover {
  background-color: #f8d7da;
  color: #842029;
  border-color: #f5c2c7;
}

.vote-btn[data-choice="abstain"]:hover {
  background-color: #e2e3e5;
  color: #41464b;
  border-color: #d3d6d8;
}

.progress {
  background-color: rgba(0, 0, 0, 0.04) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.progress-bar {
  width: 0%; /* Startowa wartość do animacji */
  transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.progress-bar-yes {
  background: linear-gradient(90deg, #980c2f 0%, #274b8c 100%) !important;
}

.progress-bar-no {
  background: linear-gradient(90deg, #f44336 0%, #ff9800 100%) !important;
}

.progress-bar-abstain {
  background: linear-gradient(90deg, #9e9e9e 0%, #e0e0e0 100%) !important;
}

.percent-label {
  font-size: 1.1rem;
}

.percent-yes {
  color: #274b8c;
}

.percent-no {
  color: #f44336;
}

.percent-abstain {
  color: #757575;
}

.count-label {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* 10. Statut Page Custom Styling */
.statut-nav-link {
  color: #64748b !important;
  border-left: 3px solid transparent;
  padding-left: 12px !important;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  text-decoration: none;
}

.statut-nav-link:hover {
  color: #980c2f !important;
  border-left-color: rgba(152, 12, 47, 0.5);
  padding-left: 16px !important;
}

.statut-nav-link.active {
  color: #274b8c !important;
  font-weight: 700 !important;
  border-left-color: #274b8c !important;
  padding-left: 16px !important;
}

.statut-item ol {
  list-style-type: decimal;
}

.statut-item ul {
  list-style-type: disc;
}

.statut-section {
  scroll-margin-top: 120px;
}

.statut-accordion .accordion-button:not(.collapsed) {
  background: rgba(39, 75, 140, 0.05) !important;
  color: #274b8c !important;
  border-color: rgba(39, 75, 140, 0.15) !important;
}

.mobile-statut-nav .nav-link {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-statut-nav .nav-link:last-child {
  border-bottom: none;
}

/* 11. Media & Social Wall Custom Styling */
.media-logo-badge {
  color: #fff;
  border-radius: 4px;
}
.source-wyborcza {
  background: #000000;
}
.source-onet {
  background: #f5a623;
  color: #000;
}
.source-rp {
  background: #002d62;
}

.social-icon.social-facebook {
  color: #1877f2;
}
.social-icon.social-twitter {
  color: #000000;
}
.social-icon.social-instagram {
  background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.social-icon.social-youtube {
  color: #ff0000;
}

.hover-link {
  transition: color 0.25s ease, transform 0.25s ease;
}
.hover-link:hover {
  color: #980c2f !important;
  transform: translateX(-4px);
}

/* 12. Interactive Program Hub Custom Styling */
.program-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.program-tab-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border) !important;
  color: #4a5568 !important;
  text-align: left;
  padding: 16px 20px;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.program-tab-btn:hover {
  background: var(--glass-bg-hover);
  transform: translateX(4px);
  color: #2d3748 !important;
}
.program-tab-btn.active {
  background: var(--brand-gradient-primary) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 24px rgba(39, 75, 140, 0.2);
  transform: translateX(6px);
}
.program-tab-btn.active .text-muted, 
.program-tab-btn.active .font-monospace {
  color: rgba(255, 255, 255, 0.8) !important;
}

.program-tab-content-card {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}
.program-tab-content-card.active {
  display: block;
}

/* Horizontal scroll for mobile tabs */
@media (max-width: 991.98px) {
  .program-tabs-list {
    flex-direction: row !important;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .program-tab-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }
  .program-tab-btn.active {
    transform: none !important;
  }
  .program-tab-btn:hover {
    transform: none !important;
  }
}

.progress-gamification {
  height: 8px;
  background-color: rgba(0,0,0,0.04);
  border-radius: 4px;
}
.progress-gamification-bar {
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pulse-primary {
  animation: pulseAnimation 2s infinite;
}
@keyframes pulseAnimation {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 75, 140, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(39, 75, 140, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 75, 140, 0);
  }
}

/* 13. Virtual Bricks Support Page Custom Styling */
.support-card {
  border: 1px solid rgba(39, 75, 140, 0.16) !important; /* Wyraźniejsze domyślne obramowanie */
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

.support-card:hover {
  background: var(--glass-bg-hover) !important;
  border-color: rgba(39, 75, 140, 0.3) !important;
  transform: translateY(-4px);
}

.support-card.active {
  border: 2px solid #274b8c !important; /* Grubsza, wyraźna ramka aktywnej cegiełki */
  background: #ffffff !important;
  box-shadow: 0 15px 35px rgba(39, 75, 140, 0.14) !important; /* Mocniejszy cień */
  transform: translateY(-6px) scale(1.02) !important; /* Lekkie powiększenie i uniesienie */
  z-index: 2;
}

.payment-method-box {
  transition: all 0.2s ease-in-out;
}

.payment-method-box:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: rgba(39, 75, 140, 0.15) !important;
}

.payment-method-box.active {
  background-color: rgba(39, 75, 140, 0.04) !important;
}

.select-all-text {
  user-select: all;
  -webkit-user-select: all;
  cursor: pointer;
}

.shadow-inner {
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Nasycone, kontrastowe badge dla cegiełek (Premium design) */
.badge-status-success {
  background-color: #198754 !important; /* Wyraźny zielony */
  color: #ffffff !important;
  font-weight: 600;
}

.badge-brick-obywatelska {
  background-color: #1e40af !important; /* Ciemny niebieski/granat */
  color: #ffffff !important;
  font-weight: 600;
}

.badge-brick-srebrna {
  background-color: #4b5563 !important; /* Srebrno-szary */
  color: #ffffff !important;
  font-weight: 600;
}

.badge-brick-zlota {
  background-color: #d97706 !important; /* Nasycony złoty */
  color: #ffffff !important;
  font-weight: 600;
}

.badge-brick-diamentowa {
  background-color: #0d9488 !important; /* Ciemny turkus */
  color: #ffffff !important;
  font-weight: 600;
}

.badge-brick-pomostowa {
  background-color: #980c2f !important; /* Burgund */
  color: #ffffff !important;
  font-weight: 600;
}

.badge-brick-custom {
  background-color: #475569 !important; /* Slate */
  color: #ffffff !important;
  font-weight: 600;
}

@media (min-width: 768px) {
  .border-start-md {
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
}

/* 14. Public Consultations Page Custom Styling */
.consultation-topic-card {
  border: 1px solid rgba(39, 75, 140, 0.16) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.consultation-topic-card:hover {
  border-color: rgba(39, 75, 140, 0.3) !important;
  box-shadow: 0 15px 30px rgba(39, 75, 140, 0.08) !important;
}

#consultation-form-section {
  scroll-margin-top: 120px;
}

.opinion-item-card {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.opinion-item-card .avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-check:checked + .btn-outline-success {
  background-color: #198754 !important;
  color: #ffffff !important;
  border-color: #198754 !important;
}

.btn-check:checked + .btn-outline-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
  border-color: #ffc107 !important;
}

.btn-check:checked + .btn-outline-danger {
  background-color: #dc3545 !important;
  color: #ffffff !important;
  border-color: #dc3545 !important;
}

/* 15. Member Registration Form Styling */
#member-register-form-wrapper .form-control,
#member-register-form-wrapper .form-select {
  border: 1px solid rgba(39, 75, 140, 0.15);
  background-color: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#member-register-form-wrapper .form-control:focus,
#member-register-form-wrapper .form-select:focus {
  background-color: #ffffff;
  border-color: #274b8c;
  box-shadow: 0 0 0 4px rgba(39, 75, 140, 0.15);
  outline: none;
}

#member-register-form-wrapper label {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

#member-register-form-wrapper .form-check-input {
  border: 1px solid rgba(39, 75, 140, 0.3);
  cursor: pointer;
  width: 1.15em;
  height: 1.15em;
  transition: all 0.2s ease;
}

#member-register-form-wrapper .form-check-input:checked {
  background-color: #980c2f;
  border-color: #980c2f;
}

#member-register-form-wrapper .form-check-label {
  color: #4a5568;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.person-only-field, .company-only-field {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 16. Homepage Interactive Enhancements (Hero Metrics, Quick Poll, Impact Simulator) */
.metrics-container .metric-number {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  transition: all 0.3s ease;
}

.metrics-container .metric-progress-bar {
  width: 0%;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#hero-quick-poll {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

#hero-quick-poll .poll-vote-btn {
  border-width: 2px;
  font-weight: 500;
  padding: 10px 16px;
  transition: all 0.25s ease-in-out;
}

#hero-quick-poll .poll-vote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 75, 140, 0.1);
}

#hero-quick-poll .poll-vote-btn[data-choice="yes"] {
  border-color: #274b8c;
  color: #274b8c;
}
#hero-quick-poll .poll-vote-btn[data-choice="yes"]:hover {
  background-color: #274b8c;
  color: #ffffff;
}

#hero-quick-poll .poll-vote-btn[data-choice="no"] {
  border-color: #980c2f;
  color: #980c2f;
}
#hero-quick-poll .poll-vote-btn[data-choice="no"]:hover {
  background-color: #980c2f;
  color: #ffffff;
}

#hero-quick-poll .poll-vote-btn[data-choice="abstain"] {
  border-color: #64748b;
  color: #64748b;
}
#hero-quick-poll .poll-vote-btn[data-choice="abstain"]:hover {
  background-color: #64748b;
  color: #ffffff;
}

#hero-quick-poll .poll-results-view {
  transition: opacity 0.4s ease;
}

#hero-quick-poll .progress-bar {
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Impact Simulator range slider styling */
.custom-impact-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.25) !important;
  border-radius: 9999px;
  outline: none;
  transition: background 0.3s ease;
}

/* Dostosowanie chwytaka suwaka (Webkit) */
.custom-impact-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: 2px solid #980c2f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.custom-impact-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #f8fafc;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* Dostosowanie chwytaka suwaka (Firefox) */
.custom-impact-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: 2px solid #980c2f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.custom-impact-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: #f8fafc;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.impact-amount-pill {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  transition: all 0.25s ease;
  background: transparent;
}

.impact-amount-pill:hover, .impact-amount-pill.active {
  background-color: #ffffff !important;
  color: #274b8c !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-hover-lift {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hover-lift:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
  background-color: #f8fafc !important;
}

#impact-description-text {
  transition: opacity 0.25s ease-in-out;
}

/* Tło graficzne dla sekcji zaangażowania "Twoja Rola w Zmianie" */
.join-section {
  position: relative;
  background-image: linear-gradient(rgba(248, 250, 252, 0.1), rgba(248, 250, 252, 0.1)), url('../images/join_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  transition: background 0.4s ease;
}

/* 17. Programmatic Votings Custom Styling */
.programmatic-votings .glass-card {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.programmatic-votings .btn-vote-programmatic {
  padding: 12px 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.programmatic-votings .btn-vote-programmatic:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 75, 140, 0.12);
}

.voters-glass-list {
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.voters-glass-list::-webkit-scrollbar {
  width: 6px;
}

.voters-glass-list::-webkit-scrollbar-track {
  background: transparent;
}

.voters-glass-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
}

.voters-glass-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

.active-voting-container, .completed-voting-container {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}






