﻿/* Bootstrap CSS overwrite*/

.container, .container-fluid, .container-xxl, .container-xl, .container-lg, .container-md, .container-sm {
    width: 100%;
    /* padding-right: var(--bs-gutter-x, 0.75rem); */
    /* padding-left: var(--bs-gutter-x, 0.75rem); */
    /* margin-right: auto; */
    /* margin-left: auto; */
}

/* END Bootstrap CSS overwrite*/

/* Login Page */
.login-bg {
    background: url('/img/stadium.png') center center/cover no-repeat;
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-overlay {
    /*background: rgba(55, 0, 60, 0.7);*/ /* Dark plum color with transparency */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28);
    width: 100%;
    max-width: 400px;
    z-index: 2;
    text-align: center;
    opacity: 0.97;
}

.login-title {
    color: #37003C;
    margin-bottom: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.input-custom {
    border: 1px solid #C0C0C0;
    margin-bottom: 1rem;
    border-radius: 8px;
    padding: 0.75rem;
    color: #37003C;
    background: #F9F9F9;
}

.input-custom:focus {
    border-color: #3F84E5;
    box-shadow: 0 0 0 0.12rem rgba(63, 132, 229, 0.22);
}

.btn-login {
    background-color: #FF312E;
    color: #fff;
    padding: 0.75rem;
    border: none;
    width: 100%;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.btn-login:hover {
    background-color: #e22a28;
}

.secondary-link, .secondary-link a {
    margin-top: 1rem;
    font-size: 0.98rem;
    color: #17BEBB;
    cursor: pointer;
    text-decoration: none;
}

@media (max-width: 500px) {
    .login-card {
        padding: 1rem;
        max-width: 95vw;
    }
}

/* end login page*/

/* Navigation Bar*/
/* Main navbar top row */
.top-row.navbar {
    background: #37003C;
    border-bottom: 3px solid #FF312E;
    color: #fff;
    min-height: 60px;
    box-shadow: 0 2px 8px rgba(55,0,60,0.08);
}

/* Brand title */
.navbar-brand {
    color: #FF312E !important;
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

/* Navbar toggler (hamburger icon) */
.navbar-toggler {
    border-color: #3F84E5;
    background: #3F84E5;
    transition: background 0.2s;
}

.navbar-toggler:hover {
    background: #17BEBB;
}

/* Side nav menu for desktop */
.nav-menu {
    background: #37003C;
    min-width: 220px;
    border-right: 1px solid #C0C0C0;
    height: 100vh;
    padding-top: 1rem;
    z-index: 1000;
}

/* Navigation links */
.nav-link {
    color: #C0C0C0 !important;
    font-size: 1.13rem;
    margin-bottom: 0.4rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
}   

/* Active & hovered nav links */
.nav-link.active, .nav-link:hover, .nav-link:focus {
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(63,132,229,0.13);
}

/* Nav icons */
.nav-link .oi {
    color: #17BEBB;
    font-size: 1.15em;
    margin-right: 0.7em;
}

/* Responsive: collapse side nav on small screens */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        width: 90vw;
        left: 0;
        top: 60px;
        height: auto;
        background: rgba(55,0,60,0.95);
        border-right: none;
        box-shadow: 0 4px 24px rgba(55,0,60,0.22);
        transition: left 0.2s;
    }

    .nav-item {
        margin-bottom: 0.25rem;
    }
}

/* Color palette classes */
.bg-primary-header {
    background-color: #f4f7f5 !important;
}
.btn-primary-cta {
    /* background-color: #FF312E !important; */
    background-color:#E83B38 !important;
    color: #fff !important;
    border: none;
}
.btn-primary-cta:hover, .btn-primary-cta:focus {
    background-color: #d62828 !important;
}
.btn-weekly {
    background-color: #3F84E5 !important;
    color: #fff !important;
    border: none;
}
.btn-weekly:hover, .btn-weekly:focus {
    background-color: #2563b9 !important;
}
.btn-league {
    /* background-color: #03256C !important; */
    background-color: #218254 !important;
    color: #fff !important;
    border: none;
}
.btn-league:hover, .btn-league:focus {
    background-color: #03256C !important;
}

.btn-positions {
    background-color: #C0C0C0 !important;
    color: #fff !important;
    border: none;
}
.btn-positions:hover, .btn-positions:focus {
    background-color: #C0C0C0 !important;
}
.border-lightgray {
    border: 1px solid #f4f7f5 !important;
    border-radius: 0.5rem;
}
.mosaic-card {
  background: 
    linear-gradient(
      135deg,
      rgba(63, 132, 229, 0.8) 0%, 
      rgba(23, 190, 187, 0.8) 100%
    ),
    url('/img/geometric_triangle_3553173.png') center center/cover no-repeat;
  background-size: cover;
  background-blend-mode: overlay;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 70px;
  display: flex;
  align-items: center;  /* Vertical centering */
  justify-content: center; /* Optional: Horizontal centering */
}

.mosaic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.mosaic-card a {
  text-decoration: none;
  color: white;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

/* .mosaic-card {
    background: #fff;
    padding: 1rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(55,0,60,0.04);
    transition: box-shadow 0.2s;

    a {
        text-decoration: none;
        color: inherit;
        width: 100%;
        height: 100%;
        display: flex;
        /* align-items: center;
        justify-content: center; */
        font-weight: bold;
        font-size: 1.1rem;
        
    }
}

.mosaic-card:hover {
    box-shadow: 0 4px 16px rgba(63,132,229,0.10);
} */
@media (max-width: 767.98px) {
    .mosaic-card {
        min-height: 80px;
        padding: 0.75rem;
    }
}

/* end navigation bar*/

/* Matches main list */



  .accordion {
    max-width: 600px;
    margin: auto;
  }

  /* Accordion item container */
  .accordion-item {
    border: 1px solid #C0C0C0; /* gray border */
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25); /* subtle shadow */
  }

  /* Header visible when collapsed */
  .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
  }

  /* .accordion-header:hover {
    background: #3F84E5;
  } */

  /* Team info and predicted/official results */
  .match-info {
    display: flex;
    flex-direction: column;
  }

  .teams {
    font-size: 20px;
    font-weight: 600;
    color: #37003C; /* dark plum color */
    margin-bottom: 8px;
  }

  /* Use red for predicted result if incorrect; teal if correct */
  .predicted {
    font-size: 14px;
    color: #FF312E; /* red highlight */
  }

  .predicted.correct {
    color: #17BEBB; /* teal when correct */
  }

  .official {
    font-size: 12px;
    color: #C0C0C0; /* gray for secondary */
    font-style: italic;
  }

  /* Points indicator */
  .points {
    font-size: 1rem;
    color: #FF312E; /* Red highlight for penalties */
    font-weight: bold;
  }

  /* Arrow icon */
  .toggle-icon {
    font-size: 18px;
    color: #3F84E5; /* blue icon */
    transition: transform 0.3s;
  }

  /* Rotate arrow when expanded */
  .accordion-item.active .toggle-icon {
    transform: rotate(180deg);
  }

  /* Hidden panel */
  .accordion-content {
    display: none;
    background: #FFFFFF;
    color: #37003C; /* text returns to dark color on white background */
    padding: 16px;
    border-top: 1px solid #C0C0C0;
  }

  .accordion-item.active .accordion-content {
    display: block;
  }

  /* Pronóstico button inside the content panel */
  .btn-pronostico {
    display: inline-block;
    background: #3F84E5;       /* blue button */
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 8px;
  }

  .btn-pronostico:hover {
    background: #17BEBB;       /* teal on hover */
  }

  .score-card {
    color: #37003C;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    margin: 0px auto;
    text-align: center;
    min-width: 80%;
}
.competition {
    font-size: 0.7rem;
    color: #FFF;
    background-color: rgba(55, 0, 60, 0.75);
    font-weight: bold;
    padding: 0.5rem 1rem;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
    border-radius: 0 0 12px 12px; /* Only round the bottom corners */
    width: auto; /* Ensure width is determined by content */
    display: inline-block; /* Shrink to fit content */
    margin-bottom: 15px !important;
}    

.team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3F84E5;
    padding-left: 10px;
    padding-right: 10px;
}

.score-input {
    width: 60px;
    height: 40px;
    font-size: 1.5rem;
    text-align: center;
    border: 1px solid #C0C0C0;
    border-radius: 4px;
    background-color: #F9F9F9; /* Light gray background */
    color: #37003C; /* Dark plum color */
}

/* .score-card div:hover {
    color: #3F84E5; 
} */
/* end Matches main list */

/* teams */
.img-america {
    background-image: url("/img/escudosLigaMx/america.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-atlas {
    background-image: url("/img/escudosLigaMx/atlas.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-mazatlan {
    background-image: url("/img/escudosLigaMx/mazatlan.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-atleticoSL {
    background-image: url("/img/escudosLigaMx/atleticoSL.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-chivas {
    background-image: url("/img/escudosLigaMx/chivas.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-puebla {
    background-image: url("/img/escudosLigaMx/puebla.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-queretaro {
    background-image: url("/img/escudosLigaMx/queretaro.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-cruzazul {
    background-image: url("/img/escudosLigaMx/cruzazul.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-fcjuarez {
    background-image: url("/img/escudosLigaMx/fcjuarez.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-toluca {
    background-image: url("/img/escudosLigaMx/toluca.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-santos {
    background-image: url("/img/escudosLigaMx/santos.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-tigres {
    background-image: url("/img/escudosLigaMx/tigres.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-unam {
    background-image: url("/img/escudosLigaMx/unam.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-pachuca {
    background-image: url("/img/escudosLigaMx/pachuca.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-rayados {
    background-image: url("/img/escudosLigaMx/rayados.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-xolos {
    background-image: url("/img/escudosLigaMx/xolos.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-leon {
    background-image: url("/img/escudosLigaMx/leon.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.img-necaxa {
    background-image: url("/img/escudosLigaMx/necaxa.webp");
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 30px;
    padding-bottom: 25px;
}
.bimg-leon {
    background-image: url("/img/escudosLigaMx/leon.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}
.bimg-necaxa {
    background-image: url("/img/escudosLigaMx/necaxa.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}
.bimg-america {
    background-image: url("/img/escudosLigaMx/america.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}

.bimg-atlas {
    background-image: url("/img/escudosLigaMx/atlas.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}

.bimg-mazatlan {
    background-image: url("/img/escudosLigaMx/mazatlan.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}

.bimg-atleticoSL {
    background-image: url("/img/escudosLigaMx/atleticoSL.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}

.bimg-chivas {
    background-image: url("/img/escudosLigaMx/chivas.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}

.bimg-puebla {
    background-image: url("/img/escudosLigaMx/puebla.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}

.bimg-queretaro {
    background-image: url("/img/escudosLigaMx/queretaro.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}

.bimg-cruzazul {
    background-image: url("/img/escudosLigaMx/cruzazul.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}

.bimg-fcjuarez {
    background-image: url("/img/escudosLigaMx/fcjuarez.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}

.bimg-toluca {
    background-image: url("/img/escudosLigaMx/toluca.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}

.bimg-santos {
    background-image: url("/img/escudosLigaMx/santos.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}

.bimg-tigres {
    background-image: url("/img/escudosLigaMx/tigres.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}

.bimg-unam {
    background-image: url("/img/escudosLigaMx/unam.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}

.bimg-pachuca {
    background-image: url("/img/escudosLigaMx/pachuca.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}

.bimg-rayados {
    background-image: url("/img/escudosLigaMx/rayados.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}

.bimg-xolos {
    background-image: url("/img/escudosLigaMx/xolos.webp");
    background-repeat: no-repeat;
    background-size: 45px;
    padding-left: 50px !important;
}
/* end teams */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.match-card {
    padding: 0px .5rem 0px .5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.match-details {
    display: none;
    padding: 1rem;
    border-top: 1px solid #ddd;
    background-color: #f8f9fa;
}

.match-details.show {
    display: block;
}

.btn-link {
    color: #6c757d;
}

.btn-link:hover {
    color: #495057;
}

:root{
  --plum:#37003C;      /* text / borders */
  --blue:#3F84E5;      /* focus */
  --gray:#C0C0C0;      /* subtle border */
  --red:#FF312E;       /* invalid */
}

.select-input, .text-input{

  font-size:1.5rem;
  line-height:1;
  text-align:center;
  padding:.15rem .25rem .25rem;
  border:none;
  border-bottom:2px solid var(--plum);
  border-radius:0;
  background:transparent;
  color:var(--plum);
  outline:none;
  transition:border-color .2s ease, transform .05s ease;
  caret-color:var(--plum);
  background-color: #f8f9fa;
}
/* minimalist numeric input */
.score-input{
  width:3ch;                    /* fits 0–99 */
  font-size:2.2rem;
  line-height:1;
  text-align:center;
  padding:.15rem .25rem .25rem;
  border:none;
  border-bottom:3px solid var(--plum);
  border-radius:0;
  background:transparent;
  color:var(--plum);
  outline:none;
  transition:border-color .2s ease, transform .05s ease;
  caret-color:var(--plum);
  background-color: #f8f9fa;
}

/* hover / focus states */
.score-input:hover{ border-bottom-color:var(--gray); }
.score-input:focus{
  border-bottom-color:var(--blue);
  transform:translateY(1px);
}

/* invalid (e.g., > max or < min) */
.score-input:invalid{ border-bottom-color:var(--red); }

/* remove spinners – Chrome/Safari/Edge */
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

/* remove spinners – Firefox */
.score-input{
  -moz-appearance:textfield;
}

/* Make the scrollable columns horizontally scrollable */
.scrollable-column {
    /*min-width: 100px;*/ /* Set a minimum width for the scrollable columns */
    overflow-x: auto;
    white-space: nowrap;
    text-align: center;
}

/* Add a horizontal scrollbar for the scrollable columns */
.scrollable-column::-webkit-scrollbar {
    height: 6px;
}

.scrollable-column::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.scrollable-column::-webkit-scrollbar-track {
    background-color: #f8f9fa;
}

/* Ensure the table remains responsive */
.table {
    width: 100%;
    table-layout: fixed;
}

/* Make the scrollable columns horizontally scrollable */
.table-responsive {
    overflow-x: auto; /* Enable horizontal scrolling */
}

/*.scrollable-column {
    min-width: 100px; 
    text-align: center;
    white-space: nowrap; 
}*/

/* Ensure the table remains responsive */
.table {
    width: 100%;
    table-layout: auto; /* Allow columns to adjust dynamically */
}

/* Optional: Add a scrollbar for better UX */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-track {
    background-color: #f8f9fa;
}

/* Sticky columns */
.sticky-column {
    position: sticky;
    left: 0; /* Adjust for the first column */
    background-color: #fff; /* Match the table background */
    z-index: 2; /* Ensure it stays above other columns */
    border-right: 1px solid #ddd; /* Optional: Add a border for separation */
}

.sticky-column:nth-child(2) {
    left: 50px; /* Adjust based on the width of the first column */
}

/* Scrollable table */
.table-responsive {
    overflow-x: auto; /* Enable horizontal scrolling */
}

/* Match List Container */
.quiniela-match-list {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Add spacing between cards */
    margin-top: 1rem;
}

/* Match Card */
.quiniela-match-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #ddd; /* Light border for separation */
    border-radius: 8px; /* Rounded corners */
    background-color: #fff; /* White background */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Team Section */
.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1; /* Equal space for home and away teams */
}

/* Team Name */
.team-name {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

/* Team Score */
.team-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff; /* Blue color for scores */
}

/* VS Label */
.vs-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: #666;
    margin: 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .match-card {
        flex-direction: column; /* Stack teams vertically on smaller screens */
        text-align: center;
    }

    .vs-label {
        margin: 0.5rem 0;
    }
}

#tab1-tab.nav-link.active, #tab2-tab.nav-link.active {
    background-color: #FF312E;
    color: #fff !important;
    border: none;
    border-radius: 0.25rem 0.25rem 0 0;
    padding: 0.5rem 1rem;
    margin-right: 0.25rem;
}

#tab1-tab.nav-link, #tab2-tab.nav-link {
    color: red !important;
    border: none;
    border-radius: 0.25rem 0.25rem 0 0;
    padding: 0.5rem 1rem;
    margin-right: 0.25rem;
}

#tab1-tab.nav-link:hover, .nav-link:focus {
    color: #5a5858;
    border: none;
    border-radius: 0.25rem 0.25rem 0 0;
    padding: 0.5rem 1rem;
    margin-right: 0.25rem;
}

#tab2-tab.nav-link:hover, .nav-link:focus {
    color: #5a5858;
    border: none;
    border-radius: 0.25rem 0.25rem 0 0;
    padding: 0.5rem 1rem;
    margin-right: 0.25rem;
}

.details-text {
    font-style: italic !important;
    color:#666 !important;
    font-size: .7rem !important;
    text-align: left !important;
}

#blazor-error-ui{
    display: none;
}

.required-indicator {
    color: #FF312E;
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.invalid-score {
    border-bottom-color: #FF312E !important;
}