* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f5;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
  height: 100%;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  background-color: #ffffff;
  min-height: 100vh;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header {
  background-color: #ffffff;
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.header h1 {
  font-size: 20px;
  color: #333333;
  font-weight: 600;
}

.mobile-menu {
  background-color: #ffffff;
}

.menu-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
}

.menu-item {
  border-bottom: 1px solid #f0f0f0;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background-color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-weight: 500;
  color: #333333;
  font-size: 14px;
  user-select: none;
}

.menu-item-header:hover {
  background-color: #fafafa;
}

.menu-item-header.no-submenu {
  cursor: default;
}

.menu-item-header.no-submenu:hover {
  background-color: #ffffff;
}

.menu-item-title {
  flex: 1;
  display: flex;
  align-items: center;
}

.chevron {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: #999999;
  font-size: 20px;
  transform: rotate(180deg);
}

.menu-item.collapsed .chevron {
  transform: rotate(0deg);
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #fafafa;
  max-height: 2000px;
  overflow: visible;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 1;
  visibility: visible;
}

.menu-item.collapsed .submenu {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}

.submenu-item {
  padding: 12px 16px 12px 40px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #555555;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.submenu-item:last-child {
  border-bottom: none;
}

.submenu-item:hover {
  background-color: #f0f0f0;
  color: #333333;
}

.submenu-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Submenu Group Styles (for nested menus) */
.submenu-group {
  padding: 0 !important;
  background-color: #fafafa;
}

.submenu-group-header {
  padding: 12px 16px 12px 40px;
  font-weight: 600;
  font-size: 13px;
  color: #333333;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
  border-top: 1px solid #e8e8e8;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submenu-group-header:hover {
  background-color: #efefef;
  color: #000;
}

.submenu-group-header.active {
  background-color: #e8e8e8;
  color: #000;
}

.submenu-group-chevron {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: #999999;
  font-size: 16px;
  transform: rotate(180deg);
}

.submenu-group.collapsed .submenu-group-chevron {
  transform: rotate(0deg);
}

.nested-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #ffffff;
  max-height: 2000px;
  overflow: visible;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 1;
  visibility: visible;
}

.submenu-group.collapsed .nested-submenu {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}

.nested-submenu-item {
  padding: 10px 16px 10px 56px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
  color: #666666;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nested-submenu-item:last-child {
  border-bottom: none;
}

.nested-submenu-item:hover {
  background-color: #f0f0f0;
  color: #333333;
}

.nested-submenu-item a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nested-item-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.nested-item-title {
  flex: 1;
}

/* Mobile Responsive - 480px and below */
@media (max-width: 480px) {
  body {
    margin: 0;
    padding: 0;
  }

  html {
    margin: 0;
    padding: 0;
  }

  .container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: row;
    box-shadow: none;
    border-radius: 0;
    min-height: 100vh;
  }

  .header {
    display: none;
  }

  .mobile-menu {
    position: fixed;
    left: 0;
    top: 65px;
    width: 65%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    border-right: 1px solid #e0e0e0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    z-index: 1000;
  }

  .menu-list {
    display: block;
    width: 100%;
  }

  .menu-item {
    display: block;
  }

  .menu-item-header {
    padding: 12px 14px;
    font-size: 13px;
    margin-top: 0;
  }

  .submenu {
    display: block;
  }

  .submenu-item {
    padding: 10px 14px 10px 36px;
    font-size: 12px;
    display: block;
  }

  .submenu-group-header {
    padding: 10px 14px 10px 36px;
    font-size: 12px;
    display: flex;
  }

  .nested-submenu {
    display: block;
  }

  .nested-submenu-item {
    padding: 8px 14px 8px 48px;
    font-size: 11px;
    display: block;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}
