/* Sidebar Menu Styles */
.menu-sidebar {
  position: fixed;
  top: 0;
  left: -400px;
  width: 400px;
  height: 100vh !important;
  background: #fff;
  z-index: 10000;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

/* Custom menu integration */
.menu-sidebar {
  left: -400px !important;
}

.menu-sidebar.show {
  left: 0 !important;
}

.menu-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.menu-title {
  color: #000;
  font-family: 'Gilroy', sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}

.menu-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  color: #666;
}

.menu-close-btn:hover {
  background-color: #e9ecef;
  color: #000;
}

.menu-sidebar-content {
  padding: 0;
}

.menu-nav {
  padding: 0;
  margin: 0;
}

.menu-item {
  border-bottom: 1px solid #f0f0f0;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  color: #000;
  text-decoration: none;
  font-family: 'Gilroy', sans-serif;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.3s ease;
  background: #fff;
}

.menu-link:hover {
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
}

.menu-link span {
  flex: 1;
}

.menu-arrow {
  transition: transform 0.3s ease;
  color: #666;
}

.menu-item.has-children .menu-link:hover .menu-arrow {
  transform: translateX(4px);
}

.menu-submenu {
  background: #f8f9fa;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.menu-item.has-children.active .menu-submenu {
  max-height: 500px;
}

.menu-item.has-children.active .menu-arrow {
  transform: rotate(90deg);
}

.menu-sublink {
  display: block;
  padding: 15px 30px 15px 60px;
  color: #666;
  text-decoration: none;
  font-family: 'Gilroy', sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.menu-sublink:hover {
  background: #e9ecef;
  color: #000;
  border-left-color: #A2947A;
  text-decoration: none;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* JavaScript для управління меню */
.menu-item.has-children .menu-link {
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-sidebar {
    width: 100% !important;
    left: -100% !important;
  }
  
  .menu-sidebar.show {
    left: 0 !important;
  }
  
  .menu-sidebar-header {
    padding: 15px 20px;
  }
  
  .menu-title {
    font-size: 20px;
  }
  
  .menu-link {
    padding: 15px 20px;
    font-size: 16px;
  }
  
  .menu-sublink {
    padding: 12px 20px 12px 40px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .menu-sidebar-header {
    padding: 12px 15px;
  }
  
  .menu-title {
    font-size: 18px;
  }
  
  .menu-link {
    padding: 12px 15px;
    font-size: 15px;
  }
  
  .menu-sublink {
    padding: 10px 15px 10px 35px;
    font-size: 13px;
  }
}

.menu-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.menu-title {
  color: #000;
  font-family: 'Gilroy', sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}

.menu-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  color: #666;
}

.menu-close-btn:hover {
  background-color: #e9ecef;
  color: #000;
}

.menu-sidebar-content {
  padding: 0;
}

.menu-nav {
  padding: 0;
  margin: 0;
}

.menu-item {
  border-bottom: 1px solid #f0f0f0;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  color: #000;
  text-decoration: none;
  font-family: 'Gilroy', sans-serif;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.3s ease;
  background: #fff;
}

.menu-link:hover {
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
}

.menu-link span {
  flex: 1;
}

.menu-arrow {
  transition: transform 0.3s ease;
  color: #666;
}

.menu-item.has-children .menu-link:hover .menu-arrow {
  transform: translateX(4px);
}

.menu-submenu {
  background: #f8f9fa;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.menu-item.has-children.active .menu-submenu {
  max-height: 500px;
}

.menu-item.has-children.active .menu-arrow {
  transform: rotate(90deg);
}

.menu-sublink {
  display: block;
  padding: 15px 30px 15px 60px;
  color: #666;
  text-decoration: none;
  font-family: 'Gilroy', sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.menu-sublink:hover {
  background: #e9ecef;
  color: #000;
  border-left-color: #A2947A;
  text-decoration: none;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* JavaScript для управління меню */
.menu-item.has-children .menu-link {
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-sidebar {
    width: 100%;
    left: -100%;
  }
  
  .menu-sidebar-header {
    padding: 15px 20px;
  }
  
  .menu-title {
    font-size: 20px;
  }
  
  .menu-link {
    padding: 15px 20px;
    font-size: 16px;
  }
  
  .menu-sublink {
    padding: 12px 20px 12px 40px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .menu-sidebar-header {
    padding: 12px 15px;
  }
  
  .menu-title {
    font-size: 18px;
  }
  
  .menu-link {
    padding: 12px 15px;
    font-size: 15px;
  }
  
  .menu-sublink {
    padding: 10px 15px 10px 35px;
    font-size: 13px;
  }
}
