.headerWrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 8px;
  background-color: var(--color-primary);
  color: var(--color-header-text);
  height: 73px;
  font-size: 14px;
  font-family: var(--bs-font-sans-serif);
}

@media (max-width: 768px) {
  .headerWrapper {
    padding: 7px 15px;
    height: 78px;

  }
}

.logo {
  max-height: 65px;
  max-width: 250px;
  /* margin-top: 4px; */

}



@media (max-width: 450px) {
  .logo {
    left: -2rem;
  }
}



.wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: auto;
  margin-top: 0;
  flex: 1;
}

@media (max-width: 600px) {
  .wrapper {
    width: 50%;
    margin-top: 0;
  }
}

.headerContent {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  width: 100%;
  padding-bottom: 0.2rem;
  position: relative;
  right: 0;
}

.searchBox {
  box-shadow: 0 0 5px #6f6f6f;
  border: none;
  outline: none;
  font-size: 17px;
  height: 2.3rem;
  color: var(--color-text-main);
  background-color: var(--color-bg-input);
  transition: width 0.5s ease, opacity 0.3s ease;
  width: 0px;
  opacity: 0;
  margin-right: 0.5rem;
  padding: 1rem;
}

.searchBox.expanded {
  width: 270px;
  opacity: 1;
}

/* Mobile Header specific styles */
.rulesContainer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rulesIcon {
  cursor: pointer;
  height: 14px;
  width: 12.25px;
  object-fit: contain;
  margin-right: 5px;
}

.searchContainer {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 10px;
  /* gap: 8px; */
}

.searchContainer .searchInput {
  background: transparent;
  border: 0;
  width: calc(100% - 60px);
  margin-left: 20px;
  color: #fff;
  vertical-align: middle;
  outline: none;
  font-size: 16px;
}

.searchContainer .searchInput::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.searchInputWrapper {
  position: relative;
}

/* Mobile search box styles - override desktop styles */
.searchContainer .searchBox {
  width: 0;
  opacity: 0;
  transition: width 0.5s, opacity 0.3s;
  margin-right: 4px;
  height: 1.5rem;
  margin-left: 0;
  padding: 0.25rem 0.5rem;
  font-size: 14px;
}

.searchContainer .searchBoxExpanded {
  width: 9.5rem;
  opacity: 1;
  margin-left: 5px;
}

.userIcon {
  cursor: pointer;
  height: 14px;
  width: 12.25px;
  object-fit: contain;
}

.balanceDisplay {
  display: flex;
  font-size: 10px;
}

.boldText {
  font-weight: bold;
}

.section {
  display: flex;
  flex-direction: column;
  margin: 0 0.5rem;
  align-items: flex-end;
  font-size: 15px;
}

.userSection {
  display: flex;
  flex-direction: row;
  align-items: center;
  /* gap: 3px; */

  font-size: 14px;
  cursor: pointer;
}

.section>div {
  width: auto;
  display: flex;
  align-items: center;
}

.section1 {
  /* margin: 0 0.6rem 0 0.2rem; */
  display: flex;

  font-size: 15px;
}

@media (max-width: 600px) {
  .section1 {
    display: none;
    margin: 0;
  }

  .section {
    padding: 0rem 0 0 8rem;
  }

  .section>div {
    width: 0rem;
    display: flex;
  }
}



.searchIcon {
  cursor: pointer;
  position: relative;
  /* height: 1.5rem; */
  /* margin: 0 10px 0 0; */
  display: flex;
  align-items: center;
}



@media (max-width: 768px) {
  .logo {

    position: relative;
    top: -1rem;
    margin-left: 0.7rem;



    margin-top: 1.2rem;
    /* margin-left: 1rem; */


  }

  .homeLogo {
    margin-top: 1rem;


  }
}


/* Search Modal Styles */
.searchModalOverlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  top: 100%;
  left: 0;
  width: 300px;
  background-color: var(--color-bg-surface);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  border-radius: 4px;
  overflow: hidden;
}

.searchModalContent {
  max-height: 400px;
  overflow-y: auto;
}

.sportGroup {
  border-bottom: 1px solid var(--color-border-light);
  padding: 0.5rem;
}

.sportHeader {
  background-color: var(--color-secondary);
  color: var(--color-text-inverse);
  padding: 8px 12px;
  font-weight: bold;
  font-size: 14px;
}

.searchResultItem {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--color-bg-row);
}

.searchResultItem:hover {
  background-color: var(--color-bg-row);
}

.eventName {
  font-weight: 700;
  color: var(--color-text-main);
  font-size: 16px;
}

.eventTime {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.noResults {
  padding: 15px;
  text-align: center;
  color: var(--color-text-muted);
}

/* New Header Styles for MobileHeader */
.header {
  background: #0f2327;
  color: white;
  /* padding: 12px 16px; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9 !important;
  width: 100%;
}

/* Mobile-specific header styles matching shared CSS */
@media (max-width: 768px) {
  .header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
}

.headerSpacing {
  height: 20px;
}

.headerLeft {
  display: flex;
  /* align-items: flex-start; */
  gap: 12px;
  margin-left: 14px;
}

.menuButton {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: 700;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navbar toggler styles */
.header .menuButton {
  border: 0;
  float: left;
  outline: 0 !important;

  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border-radius: 0.25rem;
  margin-top: -5px;
}

.navbarToggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border-radius: 0.25rem;
  border: 0;
  float: left;
  margin-top: 5px;
  outline: 0 !important;
}

.logoImage {
  height: 100%;
  width: auto;
}
.menuIcon {
height: 24px;
}

/* Header logo styles */
.header .logo {
  height: 40px;
  margin-left: 25px;
  /* width: 110px; */
  display: inline-block;
}

.headerRight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 20px;
}

.floatRight {
  float: right !important;
  display: flex;
  align-items: center;
  margin-right: 5px;

}

/* Rules link styles */
.rulesLink,
.rulesLink:hover,
.rulesLink:focus,
.rulesLink:active {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

/* Search icon styles */
.searchIconWrapper {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.header .faSearch {
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  /* margin-top: 10px; */
}

.userIconBlock {
  display: block;
}

.rulesButton {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: -6px;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif;
}

.searchButton {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  font-weight: 700;
  margin-right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.userSection {
  text-align: center;
  align-items: center;
  gap: 2px;
  background: #2c4f58;
  height: 40px;
  width: 69px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
}

.userSection:hover {
  background: #1a3a40;
}

/* Balance button styles */
.balanceButton {
  background-color: #2c4f58;
  color: #fff;
  font-size: 14px;
  border-radius: 2px;
  padding: 6px 8px 8px;
  min-width: 69px;
  height: 40px;
  margin-right: 5px;
  margin-left: 10px;
  border: 0;
  outline: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
/* 
.balance {
  font-size: 10px;
} */

.balance {
  font-weight: 600;
  font-size: 10px;
  margin: 0 5px;
}

.marqueeContainer {
  display: flex;
  align-items: center;
  padding: 0.2rem;
}

.marquee {
  font-style: italic;
  font-size: 12px;
  width: 100%;
  text-align: right;
  margin-left: -2px;
  position: relative;
  overflow: hidden;
  background: #ffffff45;
  padding: 2px 6px;
  border-radius: 2px;
}

.marqueeContent {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 20s linear infinite;
  padding-left: 100%;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Responsive Design for new header */
@media (max-width: 768px) {
  .header {
    /* padding: 10px 12px; */
  }

  .headerRight {
    display: flex;
    gap: 5px;
    align-items: center;
  }

  .userSection {
    height: 38px;
    width: 60px;
    font-size: 10px;
  }

  .logo {
    height: 35px;
  }

  .logoImage {
    height: 35px;
    margin-top: 5px;
  }

  .marquee {
    font-size: 10px;
    padding: 2px 4px;
  }
}

@media (max-width: 480px) {
  .header {
    /* padding: 10px 12px; */
  }

  .userSection {
    height: 32px;
    width: 55px;
  }

  .logo {
    height: 30px;
  }

  .menuButton {
    padding: 2px;
  }
}