:root {
  --spark-loader-color: #10b981; /* progress + spinner accent */
  --spark-loader-muted: #e5e7eb; /* spinner track */
  --primary: #4d4ea3;
  --deep-blue: #114568;
  --vibrant-green: #61ce70;
  --bg-light: #f6f6f7;
  --bg-dark: #15151d;
  --white-10: rgba(255, 255, 255, 0.1);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-60: rgba(255, 255, 255, 0.6);
  --badge-gradient: linear-gradient(
    90deg,
    #8fbf3f,
    /* Lime Grove */ #2f7ea3,
    /* Azure Steel */ #d4b23f,
    /* Golden Dusk */ #e46b2d /* Citrus Ember */
  );
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background-color: var(--bg-light);
}

/* Header */
header {
  /* position: sticky; */
  /* position: fixed; */
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  /* padding: 1rem 2.5rem; */
  background-color: #fff;
  /* color: white;
  border-bottom: 1px solid var(--white-10); */
  white-space: nowrap;
  width: 100%;
}

/* Left section */
.header-top {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
}

.header-bottom {
  display: flex;
  align-items: center;
  background-color: var(--deep-blue);
}

.header-bottom,
.header-top {
  width: 100%;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  font-size: 0.875rem;
  color: white;
  transition: color 0.2s ease;
  padding: 10px;
  font-weight: 500;
}

nav a.active {
  background-color: var(--vibrant-green);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
  padding: 10px 20px;
  font-weight: bold;
}

nav a:hover {
  background-color: var(--vibrant-green);
}

/* Icon buttons */
.icon-buttons {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  border: none;
  background-color: var(--white-10);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.icon-btn:hover {
  background-color: var(--white-20);
}

.material-symbols-outlined {
  font-size: 22px;
}

button {
  cursor: pointer;
}

.btn-counter {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  color: #fff;
}

.btn-counter:hover {
  background-color: #eee;
}

.btn-counter:first-of-type {
  background-color: #cf0909ff;
}

.btn-counter:last-of-type {
  background-color: #09cf09ff;
}

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.pagination button {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  color: #1e2d3b !important;
  padding: 10px;
  cursor: pointer;
  height: 30px;
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pagination .current {
  background: #1e2d3b;
  color: #fff !important;
}
.pagination button:disabled {
  opacity: 0.5;
}

/* Default lazy transition */
[spark\\:lazy] {
  opacity: 1;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

[spark\\:lazy].is-loading {
  opacity: 0.5;
}

[spark\\:lazy].is-ready {
  opacity: 1;
  transform: none;
}

/* Slide up */
[spark\\:lazy][data-transition="slide-up"].is-loading {
  opacity: 0;
  transform: translateY(12px);
}

[spark\\:lazy][data-transition="slide-up"].is-ready {
  opacity: 1;
  transform: translateY(0);
}

/* Scale in */
[spark\\:lazy][data-transition="scale"].is-loading {
  opacity: 0;
  transform: scale(0.96);
}

[spark\\:lazy][data-transition="scale"].is-ready {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [spark\\:lazy],
  .spark-skeleton-layer,
  .spark-content-layer {
    transition: none !important;
    animation: none !important;
  }
}

.spark-skeleton-layer {
  opacity: 1;
  transition: opacity 250ms ease;
}

.spark-content-layer {
  opacity: 0;
  transition: opacity 250ms ease;
}

.spark-lazy.is-ready .spark-skeleton-layer {
  opacity: 0 !important;
  display: none;
  pointer-events: none;
}

.spark-lazy.is-ready .spark-content-layer {
  opacity: 1 !important;
}

.skeleton {
  /* 1. Use a gradient instead of a solid color */
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);

  /* 2. Make background twice the width of the element */
  background-size: 200% 100%;

  border-radius: 4px;
  margin: 4px 0;
  min-height: 20px;

  /* 3. Keep your animation settings */
  animation: shimmer 1.5s infinite linear;
}

.skeleton-card {
  height: 80px;
  margin-bottom: 12px;
}

.skeleton-todo {
  height: 24px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.abc-header {
  min-height: 250px;
  background: var(--deep-blue);
  border-top: 1px solid gray;
  display: flex;
  gap: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.abc-base {
  background-color: #fff;
  padding: 20px;
  margin-top: -50px;
  margin-left: 100px;
  margin-right: 100px;
  border-radius: 10px;
  min-height: 200px;
  box-shadow: 4px 4px 8px #eee;
}
