/* Reset default styles for menu and logo */
.menu-list, .brand-icon {
  margin: 0;
  padding: 0;
}

.menu-list {
  list-style: none;
}

/* Style menu links */
.m-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  padding: 8px 12px;
  transition: background-color 0.2s ease;
}

.m-link:hover {
  background-color: #2563EB;
}

.m-link svg {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.m-link div {
  flex-grow: 1;
}

.m-link h6 {
  margin: 0;
  font-size: 14px;
}

.m-link small {
  font-size: 12px;
  color: #6c757d;
}

/* Style logo */
.brand-icon {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}

.logo-icon {
  font-size: 24px;
  margin-right: 8px;
}

.logo-text {
  font-size: 18px;
  font-weight: bold;
}

/* Desktop (≥768px): Logo and menu in navbar */
@media (min-width: 768px) {
  .order-0.col-lg-8 {
    display: flex;
    align-items: center;
  }

  .brand-icon {
    margin-right: 20px; /* Space between logo and menu */
  }

  .menu-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 0 !important; /* Override mt-4 */
    padding: 0 !important; /* Override px-1 */
  }

  .menu-list li {
    margin: 0 10px;
  }

  .navbar {
    position: relative;
    background-color: #0F172A; /* Match your theme */
  }

  body {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Mobile (<768px): Logo in same line as h-right icons, menu at bottom */
@media (max-width: 767px) {
  /* Adjust container to hold logo and h-right together */
  .navbar .container-xxl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
  }

  /* Move brand-icon to h-right in mobile view */
  .brand-icon {
    display: flex;
    align-items: center;
    position: fixed !important;
    z-index: 999 !important;
    margin-right: 10px; /* Space between logo and h-right icons */
    order: -1; /* Place logo before other h-right icons */
  }

  .logo-icon {
    font-size: 20px; /* Slightly smaller for mobile */
    margin-right: 5px;
  }

  .logo-text {
    font-size: 16px; /* Slightly smaller for mobile */
  }

  /* Adjust h-right to include logo */
  /* Position h-right at the top-right */
  .h-right {
    position: fixed !important;
    top: 5 !important;
    right: 10px !important;
    z-index: 1001 !important;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px; /* Smaller gap for mobile */
    padding: 5px 10px; /* Small padding for better appearance */
  }


  /* Ensure order-0 is compact and doesn't interfere */
  .order-0.col-lg-8 {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }

  /* Keep menu at bottom */
  .menu-list {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    background-color: #0F172A !important;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1) !important;
    z-index: 1000 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 60px !important;
  }

  .menu-list li {
    flex: 1;
    text-align: center;
  }

  .m-link {
    flex-direction: column;
    justify-content: center;
    padding: 5px !important;
    height: 100%;
  }

  .m-link svg {
    margin: 0 !important;
    width: 30px;
    height: 30px;
  }

  .m-link div,
  .m-link h6,
  .m-link small {
    display: none !important; /* Hide text on mobile */
  }

  /* Neutralize conflicting blue color rule */
.nav-tabs .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Theme-orange styles for order book tabs */
#cryptoon-layout.theme-orange .nav-tabs.tab-card .nav-link {
    color: var(--bs-primary) !important;
}

#cryptoon-layout.theme-orange .nav-tabs.tab-card .nav-link.active {
    border-color: var(--bs-primary) !important;
    background-color: var(--bs-primary) !important;
    color: white !important;
}

#cryptoon-layout.theme-orange .nav-tabs.tab-card .nav-link:hover {
    background-color: #2563EB !important;
    color: var(--bs-primary) !important;
}

#cryptoon-layout.theme-orange .sub-tabs .nav-tabs .nav-link {
    color: var(--bs-primary) !important;
}

#cryptoon-layout.theme-orange .sub-tabs .nav-tabs .nav-link.active {
    background-color: #0F172A !important;
    color: var(--bs-primary) !important;
    border-bottom: 2px solid var(--bs-primary) !important;
}

#cryptoon-layout.theme-orange .sub-tabs .nav-tabs .nav-link:hover {
    background-color: #2563EB !important;
    color: var(--bs-primary) !important;
}

/* Ensure theme-orange sets correct --bs-primary */
.theme-orange {
    --bs-primary: #fd7e14 !important;
}

  body {
    padding-top: 7px !important; /* Space for top navbar */
    padding-bottom: 60px !important; /* Space for bottom menu */
  }

  /* Ensure navbar doesn't interfere */
  .navbar {
  position: fixed !important;  /* or sticky */
  top: 0;
  left: 0;/* Neutralize conflicting blue color rule */
.nav-tabs .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Theme-orange styles for order book tabs */
#cryptoon-layout.theme-orange .nav-tabs.tab-card .nav-link {
    color: var(--bs-primary) !important;
}

#cryptoon-layout.theme-orange .nav-tabs.tab-card .nav-link.active {
    border-color: var(--bs-primary) !important;
    background-color: var(--bs-primary) !important;
    color: white !important;
}

#cryptoon-layout.theme-orange .nav-tabs.tab-card .nav-link:hover {
    background-color: #2563EB !important;
    color: var(--bs-primary) !important;
}

#cryptoon-layout.theme-orange .sub-tabs .nav-tabs .nav-link {
    color: var(--bs-primary) !important;
}

#cryptoon-layout.theme-orange .sub-tabs .nav-tabs .nav-link.active {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
    color: var(--bs-primary) !important;
    border-bottom: 2px solid var(--bs-primary) !important;
}

#cryptoon-layout.theme-orange .sub-tabs .nav-tabs .nav-link:hover {
    background-color: #2563EB !important;
    color: var(--bs-primary) !important;
}

/* Ensure theme-orange sets correct --bs-primary */
.theme-orange {
    --bs-primary: ##0F172A !important;
}
  right: 0;
  background-color: #0F172A !important;
  z-index: 998 !important;
  width: 100%;
}
}

h1, h2, h3, h4, h5, h6{
    color: #fcf7f7;
}