.sidebar {
  width: 260px;
  height: 100vh;
  background: #F5EFE6;
  color: #4B3F35;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  box-shadow: 6px 0 22px rgba(75, 63, 53, 0.18);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(120, 94, 70, 0.18);
  background: #EFE6D8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #3B2F25;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #3B2F25;
  letter-spacing: 0.6px;
}

.sidebar-menu {
  flex: 1;
  padding: 18px 12px;
  overflow-y: auto;
}

.menu-item {
  padding: 12px 16px;
  margin-bottom: 6px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  color: #5C4A3D;
  transition: all 0.2s ease;
  font-weight: 500;
}

.menu-item:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #075985;
}

.menu-item.active {
  background: rgba(250, 204, 21, 0.25);
  color: #3B2F25;
  border-left: 4px solid #38BDF8; 
}

.menu-divider {
  height: 1px;
  margin: 16px 0;
  background: rgba(120, 94, 70, 0.25);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(120, 94, 70, 0.2);
  background: #EFE6D8;
}

.logout-btn {
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  border: 1px solid #FACC15;
  background: #FACC15;
  color: #3B2F25;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-main);
}

.logout-btn:hover {
  background: #38BDF8;
  border-color: #38BDF8;
  color: #083344;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 999;
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close-btn {
    display: block;
  }
}

.sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(120, 94, 70, 0.35);
  border-radius: 6px;
}

.sidebar-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7C6A58;
  margin-bottom: 6px;
}

.sidebar-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #3B2F25;
}

.sidebar-title-marker {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  z-index: 0;

  background-image: linear-gradient(
    179deg,
    #FACC15 0%,
    #FACC15 62%,
    transparent 54%,
    transparent 100%
  );
  background-size: 100% 18%;
  background-repeat: repeat-x;
  background-position: left 0% bottom -6%;
}