.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
  padding: 20px;
  padding-bottom: 100px;
  gap: 15px;
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.square {
  border-radius: 12px;
  animation: pulse 3s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.square:hover {
  transform: scale(1.05);
}

/* Size variations */
.size-small {
  width: 30px;
  height: 30px;
  grid-column: span 1;
  grid-row: span 1;
}

.size-medium {
  width: 60px;
  height: 60px;
  grid-column: span 2;
  grid-row: span 2;
}

.size-large {
  width: 90px;
  height: 90px;
  grid-column: span 3;
  grid-row: span 3;
}

/* Color palette */
.color-1 {
  background-color: #612e8d;
  animation-delay: 0s;
}

.color-2 {
  background-color: #1674bc;
  animation-delay: 0.3s;
}

.color-3 {
  background-color: #00a396;
  animation-delay: 0.6s;
}

.color-4 {
  background-color: #81c540;
  animation-delay: 0.9s;
}

.color-5 {
  background-color: #f5b52e;
  animation-delay: 1.2s;
}

.color-6 {
  background-color: #ed5b35;
  animation-delay: 1.5s;
}

.color-7 {
  background-color: #ea225e;
  animation-delay: 1.8s;
}

.color-8 {
  background-color: #c22286;
  animation-delay: 2.1s;
}

/* Pulsing animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.sidebar-header {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-block {
  width: 120px;
  height: 16px;
  background-color: white;
  border-radius: 8px;
  opacity: 0.9;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-heading {
  width: 80px;
  height: 12px;
  background-color: white;
  border-radius: 6px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.menu-item.active {
  background-color: rgba(255, 255, 255, 0.15);
  padding-left: 8px;
  padding-right: 8px;
}

.menu-icon {
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  opacity: 0.8;
  flex-shrink: 0;
}

.menu-text {
  height: 14px;
  background-color: white;
  border-radius: 7px;
  opacity: 0.8;
}

.menu-text.short {
  width: 60px;
}

.menu-text.medium {
  width: 100px;
}

.menu-text.long {
  width: 140px;
}
