/* ==========================================================================
   ProcesON - Nowoczesny Arkusz Stylów (Premium UI / SaaS Aesthetic)
   Kolorystyka: Deep Navy Slate (#0b0f19), Electric Blue (#2563eb / #3b82f6)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: #eff6ff;
  --color-primary-border: #dbeafe;
  --color-dark: #0b0f19;
  --color-dark-surface: #131b2e;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-border-subtle: #f1f5f9;
  --color-border: #e2e8f0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text-main);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.03em;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Brand Power Indicator */
.power-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
  }
  50% {
    transform: scale(1.25);
    opacity: 0.85;
    box-shadow: 0 0 16px rgba(16, 185, 129, 1);
  }
}

/* Attention Grabber Pulse */
.pulse-attention {
  animation: pulse-border 2.2s infinite ease-in-out;
}

@keyframes pulse-border {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
}

/* Ambient Glow Gradients */
.hero-glow-bg {
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, rgba(248, 250, 252, 0.5) 45%, #ffffff 100%);
}

.mesh-grid {
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.4) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Glassmorphism Navigation */
.header-glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

/* Premium Card Styles */
.premium-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* ==========================================================================
   WIDŻET DIAGNOSTYCZNY / KALKULATOR PROBLEMÓW (INTERAKTYWNY AUDYT)
   ========================================================================== */
.problem-check-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.problem-check-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.1);
}

/* ZAZNACZONY STAN - BARDZO WYRAŹNY I EFEKTOWNY */
.problem-check-card.is-selected {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.22), 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
  transform: translateY(-4px);
}

.problem-check-card .card-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  background: #eff6ff;
  color: #2563eb;
}

.problem-check-card.is-selected .card-icon-box {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: scale(1.05);
}

.problem-check-card .check-indicator {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: transparent;
}

.problem-check-card.is-selected .check-indicator {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  transform: scale(1.12);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.4);
}

.problem-check-card .selected-badge {
  display: none;
  animation: fadeIn 0.2s ease-out forwards;
}

.problem-check-card.is-selected .selected-badge {
  display: inline-flex;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.8125rem 1.625rem;
  border-radius: 0.75rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  padding: 0.8125rem 1.625rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #2563eb;
}

/* Interactive Form Pills (High-contrast, Tactile, Modern) */
.checkbox-pill-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.45rem 0.875rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.checkbox-pill-label:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
  background: #f8fafc;
  transform: translateY(-1px);
}

.checkbox-pill-input:checked + .checkbox-pill-label {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #2563eb;
  color: #1e40af;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2), 0 2px 4px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.checkbox-pill-label::before {
  content: "○";
  font-size: 0.75rem;
  color: #94a3b8;
  transition: all 0.15s ease;
}

.checkbox-pill-input:checked + .checkbox-pill-label::before {
  content: "✓";
  color: #2563eb;
  font-weight: 900;
}

.radio-pill-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.875rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.radio-pill-label:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
  background: #f8fafc;
}

.radio-pill-input:checked + .radio-pill-label {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1e40af;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.radio-pill-input:checked + .radio-pill-label {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 600;
  box-shadow: 0 0 0 1px #2563eb;
}

/* Interactive Mode Switcher */
.mode-tab-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mode-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mode-tab-btn:not(.active) {
  color: #64748b;
}
.mode-tab-btn:not(.active):hover {
  color: #0f172a;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}
