/* ===== Skeleton Loading Animation ===== */
.skeleton {
  position: relative;
  overflow: hidden;
  background-color: #2a2a2a; /* Dark gray for skeletons */
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #4f46e5; /* Tailwind indigo-600 */
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background-color: #1f2937; /* Tailwind gray-800 */
}

/* ===== Utility tweaks ===== */
html, body {
  scroll-behavior: smooth;
}

/* Smooth transition for buttons & interactive elements */
button, a, input {
  transition: all 0.2s ease-in-out;
}

/* Optional: subtle hover for table rows */
#plansTable tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.1); /* Tailwind indigo-600/10 */
}

/* Modal backdrop blur for Safari fallback */
#confirmModal {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Tiny responsive tweaks for very small devices */
@media (max-width: 360px) {
  .xxs-hide {
    display: none !important;
  }
}
