/* Smart Patch Custom Styles & Animations */

/* Custom Scrollbar for sleek dark look */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: rgba(11, 30, 54, 0.4);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 210, 196, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 210, 196, 0.6);
}

/* Pulse animation for active session ring */
@keyframes wavePulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.pulse-active {
  animation: wavePulse 2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* Spin animation for sync */
@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spinSlow 3s linear infinite;
}

/* Modal Pop Animation */
.animate-in {
  animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Senior Accessibility Font Sizes */
body.font-large {
  font-size: 110%;
}

body.font-large h1 { font-size: 1.25rem; }
body.font-large h2 { font-size: 1.45rem; }
body.font-large .text-xs { font-size: 0.85rem; }
body.font-large .text-[11px] { font-size: 0.78rem; }
body.font-large .text-[10px] { font-size: 0.72rem; }

body.font-xl {
  font-size: 125%;
}
body.font-xl h1 { font-size: 1.4rem; }
body.font-xl h2 { font-size: 1.65rem; }
body.font-xl .text-xs { font-size: 0.95rem; }
body.font-xl .text-[11px] { font-size: 0.88rem; }
body.font-xl .text-[10px] { font-size: 0.82rem; }

/* High Contrast Mode */
body.high-contrast {
  --tw-bg-opacity: 1;
  background-color: #030810 !important;
}

body.high-contrast .bg-brand-card {
  background-color: #0d1e34 !important;
  border-color: rgba(0, 210, 196, 0.4) !important;
}

body.high-contrast .text-slate-400 {
  color: #d1d5db !important;
}

body.high-contrast .text-slate-300 {
  color: #f3f4f6 !important;
}

/* Nav Tab Active Glow */
.nav-tab-btn.active {
  color: #00D2C4;
}

.nav-tab-btn.active svg {
  filter: drop-shadow(0 0 6px rgba(0, 210, 196, 0.6));
}