html,
body {
  height: 100%;
  margin: 0;
}

body {
  background-color: #f0f5f9;
  /* height: 100%; */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main {
  flex: 1;
}

.filterBTN .btn {
  background-color: var(--nav-active);
  border: none;
  min-width: 80%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;

}

#agegroupSELECT {
  margin: 15px;
  max-width: calc(100% - 30px);
}

.weightFilter {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.weightFilter > * {
  flex-grow: 1;
  text-align: center;
}

/* .weightFilter > div:hover {
  cursor: pointer;
  background-color: #31b0d4;
} */

/*@media (min-width: 769px) {
  #agegroupSELECT {
    display: none;
  }

  .weightFilter {
    display: flex !important;
  }
}*/

.filterBTN {
  padding: 10px;
  /* background-color: var(--nav-active); */
  /* background-color: #ffffff; */
  color: #fff;

}

#wrapper {
  position: relative;
  min-height: 100vh;
  /*padding-bottom: 270px;*/
}

:root {
  --background: #ffffff;
  --surface: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 0 3px rgba(0, 0, 0, 0.1), 0 0 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);

  /* Premium green palette */
  --nav-bg: #ffffff;
  --nav-border: #edf0eb;
  --nav-text: #1a2310;
  --nav-text-muted: #4a5d3a;
  --nav-hover-bg: #f5f7f3;
  --nav-active: #4a5d3a;
  --nav-shadow: rgba(0, 0, 0, 0.1);

  --card-header-bg: #6b7c5cd1;

  /* Premium blue palette */
  /* --nav-bg: #ffffff;
  --nav-border: #e8f4f8;
  --nav-text: #1e3a8a;
  --nav-text-muted: #475569;
  --nav-hover-bg: #f0f9ff;
  --nav-active: #1e40af;
  --nav-shadow: rgba(0, 0, 0, 0.1);
  --card-header-bg: #1e40afac;    */
}

#menu1 {
  background-color: var(--nav-bg) !important;
  border: 1px solid var(--nav-border);
  border-radius: 20px;
  align-items: center;
  margin: 0.5rem 0.5rem 0 0.5rem;
  box-shadow: 0 0 1px var(--nav-shadow);
  padding: 0 !important;
  margin-bottom: 10px;
}

#menu1 .container-fluid .navbar-toggler {
  padding: 0.4rem !important;
  border-radius: var(--radius-lg) !important;
  text-decoration-color: var(--nav-active) !important;
  background-color: var(--nav-text) !important;
}

/* #banner{
  margin-top: -100px;
 
  z-index: 10;
  backdrop-filter: blur(10px);
  mask: linear-gradient(to bottom, 
    rgba(0,0,0,1) 0%, 
    rgba(0,0,0,0.8) 60%, 
    rgba(0,0,0,0) 100%);
  -webkit-mask: linear-gradient(to bottom, 
    rgba(0,0,0,1) 0%, 
    rgba(0,0,0,0.8) 60%, 
    rgba(0,0,0,0) 100%);
}


#banner p {
  margin-left: 15px;
  font-size: 1.2rem;
  font-weight: 500;
 
}
@media screen and (max-width: 991.98px) {
    
  #banner .title {
    margin-top: 100px;
    font-size: 1.2rem;
  }
  #banner p {
    margin-left: 0px;
    font-size: 0.7rem;
    font-weight: 400;
   
  }
  
} */

#navbarSupportedContent {
  width: 100%;
  border-left: 1px solid var(--nav-border) !important;
  padding-left: 3px;
}

.navbar-nav {
  gap: 0.1rem;
}

.navbar-nav .nav-item .nav-link {
  color: var(--nav-text-muted) !important;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

@media screen and (max-width: 1100px) {
  .navbar-nav .nav-item .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
}

.navbar-nav .nav-item .nav-link:hover {
  color: var(--nav-text) !important;
  background-color: var(--nav-hover-bg);
  transform: translateY(-1px);
}

.navbar-nav .nav-item .nav-link.active {
  color: var(--nav-active) !important;
  background-color: var(--nav-hover-bg);
  font-weight: 600;
}
#tumagLink,
#favouritesLink {
  margin-left: auto;
  border: 1px solid var(--nav-border);
  padding: 0.4rem 0.7rem ;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--nav-text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  background: var(--nav-hover-bg);

}

#tumagLink:hover,
#favouritesLink:hover {
  color: white !important;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 93, 58, 0.15);
  background: linear-gradient(45deg, var(--nav-active), var(--nav-text-muted));
}

#favouritesLink i {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

#favouritesLink:hover i {
  transform: scale(1.1);
}

.navbar-toggler:hover {
  background-color: var(--nav-hover-bg);
  border-color: var(--nav-active);
  color: var(--nav-active) !important;
}

.navbar-toggler:focus {
  box-shadow: none;
  border-color: var(--nav-active);
}
.navbar-toggler-icon {
  color: var(--nav-active) !important;
}

.menu2 {
  background-color: #d0e0ec;
}

.menu2 a {
  padding: 10px;
  color: #444;
}

.menu2 a:hover {
  background-color: #f0f5f9;
}

#clubs {
  width: 100%;
}

#matches {
  overflow-x: auto;
}

.match {
  padding-top: 5px;
}

.match:first-child {
  margin-left: 5px;
}

.match:last-child {
  margin-right: 5px;
}

#clubHeader {
  position: relative;
  width: 100%;
  height: 400px;
  background-size: cover;
}

#headerTitle {
  position: absolute;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  padding: 20px;
  width: 100%;
}

.modern-footer {
  background: #f8f9fa;
  border-top: 3px solid #e9ecef;
  padding: 25px 0;
  margin-top: 50px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  transition: opacity 0.3s ease;
}

.footer-logo img:hover {
  opacity: 0.8;
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 5px;
}

.footer-links a:hover {
  color: #495057;
  background: #e9ecef;
}

.footer-links .divider {
  color: #dee2e6;
  font-weight: bold;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-center {
    flex-direction: column;
    gap: 15px;
  }
}

.darkfooter {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  background-color: #2c3144;
  padding-top: 30px;
  text-align: left;
}

#footer img {
  max-height: 40px;
}

#footer .pull-right a:not(:last-child):after {
  content: "|";
}

h3 {
  margin-top: 20px;
}

/* 
.card {
  margin-top: 20px;
  margin-bottom: 10px;
}

.card {
  border: none;
}

.card-header {
  background-color: #4F5F74;
  color: #fff;
  border-bottom: 0;
  border-radius: .25rem .25rem 0 0;
} */

h3 {
  font-family: inherit;
  line-height: 1.1;
  font-size: 1.3rem;
  vertical-align: middle;
  margin: 7px 0;
}

#systemNotificationBar {
  display: none;
  position: fixed;
  z-index: 1031;
  top: 0;
  width: 100%;
  background-color: green;
  color: #fff;
  min-height: 76px;
  text-align: center;
  padding: 10px;
  font-size: 20px;
  font-weight: bold;
}

#systemNotificationBar.danger {
  background-color: #e35138;
}

#systemNotificationBar.info {
  background-color: #17a2b8;
  font-size: 16px;
  font-style: italic;
  font-weight: normal;
}

#systemNotificationDIV .alert {
  margin-bottom: 0;
}

.c_loader {
  border: 12px solid #f3f3f3;
  border-radius: 50%;
  border-top: 12px solid #4a4a4a;
  width: 60px;
  height: 60px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
  margin: auto;
  margin-top: 25%;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loader-text {
  text-align: center;
  margin: 30px;
  font-size: 24px;
  color: #fff;
  font-weight: bold;
}

.not-removed {
  color: #ff0000 !important;
  text-decoration: line-through;
}

.team img {
  box-shadow: 0 0 5px 0px rgba(0, 0, 0, 0.4);
}

/* .weightActive {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0a53be;
} */

#agegroupsDIV {
  padding: 10px;
  max-width: 85%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-top: 10px;
  margin-bottom: 20px;
}

@media (max-width: 991.98px) {
  #agegroupsDIV::before {
    top: -20px;
    font-size: 12px;
  }
}

#agegroupsDIV.js-hidden {
  display: none ;
}

#agegroupsDIV .weight:first-child {
  display: none;
}

.divTotalAthlete {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

#tableStatShown {
  background: var(--nav-hover-bg);
  border-radius: var(--radius-lg);
  padding: 10px;
  border: 2px solid var(--card-header-bg);
}

#tableStatShown .statTotAth {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0 !important;
}

.divTotalAthlete .statTotAth {
  border: 1px solid #e1e8ed;
  border-radius: var(--radius-sm);
  margin-bottom: 25px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 5px 5px 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#tableStatShown .statTotAth b,
.divTotalAthlete .statTotAth b {
  font-size: 18px;
  font-weight: 600;
  background: var(--nav-hover-bg);
  color: var(--nav-active);
  padding: 4px 8px !important;
  border-radius: var(--radius-sm);
}
#tableStatShown .statTotAth {
  font-size: 16px;
  font-weight: 600;
  color: var(--nav-active);
}
.divTotalAthlete h3 {
  color: var(--nav-text);
  font-size: 20px;
  font-weight: 600;
  margin: 15px 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--nav-active);
}

.divTotalAthlete .statItemWrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.divTotalAthlete .statItemWrap .statItem {
  background: white;
  padding: 5px 6px;
  box-shadow: var(--shadow);
  transition: none;
  flex: 0 0 auto;
  min-width: fit-content;
  border-radius: var(--radius-sm);
}

.divTotalAthlete .statItemWrap .statHead {
  font-weight: 500;
  color: var(--nav-text);
  font-size: 14px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  background-color: white;
  margin-right: 0 !important;
}

.divTotalAthlete .statItemWrap .statCount {
  background: var(--nav-hover-bg);
  box-shadow: var(--shadow-sm);
  color: var(--nav-active);
  padding: 4px 8px !important;
  border-radius: var(--sharp-border-radius);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  flex-shrink: 0;
  margin-right: 0 !important;
  border-radius: var(--radius-sm);
}

#agegroupsDIV select.ageselector {
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #333a54;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  text-align-last: center;
  width: 15% !important;
  min-width: 100px !important;
  margin-bottom: 0 !important;
  background-color: white;
  padding: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: linear-gradient(
        45deg,
        transparent 40%,
        #333a54 40%,
        #333a54 60%,
        transparent 60%
      )
      right 18px center / 8px 8px no-repeat,
    linear-gradient(
        135deg,
        transparent 40%,
        #333a54 40%,
        #333a54 60%,
        transparent 60%
      )
      right 12px center / 8px 8px no-repeat,
    white;
}

#agegroupsDIV select.ageselector:hover {
  border-color: var(--dark-green);
  transform: translateY(-1px);
}

.agegroup.justify-content-center.d-flex {
  padding: 2px;
  border-radius: 8px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: start !important;
}

.agegroup .weight {
  background: var(--nav-active);
  color: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.2rem 0.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  flex-grow: 1;
  transition: all 0.3s ease;
  height: 100%;
}
.filterBTN .btn:hover, 
.agegroup .weight:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.agegroup .weight.weightActive {
  background-color: var(--nav-text);
}

#bracketInfoDIV {
  border-radius: var(--radius-lg);
  background-color: var(--nav-hover-bg);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  width: 85%;
  margin: 0 auto;
  margin-top: 20px;
}

#bracketSystemInfo div {
  background: none;
  border: none;
  margin-bottom: 0;
  padding: 0;
  color: var(--nav-active);
}

#participantsDIV {
  /* border: var(--container-border) */
  border: 2px solid var(--card-header-bg) !important;
  margin: 10px 0;
}

#participantsDIV .card-body .input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-secondary {
  border-radius: var(--radius-sm) !important;
}

#participantsDIV .card-body .input-group .selectWrapper .select2 {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

#collapseAgegroups {
  display: none;
}

#displayAgegroups {
  display: none;
}

#displayAgegroups div {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991.98px) {
  #agegroupsDIV {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    max-width: calc(100% - 40px);
    max-height: 80vh;
    overflow-y: auto;
    padding: 17px !important;
    margin: 0 !important;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(1px);
    flex-direction: column;
    flex: none;
    background: color-mix(in srgb, var(--nav-hover-bg) 40%, transparent);
    /* display: flex; */
  }

  #agegroupsDIV select.ageselector {
    width: 100% !important;
  }
  .agegroup {
    flex-wrap: wrap;
  }

  #collapseAgegroups {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    z-index: 110;
  }

  #displayAgegroups {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    max-height: 80vh;
    width: fit-content;
    min-width: 200px;
    text-wrap: nowrap;
    padding: 5px !important;
    margin: 0 !important;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px) !important;
    background: var(--card-header-bg);
    color: var(--surface);
    font-weight: 600;
    font-size: 14px;
    display: none ;
    /* display: flex !important;
    align-items: center !important;
    justify-content: center !important; */
  }

  #navbarSupportedContent {
    border: none !important;
  }
  #tumagLink,
  #favouritesLink {
    margin-bottom: 10px;
    width: 100% !important;
  }
 


}

@media (min-width: 991.98px) {
  #agegroupsDIV {
    display: flex !important;
  }
  #collapseAgegroups {
    display: none !important;
  }
  #displayAgegroups {
    display: none !important;
  }
}

.contests .card,
.statsWrapper {
  margin-bottom: 15px;
}

.card {
  border-radius: var(--radius-lg) !important;
  border: none !important;
}

.card .card-header {
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  background-color: var(--card-header-bg);
  color: var(--surface);
}

.card .card-footer {
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  background-color: var(--card-header-bg);
  color: var(--surface);
}

#results {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-content: stretch;
  align-items: stretch;
  justify-content: start;
}

#results .ageWeightResultWrapper {
  background: none !important;
  width: calc((100% - 20px) / 2);
  flex-grow: 0;
  flex-shrink: 0;
}

#results
  .ageWeightResultWrapper:not([style*="display: none"]):not(
    :has(~ .ageWeightResultWrapper:not([style*="display: none"]))
  ) {
  width: 100%;
}

#eventListDIV .card-header,
#results .card-header {
  border-radius: var(--radius-lg);
}

#eventListDIV .list-group,
#results .list-group {
  border-radius: 0 !important;
  padding: 0 10px;
}
#eventListDIV .card {
  background: none;
}

#results .list-group-item i {
  float: inline-end;
}

@media (max-width: 1050px) {
  #results .ageWeightResultWrapper {
    width: 100%;
  }
}

#results .list-group .list-group-item.first-place::before {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  font-size: 18px;
}

#results .list-group .list-group-item.first-place {
  background: linear-gradient(135deg, #fff9e6 0%, #feedb5 100%);
  border-left: 4px solid #ffd700;
  /* transform: scale(1.02); */
}

#results .list-group .list-group-item.second-place::before {
  background: linear-gradient(135deg, #c0c0c0 0%, #a9a9a9 100%);
  box-shadow: 0 0 15px rgba(192, 192, 192, 0.5);
  font-size: 18px;
}

#results .list-group .list-group-item.second-place {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #c0c0c0;
  /* transform: scale(1.01); */
}

#results .list-group .list-group-item.third-place::before {
  background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.5);
  font-size: 18px;
}

#results .list-group .list-group-item.third-place {
  background: linear-gradient(135deg, #fff0c7 0%, #f0c38c 100%);
  border-left: 4px solid #cd7f32;
}

#contestDIV .fightInfo {
  background-color: var(--card-header-bg);
  color: var(--surface);
  font-weight: 600;
  font-size: 1.1rem;
}

#modulesDIV .card {
  margin: 10px 0;
}

#lastActualization {
  color: var(--surface);
}

.favoritesInfo {
  color: var(--surface);
}

.swiper p,
.swiper .title {
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6) !important;
}
.swiper p {
  color: black !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6) !important;
}

.matchesWrapper {
  background-color: var(--nav-bg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--card-header-bg);
}

#teamsDIV .card,
#athletesDIV2 .card {
  margin-bottom: 12px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

#teamsDIV .teamVS .teamName {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--nav-text);
}

#athleteDIV {
  padding: 20px;
  /* margin: 10px 20px 20px 20px; */
  border-radius: var(--radius-lg);
  background-color: var(--card-header-bg)  !important;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.05) 100%
  );
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--card-header-bg);
  display: flex;
  align-items: center;  
  justify-content: center;
}

#athleteDIV .container big {
  padding: 0 10px;
  text-align: center;
  border-radius: var(--radius-lg);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  
}

#athleteDIV img {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  
}

.teamVS{
  background-color: var(--card-header-bg);
  border-radius: var(--radius-sm);
}

.teamVS .team{
  /* background-color: rgba(255, 255, 255, 0.422); */
  padding: 5px 30px;
  height: 100%;
  /* box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3); */
  /* display: flex;
  align-items: center;
  justify-content: center; */

}


.teamVS span[data-teamid]{
  color: var(--surface);

}

