/* ============================
   SIDEBAR CONTAINER (Exact Reminder Clone)
   ============================ */

#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px; /* MATCHES REMINDER */
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  box-shadow: 0 14px 32px rgba(0,0,0,0.06); /* MATCHES REMINDER */
}

#sidebar.open {
  transform: translateX(0);
}

#sidebar::-webkit-scrollbar {
  width: 6px;
}
#sidebar::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 3px;
}

/* ============================
   PILL CATEGORY (Exact Reminder Style)
   ============================ */

.pill-category {
  width: 100%;
  margin-bottom: 0.6rem; /* MATCHES REMINDER SPACING */
}

/* Pill header — EXACT Reminder pill */
.pill-header {
  display: flex;
  align-items: center;
  background: #f6f3ee; /* SAME AS REMINDER */
  border-radius: 999px;
  padding: 0.45rem 0.9rem; /* SAME AS REMINDER */
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06); /* SAME AS REMINDER */
  transition: background 0.25s ease;
}

.pill-header:hover {
  background: #e9e2d8; /* SAME AS REMINDER */
}

.pill-icon {
  font-size: 1rem;
  margin-right: 0.55rem;
  color: #5b5247; /* SAME AS REMINDER */
}

.pill-label {
  font-size: 0.88rem; /* SAME AS REMINDER */
  font-weight: 600;
  color: #5b5247; /* SAME AS REMINDER */
}

.pill-arrow {
  margin-left: auto;
  opacity: 0.6;
  transition: transform 0.25s ease;
}

.pill-category.open .pill-arrow {
  transform: rotate(90deg);
}

/* ============================
   DROPDOWN AREA (Exact Reminder Style)
   ============================ */

.pill-dropdown {
  max-height: 0;
  overflow: hidden;
  background: transparent;
  margin-top: 0.35rem;
  transition: max-height 0.35s ease;
}

.pill-category.open .pill-dropdown {
  max-height: 400px;
}

/* Dropdown items — EXACT Reminder side-link clone */
.pill-item {
  background: #f6f3ee; /* SAME AS REMINDER */
  border-radius: 999px;
  padding: 0.45rem 0.8rem; /* SAME AS REMINDER */
  margin-bottom: 0.4rem; /* SAME AS REMINDER */
  font-size: 0.88rem; /* SAME AS REMINDER */
  color: #5b5247; /* SAME AS REMINDER */
  cursor: pointer;
  transition: background 0.25s ease;
}

.pill-item:hover {
  background: #e9e2d8; /* SAME AS REMINDER */
}

/* ============================
   MOBILE TOGGLE BUTTON
   ============================ */

#sidebarToggle {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.25s ease;
}

#sidebarToggle:hover {
  background: rgba(0,0,0,0.05);
}

#sidebarToggle img,
#sidebarToggle svg {
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 900px) {
  #sidebar { width: 260px; } /* STILL MATCH REMINDER */
}

@media (max-width: 600px) {
  #sidebar { width: 240px; } /* Slight mobile shrink */
  #sidebarToggle { top: 14px; left: 14px; width: 38px; height: 38px; }
  #sidebarToggle img, #sidebarToggle svg { width: 20px; height: 20px; }
}

/* ============================
   DARK MODE SUPPORT
   ============================ */

body.dark #sidebar {
  background: #1e1e1e;
  border-right: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 32px rgba(0,0,0,0.4);
}

body.dark .pill-header {
  background: #2a2a2a;
  color: #eee;
}

body.dark .pill-header:hover {
  background: rgba(255,255,255,0.05);
}

body.dark .pill-item {
  background: #2a2a2a;
  color: #ddd;
}

body.dark .pill-item:hover {
  background: rgba(255,255,255,0.06);
}

.pill-item.sidebar-active {
    background: #ffe9a8;
    color: #b85c00;
    border-radius: 999px;


}


