:root {
  --sidebar-width-open: 240px;
  --sidebar-width-closed: 70px;
  --sidebar-bg: linear-gradient(135deg, #2b5ce7, #0052d4);
  --ai-bg: linear-gradient(135deg, #8e2de2, #2b5ce7);
  --accent-color: #ff00ff;
}

/* Sidebar container */
.sidebar {
  text-align: center;
  height: 100vh;
  background: var(--sidebar-bg);
  color: #fff;
  transition: width 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-image: url("./bg.png"); /* Ensure this path is correct */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Sidebar states */
.sidebar.open {
  width: var(--sidebar-width-open);
}
.sidebar.closed {
  width: var(--sidebar-width-closed);
}

/* Menu sections */
.menu-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  text-align: center;
}

.menu-section.bottom-menu {
  margin-top: auto;
  margin-bottom: 10px;
}

/* DO NOT change this rule */
.sidebar-item {
  display: flex;
  padding: 12px 16px;
  margin: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  align-items: center;
  justify-content: baseline;
  gap: 10px;
  text-align: center;
  white-space: nowrap;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(5px);
}

.sidebar-item.active {
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(10px);
}

/* AI item specifics */
.sidebar-item.ai .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
}

/* Outline the FaFan path in purple with a white stroke */
.sidebar-item.ai .icon svg path {
  fill: #8e44ad !important;
  stroke: #fff !important;
  stroke-width: 0.5px !important;
  stroke-linejoin: round !important;
  stroke-linecap: round !important;
  paint-order: fill stroke !important;
  vector-effect: non-scaling-stroke;
}

/* Larger, bolder AI label */
.sidebar-item.ai .label {
  font-style: normal; /* or italic if you prefer */
  font-weight: 700;
  font-size: 1.1rem;
}

/* Subtle scale on hover */
.sidebar-item.ai:hover .icon svg {
  transform: scale(1.1);
}
.sidebar-item.ai:hover .label {
  transform: scale(1.1);
}

/* Icon container */
.icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* Label text */
.label {
  font-size: 1rem;
  font-weight: 500;
  align-self: center;
  text-align: center;
}
