#botao_tabela,
#botao_retrospecto {
	background-color: var(--color2);
	color: var(--color1);
	font-weight: bold;
	cursor: pointer;
	margin: 20px;
	border-radius: 10px;
	height: 100%;
	width: 30%;
	min-height: 50px;
	line-height: 50px;
}

body {
	color: white !important;
}


#myChart {
	padding: 0 100px 60px 100px;

}


.statusBar.naoIniciado {
	background-color: gray;
	color: white;
}

.statusBar.intervalo {
	background-color: yellow;
	color: black;
}


.statusBar.emAndamento {
	background-color: green;
	color: white;
}

.statusBar.finalizado {
	background-color: royalBlue;
	color: white;
}

.statusBar {
	border-radius: 5px !important;
	/* font-weight:bold; */
}

.bandeira {
	height: 40px;
	width: 60px;
}

.bet_alert {
	font-weight: bold;
	color: red;
}

.sortable::after {
	content: '\025BC';
	padding-left: 5px;
}

.sortable {
	cursor: pointer;
}

.sortable.selected {
	background-color: rgba(208, 208, 208, 0.9) !important;
}

li.regras {
	text-align: start;
	text-indent: 90px;
}

ul {
	list-style-position: inside;
	line-height: 1.6;
}

.apostadores {
	max-width: 500px;
}

.apostasRegistradas {

	padding: 5px;
	border-radius: 5px;
	font-size: 1vw;
}

.no-close .ui-dialog-titlebar-close {
	display: none;
}


.team-flag {
	padding: 5px 0 0 0 !important;
}

.score {
	background-color: rgba(208, 208, 208, 0.7) !important;
	color: darkgreen !important;
}

.special-checkbox {
	margin-left: 10px;
	width: 40px;
	height: 40px;
	opacity: 0.7;
}

.see_bets {
	border-radius: 5px;
	border: 2px dotted var(--color2);
	background-color: var(--color2);
	color: var(--color1);
	cursor: pointer;
	padding: 5px;
}

.see_bets_small {
	border-radius: 5px;
	border: 2px dotted gray;
	background-color: gray;
	color: var(--color1);

	padding: 5px;
	font-size: 70%;
}

.grupoPlacar {
	display: flex;
	flex-direction: column;
}

.extra_see_bets {
	display: flex;
	flex-direction: row;
	width: 250px;
	justify-content: space-between;
	align-items: center;
}

td .extra_see_bets {
	margin: 0 auto;
}

.see_bets:hover {
	opacity: 0.5;
}

#tabela-quadros,
#tabela-resultados {
	display: flex;
	flex-direction: column;
	align-content: center;
	flex-wrap: nowrap !important;
}

.zebra:nth-child(even) {
	background-color: #5A5A5A;
}



#tabela-classificacao,
#tabela-detalhes {
	margin: 10px auto;
	border-collapse: separate;
}

#tabela-classificacao th,
#tabela-detalhes th {
	background-color: rgba(208, 208, 208, 0.5);
	/* color: darkgreen; */
	text-align: center;
	font-size: 1em;
	padding: 5px;
}

#tabela-classificacao td,
#tabela-detalhes td {
	/* background-color: rgba(208,208,208,0); */
	/* color:rgba(208,208,208,0.7); */
	text-align: center;
	font-size: 1em;
	padding: 5px;
	/* box-shadow: 2px 2px 5px #D0D0D0; */
}

.border-cell-right {
	border-radius: 0 10px 10px 0;
}

.border-cell-left {
	border-radius: 10px 0 0 10px;
}

.highlight {
	background-color: gold;
}

.red {
	background-color: rgba(0, 0, 0, 0.05);
}

.green {
	background-color: rgba(0, 255, 0, 0.2) !important;
}

[class*="medal_bg"] .medalha {
	filter: brightness(50);

}

[class*="medal_bg"] a {
	color: white;
	text-decoration: underline;

}

#nome_aposta {
	font-size: 2em;
	color: white;
	font-weight: bold;
	padding-bottom: 60px;
	padding-top: 30px;
	text-align: center;

}

.gold_medal_bg {
	background-color: rgba(252, 204, 18, 1);
	color: white;
}

.silver_medal_bg {
	background-color: rgba(122, 129, 131, 1);
	color: white;
}

.bronze_medal_bg {
	background-color: rgba(134, 107, 66, 1);
	color: white;
}

.select2-selection,
.select2-selection__rendered,
.select2-selection__rendered span,
.select2-results__option {
	/* height:50px !important; */
	min-height: 50px !important;
	line-height: 50px;
	font-size: 1em;
	text-align: center;
	color: black !important;
	/* border: none !important; */
}

.select2-selection__rendered span span {
	display: flex;
	/* vertical-align: middle; */
	padding-left: 10px;
	align-content: center;
	justify-content: center;
	/* line-height: normal; */
}

.select2-selection__rendered span {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;

}

.bandeiraSelect {
	height: 40px;
}

.selectPaises,
.selectEsportes,
input[type='number'],
.customInput {
	width: 250px;
}


input[type='number'],
.customInput {
	border: solid 1px gray;
	border-radius: 5px;
	height: 50px;
	padding: 0 10px;
	box-sizing: border-box;
	font-size: 1em;
	text-align: center;
}

#final {
	height: 60px;
}

.botaoConfirmar,
.botaoConfirmarTodos {
	color: gray;
	background-color: rgba(0, 0, 0, 0);
	cursor: default;
	padding: 0;
}

.botaoReminder {
	color: var(--color1);
	background-color: var(--color2);
	cursor: pointer;
	border-radius: 5px;
	padding: 3px;
}

.botaoConfirmar:hover,
.botaoConfirmarTodos:hover {
	opacity: 1;
}

.botaoConfirmar.habilitado,
.botaoConfirmarTodos.habilitado,
.botaoConfirmar.habilitadoExtra {
	color: white;
	cursor: pointer;
	background-color: green;
	border-radius: 5px;
	padding: 3px;
}

.buttonHolder {
	display: table;
}

.confirmText {
	vertical-align: middle;
	font-weight: bold;
}

.botaoConfirmar.erro {
	color: red;
	cursor: pointer;
}

.botaoConfirmarTodos {
	color: white;
}



.botaoConfirmar.habilitado:hover,
.botaoConfirmar.erro:hover,
.botaoConfirmar.habilitadoExtra:hover {
	opacity: 0.5;
}

#regras {
	color: white;
	font-size: 120%;
	margin: 20px;
}

.regras a {
	color: mistyrose;
}

#regras p {
	padding: 0.8rem 0.8rem 0 0.8rem;
	text-align: left;
	text-indent: 3rem;
	text-align: justify;
	hyphens: auto;
}

#regras .doubleindent {
	text-indent: 5rem;

}

#regras .tripleindent {
	text-indent: 7rem;

}

#regras .low-padding {
	padding-top: 0;
	padding-bottom: 0;
}

.blueButton {
	color: royalBlue;
}

.country_name {
	display: inline !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	background: transparent !important;
	width: auto !important;
	height: auto !important;
	box-shadow: none !important;
}

.equis {
	margin: 5px;
	font-weight: bold;
}

.link-retrospecto {
	color: inherit !important;
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.link-retrospecto:hover {
	color: #2ecc71 !important;
	text-decoration: underline;
	opacity: 0.8;
}

.mobile-only-result {
	display: none !important;
}

.desktop-only-result {
	display: inline-block !important;
}

.pagination_link {
	background-color: white;
	color: #808080;
	font-size: 1.25rem;
	padding: 0.5rem;

}

.pagination_link:disabled {
	color: lightgray;
	cursor: default;
}

.pagination {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	visibility: visible;
	min-height: 60px;
	list-style: none;
	font-size: 1.25rem;
}

.pagination li {
	float: left;
}

#activePage a,
.pagination > .active > a {
	color: var(--color3) !important;
	background-color: var(--color2) !important;
	border-radius: 5px !important;
}

.pagination > li > a,
.pagination > li > span {
	color: gray !important;
	float: left;
	padding: 10px 18px !important;
	text-decoration: none !important;
	font-size: 1.25rem !important;
	font-weight: 700 !important;
}

.pagination a:active,
.pagination > li > a:active {
	color: var(--color2) !important;
}


@media only screen and (max-width: 600px) {
  /* Force table, tbody, tr, td to behave like blocks */
  #tabela-classificacao,
  #tabela-classificacao tbody,
  #tabela-classificacao tr,
  #tabela-classificacao td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Keep details table text aligned right on mobile */
  #tabela-detalhes td {
    text-align: right !important;
  }

  /* Hide table header but keep accessible */
  #tabela-classificacao thead {
    display: none !important;
  }

  /* Style each table row as a card */
  #tabela-classificacao tbody tr {
    background: rgba(15, 15, 25, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    margin-bottom: 20px !important;
    padding: 16px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
    text-align: left !important;
  }

  #tabela-classificacao tbody tr:hover {
    transform: translateY(-2px) !important;
    background: rgba(20, 20, 32, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
  }

  /* Individual td styling in Card */
  #tabela-classificacao td:not(.statusBar) {
    padding: 8px 0 !important;
    border: none !important;
    background: transparent !important;
    text-align: right !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.95rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  /* Style status bar cells as full-width colored badges */
  #tabela-classificacao td.statusBar {
    padding: 8px 12px !important;
    border: none !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 8px !important;
    margin: 6px 0 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    border-bottom: none !important;
  }

  #tabela-classificacao td.statusBar:before {
    content: none !important;
  }

  /* Reset absolute positioning from base template to prevent overlapping */
  #tabela-classificacao td:before {
    position: static !important;
    width: auto !important;
    text-align: left !important;
    padding-right: 0 !important;
    display: inline-block !important;
  }

  #tabela-classificacao td:last-child {
    border-bottom: none !important;
  }

  /* Phase & Group block - Top of the Card */
  #tabela-classificacao td.fase {
    order: -2 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    color: var(--accent-hover, #a51d45) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding-bottom: 8px !important;
    margin-bottom: 4px !important;
  }

  /* Group column */
  #tabela-classificacao td:nth-child(3) {
    order: -1 !important;
  }
  .pt #tabela-classificacao td:nth-child(3):before { content: "Grupo / Partida:"; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; }
  .en #tabela-classificacao td:nth-child(3):before { content: "Group / Match ID:"; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; }
  .es #tabela-classificacao td:nth-child(3):before { content: "Grupo / Partido:"; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; }

  /* Match Date */
  #tabela-classificacao td:nth-child(2) {
    order: 1 !important;
  }
  /* Default match date label (PT fallback) */
  #tabela-classificacao td:nth-child(2):not([colspan]):before { content: "Data do Jogo:" !important; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; }
  .en #tabela-classificacao td:nth-child(2):not([colspan]):before { content: "Match Date:" !important; }
  .es #tabela-classificacao td:nth-child(2):not([colspan]):before { content: "Fecha del Partido:" !important; }

  /* Bet Limit Deadline */
  #tabela-classificacao td:nth-child(1) {
    order: 2 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding-bottom: 10px !important;
    margin-bottom: 6px !important;
  }
  /* Default deadline label (PT fallback) */
  #tabela-classificacao td:nth-child(1):before { content: "Fechamento:" !important; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; }
  .en #tabela-classificacao td:nth-child(1):before { content: "Deadline:" !important; }
  .es #tabela-classificacao td:nth-child(1):before { content: "Cierre:" !important; }

  /* Horizontal Match layout using CSS Grid on unwrapped elements */
  .partida_copa {
    order: 3 !important;
    display: grid !important;
    grid-template-columns: 1fr 44px auto 44px 1fr !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    justify-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px 8px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    margin-bottom: 6px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Team A Elements (Left side of card) */
  .partida_copa > img.team_a_flag {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 32px !important;
    height: 22px !important;
    border-radius: 4px !important;
    object-fit: cover !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    margin: 0 !important;
    justify-self: center !important;
  }

  .partida_copa > span.team_a_name {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    font-size: 0.75rem !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    color: white !important;
    justify-self: center !important;
  }
  
  .partida_copa > span.team_a_name a {
    color: white !important;
    text-decoration: none !important;
    border-bottom: none !important;
  }

  /* Scores and Separator (Center of card) */
  .partida_copa > input.score_a {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    justify-self: center !important;
    width: 44px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    border: 1.5px solid #cccccc !important;
    color: #1a1a2e !important;
    padding: 0 !important;
  }

  .partida_copa > input.score_a:focus {
    border-color: var(--accent-color) !important;
    background: #ffffff !important;
  }

  .partida_copa > .match_separator {
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    justify-self: center !important;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 0 !important;
  }

  .partida_copa > input.score_b {
    grid-column: 4 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    justify-self: center !important;
    width: 44px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    border: 1.5px solid #cccccc !important;
    color: #1a1a2e !important;
    padding: 0 !important;
  }

  .partida_copa > input.score_b:focus {
    border-color: var(--accent-color) !important;
    background: #ffffff !important;
  }

  /* Closed match/bet look (grupoPlacar wrapper) */
  .partida_copa > .closed_match_score {
    grid-column: 2 / span 3 !important;
    grid-row: 1 / span 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    align-self: center !important;
    justify-self: center !important;
  }

  .partida_copa > .closed_match_score .see_bets {
    padding: 6px 12px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    background: var(--accent-color, #8a1538) !important;
    color: white !important;
    border: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  .partida_copa > .closed_match_score .see_bets_small {
    font-size: 0.75rem !important;
    color: rgba(255,255,255,0.7) !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    white-space: nowrap !important;
  }

  /* Results page match score badge / X text */
  .partida_copa > .results_match_score {
    grid-column: 2 / span 3 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    justify-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  .partida_copa > a.results_match_score {
    padding: 6px 14px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    background: var(--accent-color, #8a1538) !important;
    color: white !important;
    border: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
  }

  /* Team B Elements (Right side of card) */
  .partida_copa > span.team_b_name {
    grid-column: 5 !important;
    grid-row: 2 !important;
    width: 100% !important;
    font-size: 0.75rem !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    color: white !important;
    justify-self: center !important;
  }
  
  .partida_copa > span.team_b_name a {
    color: white !important;
    text-decoration: none !important;
    border-bottom: none !important;
  }

  .partida_copa > img.team_b_flag {
    grid-column: 5 !important;
    grid-row: 1 !important;
    width: 32px !important;
    height: 22px !important;
    border-radius: 4px !important;
    object-fit: cover !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    margin: 0 !important;
    justify-self: center !important;
  }

  /* Extra predictions (Champ/Runner-up) display */
  #tabela-classificacao td[colspan] {
    order: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    gap: 8px !important;
    text-align: left !important;
  }

  #tabela-classificacao select.selectPaises {
    width: 100% !important;
  }

  .extra_see_bets {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button Holder (Confirm button / status action) */
  .buttonHolder {
    order: 4 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 8px !important;
  }
  .pt .buttonHolder:before { content: "Ação:"; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; }
  .en .buttonHolder:before { content: "Action:"; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; }
  .es .buttonHolder:before { content: "Acción:"; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; }

  /* Confirm button styling */
  .botaoConfirmar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: pointer !important;
    min-height: 36px !important;
  }
  .botaoConfirmar .material-icons {
    font-size: 24px !important;
    margin: 0 !important;
  }
  .botaoConfirmar.blueButton {
    color: #4facfe !important;
    border-color: rgba(79, 172, 254, 0.3) !important;
  }
  .botaoConfirmar.habilitado,
  .botaoConfirmar.habilitadoExtra {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3) !important;
  }

  /* Points column */
  #tabela-classificacao td:nth-child(7) {
    order: 5 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
  }
  .pt #tabela-classificacao td:nth-child(7):before { content: "Pontos:"; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; }
  .en #tabela-classificacao td:nth-child(7):before { content: "Points:"; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; }
  .es #tabela-classificacao td:nth-child(7):before { content: "Puntos:"; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; }
  
  .pt #tabela-classificacao td.order-meter:before { content: "Apostas:" !important; }
  .en #tabela-classificacao td.order-meter:before { content: "Bets:" !important; }
  .es #tabela-classificacao td.order-meter:before { content: "Apuestas:" !important; }

  /* In Resultados Page: column 6 is Status / Result detail link, column 7 is points */
  #tabela-classificacao td:nth-child(6):not(.buttonHolder) {
    order: 4 !important;
  }
  .pt #tabela-classificacao td:nth-child(6):not(.buttonHolder):before { content: "Resultado:"; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; }
  .en #tabela-classificacao td:nth-child(6):not(.buttonHolder):before { content: "Result:"; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; }
  .es #tabela-classificacao td:nth-child(6):not(.buttonHolder):before { content: "Resultado:"; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; }

  /* Toolbar registered bets count responsive design */
  #toolbar {
    visibility: visible !important;
  }

  .apostasRegistradas {
    font-size: 0.85rem !important;
    padding: 5px 12px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap !important; /* Prevents numbers from wrapping vertically */
    display: inline-block !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  }

  .toolbar-label {
    display: none !important; /* Hide label text on mobile, keep only numbers */
  }

  .mobile-only-result {
    display: inline-block !important;
  }
  
  .desktop-only-result {
    display: none !important;
  }

  /* Pagination button styles on mobile */
  .pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
  }

  .pagination li {
    float: none !important;
    display: inline-block !important;
  }

  .pagination > li > span {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 700 !important;
    margin-right: 10px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
  }

  .pagination > li > a {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important; /* Round page buttons */
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    text-decoration: none !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
  }

  .pagination > li > a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
  }

  .pagination > .active > a,
  .pagination > .active > a:hover,
  .pagination > .active > a:focus {
    background: linear-gradient(135deg, var(--accent-color, #8a1538), var(--accent-hover, #a51d45)) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(138, 21, 56, 0.3) !important;
  }
}


#button_wrapper {
	display: flex;
	flex-direction: row;
	width: 100%;
	justify-content: center;
}

.order-meter {
	display: flex;
	flex-direction: column;
	align-items: center;
	align-content: flex-start;
}

/* Responsive Floating Action Button for Confirming All Bets */
.btn-floating-confirm {
	position: fixed;
	bottom: 60px; /* Fallback */
	z-index: 1000;
	display: none; /* Controlled by JS */
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #2ecc71, #27ae60);
	color: white;
	border: none;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	outline: none;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Desktop: Compact pill-shaped floating action button holding icon and text */
@media only screen and (min-width: 601px) {
	.btn-floating-confirm {
		right: 30px !important;
		bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
		padding: 10px 20px !important;
		font-family: inherit;
		font-weight: bold;
		font-size: 0.9rem;
		border-radius: 30px !important;
		box-shadow: 0 6px 15px rgba(39, 174, 96, 0.3);
		width: auto !important;
		height: auto !important;
	}
	.btn-floating-confirm .material-icons {
		margin-right: 8px !important;
		font-size: 1.3rem !important;
		transition: transform 0.3s ease;
	}
}

/* Mobile: Elegant compact circular bubble holding only icon */
@media only screen and (max-width: 600px) {
	.btn-floating-confirm {
		right: 20px !important;
		bottom: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
		width: 56px !important;
		height: 56px !important;
		border-radius: 50% !important;
		padding: 0 !important;
		box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4) !important;
	}
	.btn-floating-confirm .btn-text {
		display: none !important; /* Hide label on mobile */
	}
	.btn-floating-confirm .material-icons {
		margin: 0 !important;
		font-size: 28px !important;
	}
}

.btn-floating-confirm:hover {
	transform: scale(1.06) translateY(-3px);
	box-shadow: 0 12px 25px rgba(39, 174, 96, 0.6);
	background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.btn-floating-confirm:hover .material-icons {
	transform: scale(1.15) rotate(-5deg);
}

.btn-floating-confirm:active {
	transform: scale(0.98) translateY(0);
	box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

/* Animations for show/hide */
@keyframes fadeInUpFloating {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.btn-floating-confirm.show-floating {
	animation: fadeInUpFloating 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Table Header Sticky Styling for Desktop */
@media only screen and (min-width: 601px) {
	#tabela-classificacao th {
		position: sticky;
		top: 40px;
		z-index: 20;
		background-color: var(--color2) !important;
		color: var(--color1) !important;
		box-shadow: 0 2px 8px rgba(0,0,0,0.15);
		border-bottom: 2px solid var(--color1) !important;
	}
}

/* Custom Premium Modals */
.custom-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(5px);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.custom-modal-overlay.show {
	opacity: 1;
	pointer-events: auto;
}

.custom-modal-card {
	background: #1e293b; /* Sleek slate-dark background */
	color: #f8fafc;
	border-radius: 16px;
	padding: 24px;
	width: 90%;
	max-width: 420px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transform: scale(0.9);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	text-align: center;
}

.custom-modal-overlay.show .custom-modal-card {
	transform: scale(1);
}

.custom-modal-header {
	margin-bottom: 16px;
}

.custom-modal-header .custom-modal-icon {
	font-size: 48px;
	color: #ef4444; /* Vivid red for error */
	margin-bottom: 8px;
	display: inline-block;
}

.custom-modal-header.warning .custom-modal-icon {
	color: #f59e0b; /* Vivid orange for warning */
}

.custom-modal-header.success .custom-modal-icon {
	color: #10b981; /* Vivid green for success */
}

.custom-modal-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0;
}

.custom-modal-body {
	margin-bottom: 24px;
}

.custom-modal-message {
	font-size: 0.95rem;
	line-height: 1.5;
	color: #cbd5e1;
	margin: 0;
}

.custom-modal-footer {
	display: flex;
	justify-content: center;
	gap: 12px;
}

.custom-modal-btn {
	padding: 10px 24px;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.custom-modal-btn.btn-ok {
	background-color: #ef4444;
	color: white;
}

.custom-modal-btn.btn-ok:hover {
	background-color: #dc2626;
	transform: translateY(-1px);
}

.custom-modal-btn.btn-no {
	background-color: #475569;
	color: #f1f5f9;
}

.custom-modal-btn.btn-no:hover {
	background-color: #334155;
}

.custom-modal-btn.btn-yes {
	background-color: #f59e0b;
	color: white;
}

.custom-modal-btn.btn-yes:hover {
	background-color: #d97706;
	transform: translateY(-1px);
}

/* Make confirmed/saved blue buttons unclickable */
.botaoConfirmar.blueButton {
	pointer-events: none !important;
	cursor: default !important;
}

/* Desktop layout improvements for match rows & respuestas page */
@media only screen and (min-width: 601px) {
  /* Spacing and layout for matches in Resultados and Apostas */
  .partida_copa {
    vertical-align: middle !important;
    text-align: center !important;
    padding: 8px 10px !important;
    white-space: nowrap !important;
  }
  
  .partida_copa > * {
    vertical-align: middle !important;
    display: inline-block !important;
    float: none !important;
  }
  
  .partida_copa > img.bandeira {
    width: 44px !important;
    height: 28px !important;
    border-radius: 4px !important;
    object-fit: cover !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    margin: 0 8px !important;
  }

  .partida_copa > .country_name {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    min-width: 140px !important;
    display: inline-block !important;
    margin: 0 8px !important;
  }

  .partida_copa > .country_name a {
    color: white !important;
    text-decoration: none !important;
  }

  .partida_copa > .country_name a:hover {
    text-decoration: underline !important;
  }

  .partida_copa > .team_a_name {
    text-align: right !important;
  }

  .partida_copa > .team_b_name {
    text-align: left !important;
  }

  .partida_copa > input.score_a,
  .partida_copa > input.score_b {
    width: 46px !important;
    height: 34px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: 6px !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    color: #1a1a2e !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    margin: 0 4px !important;
  }

  .partida_copa > .match_separator {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: rgba(255,255,255,0.6) !important;
    margin: 0 4px !important;
  }

  .partida_copa > .closed_match_score {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 8px !important;
  }

  .partida_copa > .closed_match_score .see_bets {
    padding: 4px 10px !important;
    font-size: 0.95rem !important;
  }

  .partida_copa > .closed_match_score .see_bets_small {
    padding: 4px 8px !important;
    font-size: 0.85rem !important;
  }

  .partida_copa > .results_match_score {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 8px !important;
  }

  .partida_copa > a.results_match_score {
    padding: 4px 12px !important;
    font-size: 0.95rem !important;
  }

  /* Spacing and centering on the tables using #tabela-classificacao */
  #tabela-classificacao th,
  #tabela-classificacao td {
    padding: 12px 14px !important;
    vertical-align: middle !important;
  }

  #tabela-classificacao td * {
    vertical-align: middle !important;
  }

  #tabela-classificacao td select.selectPaises,
  #tabela-classificacao td select.selectEsportes,
  #tabela-classificacao td input {
    margin: 4px auto !important;
    display: inline-block !important;
  }

  #tabela-classificacao td .select2-container {
    margin: 0 auto !important;
    text-align: left !important;
  }

  /* Button alignment */
  .botaoConfirmar {
    padding: 4px 8px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}