/* ===== Toggle Button ===== */
.menu-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  background: #1b7f3b;   /* GREEN */
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

/* ===== Overlay ===== */
.overlay1 {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 1000;
}
.overlay1.show {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0px;              /* small top gap */
  left: 0;
  width: 220px;

  /* 🔑 CONTENT-BASED HEIGHT */
  height: auto;
  max-height: calc(100vh - 32px);

  background: linear-gradient(180deg, #225902, #647c41);
  
  border-radius: 0 16px 16px 0;
  transform: translateX(-100%);
  transition: 0.3s ease;
  z-index: 1002;

  overflow-y: auto;       /* scroll only if content is large */
}


.sidebar.open {
  transform: translateX(0);
}

/* ===== Header ===== */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.menu-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 5px;
  padding: 2px;
}

.menu-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
}

.close-btn {
  font-size: 26px;
  color: #ff4f4f;
  cursor: pointer;
}

/* ===== Menu List ===== */
.menu-list {
  list-style: none;
  padding: 10px 0;
}

.menu-list li {
  list-style: none;
  width:100%;
}

.menu-item {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  opacity: 0.92;
  cursor: pointer;
  transition: 0.25s ease;
  width: 100%;

  text-decoration: none;
  color: #ffffff;
  display: flex;
  align-items: center;
   
}

.menu-item i {
  font-size: 18px;
  width: 22px;
}

.menu-item span {
  font-size: 14px;
  font-weight: 500;
}

.menu-item:hover {
  background: rgba(255,255,255,0.15);
  padding-left: 26px;
  opacity: 1;
}

/* ============================= */
/* ===== BOTTOM BRAND AREA ===== */
/* ============================= */

/* ===== Fix Social Media Display ===== */
.sidebar-bottom {
  position: relative;     /* 🔑 NOT absolute */
  margin-top: 12px;
  padding: 10px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
}


/* Brand text */
.brand-name {
  color: #eeffd8;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Force proper icon row */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top:10px;
}

/* RESET anchor stretching */
.social {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.15);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  color: #ffffff;
  font-size: 15px;
  transition: all 0.25s ease;
  text-decoration: none;
}

/* Icon centering fix */
.social i {
  line-height: 1;
}

/* ===== Hover Brand Colors ===== */
.social.linkedin:hover  { background:#0A66C2; }
.social.youtube:hover   { background:#FF0000; }
.social.twitter:hover {
    background: #000000;   /* X brand black */
}

.social.twitter:hover i {
    color: #ffffff;
}
.social.whatsapp:hover  { background:#25D366; }
.social.facebook:hover  { background:#1877F2; }
.social.instagram:hover {
  background: radial-gradient(circle at 30% 110%,
    #fdf497 0%, #fdf497 5%,
    #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Lift effect */
.social:hover {
  transform: translateY(-2px) scale(1.05);
  color: #fff;
}

.menu-item.signout {
  margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: #ffdddd;
}

.menu-item.signout:hover {
  background: rgba(255,0,0,0.15);
  color: #ffffff;
}

