/* Empower Life Ltd. — Programy Terapeutyczne Custom Stylesheet */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spinSlow 12s linear infinite;
}

.paused {
  animation-play-state: paused !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Tab Switcher for Psychological Tests */
.test-tab-btn {
  background-color: #ffffff;
  border-color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.test-tab-btn:hover {
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(2, 132, 199, 0.12);
}
.test-tab-btn.active {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: #0f172a;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25), 0 8px 10px -6px rgba(15, 23, 42, 0.15);
  transform: translateY(-2px);
}
.test-tab-btn.active .tab-title {
  color: #ffffff;
}
.test-tab-btn.active .tab-sub {
  color: #94a3b8;
}
.test-tab-btn.active .tab-icon {
  background-color: #0284c7;
  color: #ffffff;
}
.test-tab-btn.active .tab-pill {
  background-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

/* Radio button styling for Diagnostic Tests */
.beck-option-label, .test-option-label {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
}
.beck-option-label:hover, .test-option-label:hover {
  border-color: #0284c7;
  background-color: #f0f9ff;
}
.beck-option-label.selected, .test-option-label.selected {
  border-color: #0284c7;
  background-color: #e0f2fe;
  box-shadow: 0 4px 14px -2px rgba(2, 132, 199, 0.2);
}
.beck-option-label input[type="radio"]:checked + div,
.test-option-label input[type="radio"]:checked + div {
  color: #0369a1;
  font-weight: 600;
}

/* Program Cards Hover Effects */
.program-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* Audio Player Playlist active state */
.playlist-item.active {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.4);
}

/* Polish Typography Polish rules */
p, h1, h2, h3, h4, h5, h6, li, span {
  text-wrap: pretty;
}

/* Toast show/hide */
.toast-visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Hawkins Golden Tab Styling */
.test-tab-gold {
  border-color: #fde68a;
  background-color: #fffbeb;
}
.test-tab-gold:hover {
  border-color: #f59e0b;
  box-shadow: 0 6px 16px -4px rgba(245, 158, 11, 0.25);
}
.test-tab-gold.active {
  background: linear-gradient(135deg, #78350f 0%, #b45309 50%, #d97706 100%) !important;
  border-color: #78350f !important;
  box-shadow: 0 10px 25px -5px rgba(180, 83, 9, 0.35) !important;
}
.test-tab-gold.active .tab-icon {
  background-color: #fef3c7 !important;
  color: #92400e !important;
}
.test-tab-gold.active .tab-title {
  color: #ffffff !important;
}
.test-tab-gold.active .tab-sub {
  color: #fef3c7 !important;
}
.test-tab-gold.active .tab-pill {
  background-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Legal Consent Banner visible state */
.consent-banner-visible {
  transform: translateY(0) !important;
}

/* App Module Navigation Switcher */
.module-tab-btn {
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
}
.module-tab-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
.module-tab-btn.active {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: #ffffff;
  border-color: #047857;
  box-shadow: 0 4px 14px -2px rgba(5, 150, 105, 0.35);
}

/* Stepper Question Dots */
.step-dot {
  transition: all 0.2s ease;
  cursor: pointer;
}
.step-dot:hover {
  transform: scale(1.15);
}
.step-dot.active {
  ring-width: 2px;
  transform: scale(1.1);
}

/* Smooth transition for module container */
.app-module-section {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.app-module-hidden {
  display: none !important;
}
