@font-face {
  font-family: "Roboto";
  src: url("RobotoCondensed-VariableFont_wght.ttf") format("truetype"); /* Update the path accordingly */
  font-weight: normal;
  font-style: normal;
}

/* Additional styles for other font weights or styles */
@font-face {
  font-family: "Roboto-Bold";
  src: url("RobotoCondensed-VariableFont_wght.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Roboto-Mono";
  src: url("RobotoMono-VariableFont_wght.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* ======================================
   PWA SPECIFIC STYLES
   ====================================== */

/* iOS PWA status bar spacing */
@supports (-webkit-touch-callout: none) {
  .main-header {
    padding-top: env(safe-area-inset-top);
  }
}

/* PWA standalone mode detection */
@media all and (display-mode: standalone) {
  /* Hide elements that don't make sense in standalone mode */
  .browser-only {
    display: none !important;
  }

  /* Adjust header for standalone mode */
  .main-header {
    background: linear-gradient(135deg, #1b264f 0%, #274690 100%);
    border-bottom: none;
  }

  /* Ensure content doesn't hide behind status bar on iOS */
  body {
    padding-top: env(safe-area-inset-top);
  }
}

/* iOS Safari specific adjustments */
@supports (-webkit-appearance: none) {
  .ios-safe-area {
    padding-top: constant(safe-area-inset-top); /* iOS 11.0 */
    padding-top: env(safe-area-inset-top); /* iOS 11.2+ */
  }
}

/* PWA install prompt styles */
.pwa-install-prompt {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: linear-gradient(135deg, #1b264f 0%, #274690 100%);
  color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transform: translateY(100px);
  transition: transform 0.3s ease;
}

.pwa-install-prompt.show {
  transform: translateY(0);
}

.pwa-install-button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  margin-left: 10px;
  cursor: pointer;
}

/* ======================================
   ENHANCED HEADER NAVIGATION STYLES
   ====================================== */

/* Header container with improved backdrop */
.main-header {
  transition: all 0.3s ease;
  position: relative;
  z-index: 1500 !important;
}

/* Ensure dropdown menus appear above everything */
.mantine-Menu-dropdown {
  z-index: 2000 !important;
}

/* Select dropdown z-index - ensure selects appear above modals */
.mantine-Select-dropdown {
  z-index: 2500 !important;
}

/* Combobox dropdown z-index */
.mantine-Combobox-dropdown {
  z-index: 2500 !important;
}

/* Navigation dropdown z-index */
.nav-dropdown {
  position: relative;
  z-index: 1600;
}

.main-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1b264f 0%, #274690 100%);
  opacity: 0.95;
  z-index: -1;
}

/* Navigation items with smooth hover effects */
.nav-item {
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 0;
}

.nav-item:hover::before {
  left: 100%;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-item-active {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-item-text {
  position: relative;
  z-index: 1;
}

/* Dropdown navigation styles */
.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  z-index: 2000 !important;
}

.nav-dropdown-menu .mantine-Menu-item {
  border-radius: 8px;
  padding: 12px 16px;
  margin: 2px 0;
  transition: all 0.2s ease;
  color: #1b264f;
  font-weight: 500;
}

.nav-dropdown-menu .mantine-Menu-item:hover {
  background-color: #f0f4ff;
  transform: translateX(4px);
}

/* Logo improvements */
.logo-link {
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

/* User menu specific styles */
.user-menu-item {
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  width: auto;
  flex-shrink: 0;
}

.user-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.logo-image,
.logo-image-mobile {
  transition: filter 0.3s ease;
}

.logo-image:hover,
.logo-image-mobile:hover {
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3)) brightness(1.1);
}

/* Hamburger button improvements */
.hamburger-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Main navigation container */
.main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

/* Header content spacing */
.header-content {
  padding: 0 20px;
}

/* Ensure no gap under header */
.main-header {
  margin-bottom: 0 !important;
}

/* AppShell main content should start immediately after header */
[data-mantine-component="AppShellMain"] {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ======================================
   ENHANCED SIDEBAR STYLES
   ====================================== */

.main-sidebar {
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.sidebar-nav-item {
  margin: 4px 0;
  border-radius: 10px;
  transition: all 0.3s ease;
  padding: 12px 16px;
  font-weight: 600;
  color: #1b264f;
}

.sidebar-nav-item:hover {
  background-color: #e6ecff;
  transform: translateX(8px);
  box-shadow: 0 2px 8px rgba(27, 38, 79, 0.1);
}

.sidebar-nav-sub {
  margin-left: 16px;
  padding-left: 12px;
  border-left: 2px solid #e6ecff;
  font-weight: 500;
  font-size: 14px;
}

.sidebar-nav-sub:hover {
  border-left-color: #576ca8;
  background-color: #f0f4ff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-item {
    padding: 6px 12px;
  }

  .nav-item-text {
    font-size: 0.875rem;
  }

  .main-navigation {
    gap: 0.5rem;
  }

  .header-content {
    padding: 0 10px;
  }
}

@media (max-width: 600px) {
  .nav-item {
    padding: 4px 8px;
  }

  .nav-item-text {
    font-size: 0.75rem;
  }
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: 400; /* Regular */
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto-Bold", sans-serif;
  font-weight: 700; /* Bold */
}

@media (max-width: 600px) {
  .home-page-text {
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .join-next-pot {
    max-width: 90%;
  }
  .join-next-pot-title {
    font-size: 16px;
  }
  .join-next-pot-text {
    font-size: 10px;
  }
}
.center-aligned-group-header .ag-header-group-cell-label {
  justify-content: center;
}

.pot-card {
  justify-content: space-between;
}
.pot-winner {
  justify-content: center;
}
@media (max-width: 600px) {
  .pot-card {
    justify-content: center;
    text-align: center;
    align-items: center;
  }
  .pot-winner {
    justify-content: center;
  }
}
.banner-home {
  height: 50dvh;
  width: 100%;
}
.banner-home-text {
  text-shadow: 2px 2px 4px #000000;
  font-size: 80px;
}

@media (max-width: 600px) {
  .banner-home {
    height: 25dvh;
    width: 100%;
    /* transform: scale(0.6);
    -moz-transform: scale(0.6); */
  }
}
@media (max-width: 600px) {
  .banner-home-text {
    text-shadow: 2px 2px 4px #000000;
    font-size: 25px;
  }
}
@media (max-width: 600px) {
  .banner-home-text-small {
    text-shadow: 2px 2px 4px #000000;
    font-size: 12px;
  }
}
.small-header .ag-header-group-cell-label {
  font-size: 0.65rem;
  padding: 0px;
  text-overflow: none;
}

.right-aligned-group-header .ag-header-group-cell-label {
  justify-content: right;
}
.mantine-Accordion-label {
  padding-left: 15px;
  padding-top: 0px;
  overflow: visible;
}

.m_8ee546b8.mantine-Checkbox-label {
  padding-left: 5px;
  padding-top: 0px;
}
.mantine-Accordion-chevron {
  align-self: self-start;
}
/* mantine tabs */
.m_b59ab47c:where([data-active]) {
  border-bottom: #fffaf7;
  background-color: #fffaf7;
}
/* list item label for fixtures */
.mantine-List-itemLabel {
  width: 100%;
  justify-content: center;
  align-content: center;
}
/* list item wrapper for fixtures */
.m_75cd9f71 {
  width: 100%;
  justify-content: center;
  align-content: center;
}
.zoom {
  /* transition: transform .3s; Animation */
  transition: transform 3.8s cubic-bezier(0.19, 1, 0.22, 1);
  transform-origin: center;
  margin: 0 auto;
}

.ag-theme-quartz.compact {
  --ag-grid-size: 5px;
}
@media (max-width: 600px) {
  .ag-theme-quartz.compact {
    --ag-grid-size: 5px;
    --ag-font-size: 10px;
  }
}
.ag-theme-quartz.compact {
  --ag-grid-size: 5px;
}
.ag-watermark {
  display: none !important;
}

.ag-root-wrapper {
  border: transparent !important;
}
.ag-header {
  background-color: transparent !important;
}
.zoom:hover {
  transform: scale(1.1) rotate(0.02deg);
}
/* blockquote */
.m_dde7bd57 {
  background-color: transparent;
  --blockquote-icon-offset: calc(var(--bq-icon-size) / 6.5);
  opacity: 0.5;
  z-index: 1;
}
.tab {
  transition: border-bottom 1s linear;
}
.tab:hover {
  background-color: transparent;
  border-bottom: 5px solid #1b264f;
  transition: 1s;
}
@media (max-width: 600px) {
  .tab {
    font-size: 10px;
    width: 90px;
    --tab-section-margin-left: 0px;
  }
  .tab-icon {
    width: 16px;
  }
  .m_fc420b1f.mantine-Tabs-tabSection {
    margin-left: 5px;
  }
}
@media (max-width: 600px) {
  .tab-title {
    font-size: 10px;
  }
  .tab-icon {
    width: 20px;
  }
  .pot-select {
    width: 200px;
  }
  .tabs-group {
    justify-content: center;
    padding-top: 8px;
  }
}

.banner-background {
  background-image: radial-gradient(
      circle at 48% 48%,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0)
    ),
    linear-gradient(#1a1a1a, #1a1a1a);
}

.nozoom {
  transform: scale(1) rotate(0.02deg);
  transform-origin: center;
  margin: 0 auto;
  /* Smooth transition setup */
  transition: transform 3.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.nozoom:hover {
  /* Reset transform to normal on hover */
  transform: scale(0.90909090909090909) rotate(0deg);
}

.parentclient-link {
  text-decoration: underline;
  color: #125049;
  align-self: center;
}
/* Adjust font size and padding for smaller screens */
@media (max-width: 1400px) {
  /* tab - text size */
  .mantine-ahsw5w {
    font-size: 8px;
  }

  .dmc-group {
    padding: 5px; /* Reduce padding on smaller screens */
  }
}

.center-aligned-header .ag-header-cell {
  padding-right: 0px;
}
.center-aligned-header .ag-header-cell-label {
  justify-content: center;
  padding-right: 0px;
}

.mantine-Slider-label {
  display: none;
}
/* .ag-theme-alpine {
    --ag-font-size: 10px !important;
  } */

.js-plotly-plot .plotly svg {
  overflow: visible !important;
}

.modebar-container {
  display: none;
}

.rc-slider-track {
  background-color: #125049;
}

.rc-slider-handle {
  border: solid 2px #125049;
}
.rc-slider-handle {
  border-color: #125049;
}
.rc-slider-handle:active {
  border-color: #125049;
  box-shadow: 0 0 5px #125049;
}
.rc-slider-handle:hover {
  border-color: #125049;
}
.rc-slider-handle-click-focused:focus {
  border-color: #125049;
}
.rc-slider-dot-active {
  border-color: #125049;
}

.tab_anchor {
  text-decoration: none;
  color: inherit;
  align-self: center;
}

.tab_anchor:hover {
  text-decoration: none;
  color: inherit;
  align-self: center;
}

.show-hide {
  position: relative;
  width: 200px;
  border-radius: 5px;
  background-color: #436f62;
  font-family: "Roboto", sans-serif;
  color: #ffffff;
}

.show-hide::before {
  background: inherit;
  content: "Show/Hide Columns";
  position: absolute;
  left: 5px;
  right: 5px;
}

.predictions_class_1 {
  background-color: beige;
  text-align-last: center;
}
.predictions_class_2 {
  background-color: rgb(218, 241, 105);
  text-align-last: center;
}
.predictions_class_5 {
  background-color: green;
  text-align-last: center;
}
.predictions_class_0 {
  background-color: red;
  text-align-last: center;
}

@media (min-width: 2em) {
  .fixturetextaway {
    font-size: 0.6rem;
    width: 15vw;
    text-align: start;
  }
  .fixturetexthome {
    font-size: 0.6rem;
    width: 15vw;
    text-align: end;
  }
}

@media (min-width: 60em) {
  .fixturetextaway {
    font-size: 1rem;
    width: 20vw;
    text-align: start;
  }
  .fixturetexthome {
    font-size: 1rem;
    width: 20vw;
    text-align: end;
  }
}

.fixturetexthome {
  /* width: 20vw; */
  text-align: end;
}

.fixturetextaway {
  /* width: 20vw; */
  text-align: start;
}

@media (min-width: 2em) {
  .away_team_logo {
    width: 25px;
    min-width: 25px;
    height: 25px;
  }
  .home_team_logo {
    width: 25px;
    min-width: 25px;
    height: 25px;
  }
}

@media (min-width: 60em) {
  .away_team_logo {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }
  .home_team_logo {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }
}

/*  display fixtures date */
.m_75cd9f71 {
  display: inline;
}

@media (min-width: 2em) {
  .gw_button {
    font-size: 0.4rem;
    width: 5rem;
    padding: 0.1rem;
  }
}

@media (min-width: 64em) {
  .gw_button {
    padding-top: 0.15em;
    padding-bottom: 0.15em;
    font-size: 0.85rem;
    width: 15rem;
  }
}

@media (min-width: 2em) {
  .gw_title {
    font-size: 1rem;
    padding: 0.1rem;
  }
}

@media (min-width: 64em) {
  .gw_title {
    /* padding-top: 0.15em;
    padding-bottom: 0.15em; */
    font-size: 1.8rem;
    width: 15rem;
  }
}
@media (min-width: 2em) {
  .predictions_page_tabs {
    padding-left: 0%;
    padding-right: 0%;
  }
}

@media (min-width: 60em) {
  .predictions_page_tabs {
    padding-left: 10%;
    padding-right: 10%;
  }
}

@media (min-width: 2em) {
  .gw_points_title {
    font-size: 18px;
  }
}

@media (min-width: 60em) {
  .gw_points_title {
    font-size: 36px;
  }
}

.mantine-1yd9qse:disabled {
  background-color: #000000;
  color: white;
  text-align: center;
  opacity: 0.4;
}
.m_8fb7ebe7:disabled {
  background-color: #000000;
  color: white;
  text-align: center;
  opacity: 0.4;
}

/* ======================================
   GAMEWEEK LOADING ANIMATIONS
   ====================================== */

/* Smooth fade-in animation for fixtures content */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* Loading container animations */
.loading-container {
  animation: fadeInUp 0.6s ease-out;
}

/* Enhanced loading spinner styling */
._dash-loading {
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 150px;
}

._dash-loading-callback {
  color: #576ca8 !important;
  border-radius: 8px;
  background: rgba(87, 108, 168, 0.05);
  padding: 20px;
  backdrop-filter: blur(4px);
}

/* Gameweek navigation button hover effects */
.gw_button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.gw_button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(87, 108, 168, 0.3);
}

.gw_button:active:not(:disabled) {
  transform: translateY(0);
  transition: transform 0.1s;
}

/* Fixture items smooth animations */
.fixturelistitem {
  transition: all 0.3s ease;
  animation: fadeInUp 0.4s ease-out;
}

.fixturelistitem:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Team logo animations */
.home_team_logo,
.away_team_logo {
  transition: transform 0.2s ease;
}

.home_team_logo:hover,
.away_team_logo:hover {
  transform: scale(1.1);
}

/* Table loading animation */
.ag-theme-quartz {
  transition: opacity 0.3s ease;
}

/* Predictions card animations */
#predictions_card_container,
#fixtures_container,
#lms_picks_container,
#all_predictions_table_container,
#user_predictions_container {
  animation: fadeInUp 0.5s ease-out;
}

/* Enhanced notification animations */
.mantine-Notification-root {
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Loading state for specific components */
.loading-predictions {
  position: relative;
}

.loading-predictions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(87, 108, 168, 0.1),
    transparent
  );
  animation: shimmer 1.5s infinite;
  z-index: 1;
}

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

/* Staggered animation for fixture lists */
.fixturelistitem:nth-child(1) {
  animation-delay: 0.1s;
}
.fixturelistitem:nth-child(2) {
  animation-delay: 0.2s;
}
.fixturelistitem:nth-child(3) {
  animation-delay: 0.3s;
}
.fixturelistitem:nth-child(4) {
  animation-delay: 0.4s;
}
.fixturelistitem:nth-child(5) {
  animation-delay: 0.5s;
}

/* Mobile responsiveness for animations */
@media (max-width: 768px) {
  .gw_button:hover:not(:disabled) {
    transform: none; /* Disable hover transforms on mobile */
  }

  .fixturelistitem {
    animation-duration: 0.3s; /* Faster animations on mobile */
  }
}

/* Accessible animation controls */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skeleton loading animation */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Smooth loading transitions */
.predictions-content-transition {
  transition: opacity 0.3s ease-in-out;
}

.predictions-loading {
  opacity: 0.7;
}

.predictions-loaded {
  opacity: 1;
}

/* Enhanced skeleton styles */
.skeleton-box {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ======================================
   HANGMAN GAME MOBILE STYLES
   ====================================== */

/* Hangman title responsive sizing */
.hangman-title {
  font-size: clamp(1.2rem, 4vw, 1.8rem) !important;
}

/* Mobile optimizations for hangman game */
@media (max-width: 768px) {
  /* Reduce padding on mobile #page_content {
    padding: 2% 2% 2% 2% !important;
    padding-top: 90px !important;
  } */

  /* Letter buttons - better touch targets */
  [id*="letter-button"] {
    min-height: 44px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
  }

  /* Word display - responsive sizing */
  #display-word {
    font-size: clamp(1.2rem, 6vw, 2rem) !important;
    letter-spacing: clamp(0.1rem, 2vw, 0.3rem) !important;
    line-height: 1.2 !important;
    word-break: break-all !important;
  }

  /* Cards spacing on mobile */
  .mantine-Card-root {
    margin-bottom: 1rem !important;
  }

  /* Images responsive sizing */
  #hangman-image,
  #hangman-player-image {
    max-width: 150px !important;
    height: auto !important;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .hangman-title {
    font-size: 1.1rem !important;
  }

  #display-word {
    font-size: clamp(1rem, 8vw, 1.5rem) !important;
    letter-spacing: clamp(0.05rem, 1.5vw, 0.2rem) !important;
  }

  /* Smaller letter buttons for very small screens */
  [id*="letter-button"] {
    min-height: 40px !important;
    font-size: 1rem !important;
    padding: 8px 12px !important;
  }

  /* Reduce card padding */
  .mantine-Card-root {
    padding: 0.75rem !important;
  }

  /* Images even smaller on tiny screens */
  #hangman-image,
  #hangman-player-image {
    max-width: 120px !important;
  }
}
