/* ===== Toggle Button ===== */
.menu-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  background: #1b7f3b;
  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: 0;
  left: 0;
  width: 220px;
  height: auto;
  max-height: 100vh;

  background: linear-gradient(180deg, #225902, #647c41);

  border-radius: 0 16px 16px 0;

  transform: translateX(-100%);
  transition: transform 0.3s ease;

  z-index: 1002;

  overflow-y: auto;
  overflow-x: hidden;

  display: flex;
  flex-direction: column;
}

.sidebar.open {
  transform: translateX(0);
}

/* ===== Header ===== */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 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.2;
  flex: 1;
}

.close-btn {
  font-size: 24px;
  color: #ff4f4f;
  cursor: pointer;
}

/* ===== Menu List ===== */
.menu-list {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  flex: 1;
}

.menu-list li {
  width: 100%;
  list-style: none;
}

/* ===== Menu Item ===== */
.menu-item {
  width: 100%;
  padding: 11px 18px;

  display: flex;
  align-items: center;
  gap: 14px;

  text-decoration: none;

  color: #ffffff;
  opacity: 0.92;

  transition: all 0.25s ease;

  box-sizing: border-box;
}

/* Active Menu */
.menu-item.active {
  background: rgba(255,255,255,0.18);
  border-left: 4px solid #ffffff;

  pointer-events: none;
  cursor: default;

  opacity: 1;
}

/* Hover */
.menu-item:hover {
  background: rgba(255,255,255,0.15);
  padding-left: 24px;
  opacity: 1;
}

.menu-item.active:hover {
  padding-left: 18px;
}

/* Icon */
.menu-item i {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

/* Text */
.menu-item span {
  font-size: 14px;
  font-weight: 500;
}

/* ===== Bottom Area ===== */
.sidebar-bottom {
  margin-top: auto;

  padding: 12px 0;

  text-align: center;

  border-top: 1px solid rgba(255,255,255,0.2);
}

/* Brand */
.brand-name {
  color: #eeffd8;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Social Row */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* Social Icon */
.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;
}

.social i {
  line-height: 1;
}

/* Hover Colors */
.social.linkedin:hover {
  background: #0A66C2;
}

.social.youtube:hover {
  background: #FF0000;
}

.social.twitter:hover {
  background: #000000;
}

.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;
}

/* ===== Signout ===== */
.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;
}