@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
	--glass-bg: rgba(255, 255, 255, 0.08);
	--glass-border: rgba(255, 255, 255, 0.15);
	--glass-hover: rgba(255, 255, 255, 0.15);
	--primary-color: #00e676;
	/* Vibrant green */
}

body {
	font-family: 'Inter', sans-serif;
	background: linear-gradient(rgba(10, 15, 30, 0.85), rgba(10, 15, 30, 0.95)), url("../img/fundo.webp") no-repeat center center fixed;
	background-size: cover;
	color: #FFF;
	margin: 0;
	padding: 0;
}

.bgpreto {
	background-color: rgba(0, 0, 0, 0.4) !important;
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--glass-border);
	color: #FFF;
}

.titulo {
	padding: 20px;
	line-height: 45px;
	letter-spacing: 2px;
	font-weight: 300;
}

.text-verde {
	color: var(--primary-color);
	font-weight: 600;
}

.text-preto {
	color: #333;
}

.formulario {
	padding-top: 45px;
}

.login .form-group {
	padding-left: 20px;
}

.login input.form-control {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid var(--glass-border);
	color: #fff;
	border-radius: 8px;
}

.login input.form-control::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.login .btn-primary,
.formulario .btn-primary {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	color: #000;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.login .btn-primary:hover,
.formulario .btn-primary:hover {
	background-color: #00c853;
	border-color: #00c853;
	transform: translateY(-2px);
}

/* Formulário de Cadastro */
.formulario input.form-control {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid var(--glass-border);
	color: #fff;
	border-radius: 8px;
}

.formulario input.form-control:focus {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	box-shadow: 0 0 0 0.2rem rgba(0, 230, 118, 0.25);
	border-color: var(--primary-color);
}

/* Menus e Navegação Interna */
#menu {
	text-align: center;
	margin-bottom: 20px;
}

#menu ul {
	padding: 0;
	margin: 0;
	background-color: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(10px);
	border-radius: 0 0 15px 15px;
	list-style: none;
	display: inline-block;
	border: 1px solid var(--glass-border);
	border-top: none;
}

#menu ul li {
	display: inline-block;
}

#menu ul li a {
	padding: 15px 25px;
	display: inline-block;
	color: #FFF;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s;
}

#menu ul li a:hover {
	background-color: var(--glass-hover);
	color: var(--primary-color);
	border-radius: 10px;
}

/* Abas (Tabs) */
.nav-tabs {
	border-bottom: none;
	display: flex;
	justify-content: center;
}

.nav-tabs .nav-link {
	background-color: var(--glass-bg);
	border: 1px solid var(--glass-border);
	color: #FFF;
	margin: 0 5px;
	border-radius: 8px 8px 0 0;
	transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
	background-color: var(--glass-hover);
	border-color: var(--glass-border);
}

.nav-tabs .nav-link.active {
	background-color: rgba(0, 0, 0, 0.5) !important;
	border-color: var(--primary-color) !important;
	border-bottom-color: transparent !important;
	color: var(--primary-color) !important;
}

.tab-content {
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(10px);
	border: 1px solid var(--glass-border);
	border-radius: 12px;
	min-height: 400px;
	color: #FFF;
	padding: 20px;
}

.jogos {
	width: 100%;
	background: transparent;
	display: table;
}

/* Cards de Jogo */
.resu {
	float: left;
}

.dentro {
	background: var(--glass-bg);
	backdrop-filter: blur(8px);
	border: 1px solid var(--glass-border);
	margin: 10px;
	padding: 15px;
	border-radius: 12px;
	transition: transform 0.2s, box-shadow 0.2s;
	min-height: 195px;
}

.dentro:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
	border-color: rgba(255, 255, 255, 0.3);
}

.cabecalho {
	width: 100%;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: #aaa;
	margin-bottom: 10px;
}

.lband {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.band {
	flex: 1;
	text-align: center;
}

.band strong {
	font-size: 12px;
	margin-top: 5px;
	display: block;
}

.bandeira {
	border: 1px solid rgba(255, 255, 255, 0.5);
	/*border-radius: 50%;*/
	border-radius: 10px 10px 10px 10px;
	/*width: 45px;*/
	width: 65px;
	height: 45px;
	object-fit: cover;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Inputs de resultado */
.resultado input,
.resultado1 input {
	background: rgba(0, 0, 0, 0.4) !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	color: #FFF !important;
	text-align: center;
	font-size: 1.2rem;
	font-weight: bold;
	border-radius: 8px;
	width: 50px;
	margin: 0 auto;
}

.resultado input:focus,
.resultado1 input:focus {
	border-color: var(--primary-color) !important;
	box-shadow: 0 0 5px rgba(0, 230, 118, 0.5) !important;
}

.rodape {
	width: 100%;
	text-align: center;
	margin-top: 15px;
}

.rodape .btn-outline-success {
	color: var(--primary-color);
	border-color: var(--primary-color);
	border-radius: 20px;
	padding: 5px 20px;
}

.rodape .btn-outline-success:hover {
	background-color: var(--primary-color);
	color: #000;
}

/* Placares e Rankings */
.fundo {
	background-color: var(--glass-bg);
	backdrop-filter: blur(10px);
	border: 1px solid var(--glass-border);
	width: 100%;
	max-width: 800px;
	padding: 30px;
	margin: 0 auto;
	border-radius: 15px;
	color: #FFF;
}

.placar {
	margin-top: 20px;
	color: #FFF;
	width: 100%;
}

.placar th {
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding: 10px;
	color: var(--primary-color);
}

.placar td {
	padding: 12px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quem {
	color: var(--primary-color);
	font-weight: 700;
}

.coroa {
	transform: rotate(-30deg);
	margin-top: -15px;
	margin-right: 5px;
}

/* Tabelas Genéricas */
.table {
	background-color: var(--glass-bg) !important;
	backdrop-filter: blur(10px);
	color: #FFF !important;
	border-radius: 12px;
	overflow: hidden;
}

.table th {
	border-top: none !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
	color: var(--primary-color);
}

.table td {
	border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* DataTables Override */
.dataTables_wrapper {
	color: #FFF !important;
}

.dataTables_length select,
.dataTables_filter input {
	background-color: rgba(0, 0, 0, 0.3);
	color: #FFF;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 5px;
	padding: 5px;
}

.dataTables_info,
.dataTables_paginate {
	color: #FFF !important;
	margin-top: 15px;
}

.paginate_button {
	color: #FFF !important;
}

#fantasma {
	position: fixed;
	left: 50%;
	top: 100%;
	display: none;
	z-index: 9999;
}

@media (max-width: 768px) {
	.resu {
		width: 100%;
	}

	.dentro {
		min-height: auto;
		padding: 10px;
		margin: 10px 0;
	}

	.lband {
		gap: 3px;
		justify-content: space-between;
	}

	.band:not(.resultado):not(.resultado1) {
		flex: 1 1 35%;
		max-width: 35%;
		word-break: break-word;
	}

	.resultado,
	.resultado1 {
		flex: 0 0 15%;
		max-width: 15%;
	}

	.bandeira {
		width: 32px;
		height: 32px;
	}

	.band strong {
		font-size: 0.75rem;
		margin-top: 4px;
	}

	.resultado input,
	.resultado1 input {
		width: 100%;
		max-width: 45px;
		padding: 4px 0;
		font-size: 1rem;
	}

	.container-fluid {
		margin-top: 35px;
	}

	#menu ul li {
		min-width: 40%;
		text-align: center;
	}
}

html,
body {
	margin: 0;
	padding: 0;
	background: #000;
}

body {
	padding-top: env(safe-area-inset-top);
	padding-bottom: env(safe-area-inset-bottom);
}

.top-safe {
	height: env(safe-area-inset-top);
	background: #000;
}

/* Modal de Instalação (PWA) */
.install-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 10000;
	/* Above Bootstrap and OneSignal */
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.install-modal-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.install-modal-content {
	background: rgba(15, 23, 42, 0.92);
	border: 1px solid var(--glass-border);
	border-radius: 16px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	width: 90%;
	max-width: 500px;
	padding: 25px;
	position: relative;
	text-align: center;
	transform: translateY(30px);
	transition: transform 0.3s ease;
}

.install-modal-overlay.active .install-modal-content {
	transform: translateY(0);
}

.install-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.6);
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	transition: color 0.2s;
}

.install-modal-close:hover {
	color: #fff;
}

.install-modal-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-top: 5px;
	margin-bottom: 8px;
}

.install-modal-subtitle {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 20px;
	line-height: 1.4;
}

/* Opções de escolha do OS */
.install-options-container {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin: 20px 0;
}

.install-option-card {
	flex: 1;
	max-width: 150px;
	padding: 20px 15px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--glass-border);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.install-option-card:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--primary-color);
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 230, 118, 0.2);
}

.install-option-card svg {
	width: 55px;
	height: 55px;
	transition: transform 0.3s ease;
}

.install-option-card:hover svg {
	transform: scale(1.1);
}

.install-option-label {
	font-weight: 600;
	font-size: 1rem;
	color: #fff;
}

/* Container do Video do Youtube */
.install-video-container {
	display: none;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.install-video-container.active {
	display: flex;
}

.install-video-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	/* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
	width: 100%;
	border-radius: 10px;
	border: 1px solid var(--glass-border);
	background: #000;
	margin-bottom: 15px;
}

.install-video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.install-back-btn {
	background: none;
	border: 1px solid var(--glass-border);
	color: rgba(255, 255, 255, 0.7);
	padding: 6px 15px;
	border-radius: 20px;
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.2s;
	margin-top: 5px;
}

.install-back-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
}

/* Checkbox Não mostrar novamente */
.install-dismiss-check {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	user-select: none;
}

.install-dismiss-check input[type="checkbox"] {
	cursor: pointer;
	accent-color: var(--primary-color);
	width: 14px;
	height: 14px;
}


/*Check Atualizar Stylizado*/
/* Caixa para o marcador */
#atualiza_automatico {
	appearance: none;
	position: relative;
	/* Tamanho */
	width: 1.125rem;
	height: 1.125rem;
	/* Cor do fundo e borda */
	background-color: #fff;
	border: 0.125rem solid #ccc;
	border-radius: 0.25rem;
}

/* Características do marcador */
#atualiza_automatico::before {
	content: "";
	/* Posicionar no meio */
	position: absolute;
	top: 50%;
	left: 50%;
	/* Tamanho do marcador */
	width: 0.75rem;
	height: 0.75rem;
	/* Formato do marcador */
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
	/* Posicionar no meio */
	transform: translate(-50%, -50%) scale(0);
	transform-origin: center;
	transition: 0.125s transform ease-in-out;
	/* Cor do marcador */
	box-shadow: inset 1rem 1rem #fff;
}

/* Cor da caixa para o marcador */
#atualiza_automatico:checked {
	background-color: #00e676;
	border-color: #00e676;
}

/* Características do marcador quando selecionado */
#atualiza_automatico:checked::before {
	transform: translate(-50%, -50%) scale(1);
}

/* Características do marcador quando selecionado */
#atualiza_automatico:disabled {
	opacity: 0.25;
}

#atualiza_automatico:focus {
	border-color: #00e676;
}

#atualiza_automatico:focus+label {
	color: #00e676;
}