/* ==========================================================================
   OFFCANVAS SIDEBAR DRAWER (Screenshots 2 & 3)
   ========================================================================== */

/* Drawer Overlay Backdrop */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(2px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Drawer Panel */
.sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background-color: #f8fafc;
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sidebar-drawer.active {
  transform: translateX(0);
}

/* Drawer Header with Green Badge */
.drawer-header {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: 0 4px 12px rgba(5, 122, 85, 0.25);
  position: relative;
  z-index: 2;
}

.drawer-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-user-name {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.drawer-user-phone {
  font-size: 14px;
  color: #a7f3d0;
  font-weight: 500;
  font-family: monospace, sans-serif;
  letter-spacing: 0.5px;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Drawer Menu Items List */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Drawer */
.drawer-body::-webkit-scrollbar {
  width: 5px;
}

.drawer-body::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

/* Pill / Card Shaped Menu Item */
.menu-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #10b981;
  color: #1e293b;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  text-decoration: none;
}

.menu-pill:hover {
  background-color: #f0fdf4;
  border-color: #86efac;
  border-left-color: var(--primary);
  transform: translateX(4px);
  color: var(--primary);
}

.menu-pill.active {
  background-color: #ecfdf5;
  border-left-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

/* Color Accent Variations on Left Border as seen in screenshots */
.menu-pill:nth-child(3n+1) {
  border-left-color: #10b981; /* Emerald */
}
.menu-pill:nth-child(3n+2) {
  border-left-color: #06b6d4; /* Cyan */
}
.menu-pill:nth-child(3n+3) {
  border-left-color: #8b5cf6; /* Violet */
}

/* Pill Icon */
.menu-pill-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #057a55;
  flex-shrink: 0;
}

.menu-pill:hover .menu-pill-icon {
  color: var(--primary-hover);
}

.menu-pill.logout-btn {
  border-left-color: #ef4444;
  color: #dc2626;
  margin-top: 10px;
}

.menu-pill.logout-btn .menu-pill-icon {
  color: #ef4444;
}

.menu-pill.logout-btn:hover {
  background-color: #fef2f2;
  border-color: #fca5a5;
  border-left-color: #dc2626;
  color: #b91c1c;
}
