:root {
    --primary: #0066b3; /* Azul FIFA */
    --secondary: #d4af37; /* Dourado */
    --accent: #009639; /* Verde gramado */
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --danger: #e63946;
    --success: #2a9d8f;
    --field-green: #2e8b57;
    --cor-fundo-principal: white;
    --cor-fundo-secundaria: whitesmoke;
    --cor-fundo-cabecalho-tabelas: #90EE90;
    --cor-principal: white;
    --cor-secundaria: #bcc0d2;
    --cor-cabecalho-tabelas: black;
    --cor-botoes: #fefefe;
    --cor-textos: #811439;
    --cor-fonte-principal: #8d1b3d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* CABEÇALHO */
#cabecalho {
    background: linear-gradient(to right, var(--primary) 0%, var(--dark) 100%);
    padding: 15px 0;
    text-align: center;
    border-bottom: 5px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    width: 100%;
}

.titulo-cabecalho {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 5px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.titulo-cabecalho:first-child {
    font-size: 1.2rem;
    color: var(--secondary);
}

.titulo-cabecalho:last-child {
    font-size: 1.8rem;
    color: white;
    margin-top: 10px;
}

#campeao {
    height: 80px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="80" viewBox="0 0 100 80"><path d="M50,10 L60,30 L82,33 L65,50 L70,72 L50,62 L30,72 L35,50 L18,33 L40,30 Z" fill="%23d4af37" opacity="0.7"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    margin: 10px auto;
}

/* MENU DE OPÇÕES */
#opcoes {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--secondary);
}

#opcoes::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--accent), var(--secondary));
}

#opcoes-telas {
    padding: 10px;
    max-height: 70vh;
    overflow-y: auto;
}

#opcoes-telas ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

#opcoes-telas li {
    border-radius: 10px;
    transition: all 0.3s;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

#opcoes-telas li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#opcoes-telas a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    padding: 15px 10px;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
}

#opcoes-telas a:hover {
    background-color: rgba(0, 102, 179, 0.1);
}

#opcoes-telas img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    filter: brightness(0.8);
    transition: all 0.3s;
}

#opcoes-telas a:hover img {
    filter: brightness(1) sepia(1) hue-rotate(180deg) saturate(5);
    transform: scale(1.1);
}

#opcoes-telas br {
    display: none;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#opcoes-telas li {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

#opcoes-telas li:nth-child(1) { animation-delay: 0.1s; }
#opcoes-telas li:nth-child(2) { animation-delay: 0.2s; }
#opcoes-telas li:nth-child(3) { animation-delay: 0.3s; }
#opcoes-telas li:nth-child(4) { animation-delay: 0.4s; }
#opcoes-telas li:nth-child(5) { animation-delay: 0.5s; }
#opcoes-telas li:nth-child(6) { animation-delay: 0.6s; }
#opcoes-telas li:nth-child(7) { animation-delay: 0.7s; }
#opcoes-telas li:nth-child(8) { animation-delay: 0.8s; }
#opcoes-telas li:nth-child(9) { animation-delay: 0.9s; }
#opcoes-telas li:nth-child(10) { animation-delay: 1.0s; }
#opcoes-telas li:nth-child(11) { animation-delay: 1.1s; }

/* Scrollbar personalizada */
#opcoes-telas::-webkit-scrollbar {
    width: 8px;
}

#opcoes-telas::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#opcoes-telas::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

#opcoes-telas::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.item-selecionado { background-color: beige !important;}

/* RODAPÉ */
#rodape {
    background-color: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 15px;
    bottom: 0;
    width: 100%;
    font-size: 0.9rem;
    border-top: 3px solid var(--secondary);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 750px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    background: linear-gradient(to right, var(--primary), var(--dark));
    color: white;
    padding: 15px;
    position: relative;
}

.modal-header .close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    color: var(--dark);
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #eee;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-default {
    background-color: #f0f0f0;
    color: #333;
}

.btn-default:hover {
    background-color: #e0e0e0;
}



@font-face {
  font-family: "Open Sans";
  src: url("../css/fontes/OpenSans-Light.ttf") format("truetype");
}

html {margin: 0 auto;font-family:Open Sans, Arial, Helvetica, sans-serif, Arial MT Black;overflow-y: auto;}
a {text-decoration:none;}
ul li {list-style: none;}
table {border-collapse:collapse;overflow-x:auto; width:100%;}
table thead td {background-color: var(--cor-fundo-cabecalho-tabelas); color: var(--cor-cabecalho-tabelas);}

p {margin:10px;padding:0;}
body { width: 100%; margin:auto; background-image: linear-gradient( var(--cor-fundo-gradiente-1), var(--cor-fundo-gradiente-2), var(--cor-fundo-gradiente-3)); color: var(--cor-fonte-principal);}
select {font-size: 1em; border-block-color: black;}
input[type="number"] { width:80px; height:50px; text-align: center; display: inherit; color:red;}

#geral, #conteudo, #rodape {display:block;font-size:16px;width:100%;}
#geral {background-color: var(--cor-fundo-principal); }
#barraSuperior p {text-align:center;background-color:var(--cor-principal);font-size:2em;}
#barraSuperior p img {width:100%;}
#sairPerfil a img {width:50px;}
#rodape p {text-align:center;}
#msg {font-size:1.2em;color:red;}
#escudos-times {margin:0;padding:0;}
#escudos-times li {list-style:none;float:left;}
#escudos-times li img {width:100%;}
.corPar {background-color: var(--cor-fundo-principal);}
.corImpar {background-color: var(--cor-fundo-secundaria);}
.faltouPreenchimento {color: #FF0000;border-color: #FF0000;}
.imagemPerfilPontuacao, .imagemEscudoPontuacao {width:50px;}
.gols-time {font-size:1.3em;color:#00ff00;}
.gols-em-andamento {font-size:1.3em;color:#ffa500;}
.oculto {display:none;}
.titulo-cabecalho {font-size:2em; text-align: center; color: var(--cor-textos);}
.titulo {font-size:1.2em; text-align: left; margin: 0.5em 0 0.5em 0; border-bottom: 1px solid var(--cor-fundo-secundaria);}
.data { width:200px;}
.nomeApostador {font-weight: 500}
.nomeApostador b {color:red;}
/*

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

@media only screen and (max-width: 1200px) {
}

@media only screen and (max-width: 1024px) {
}

@media only screen and (max-width: 768px) {
}

@media only screen and (max-width: 480px) {
    h3 {font-size: 1.2em;}
    #logo img { width:100%; }
    #figuraPerfil {width: 50px;}
    #perfil {justify-content: center;}
    #barraSuperior p, #rodape p {font-size:1em}
    #escudos-times {display: flex;}
    .imagemPerfilPontuacao, .imagemEscudoPontuacao {width:30px;}
    .botao {font-size:1.1em;}
    input[type="number"] { width:60px; height:40px; text-align: center;}
    .data { width:150px;}
    #opcoes-telas ul {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .titulo {
        font-size: 1.1rem;
        padding: 12px;
    }
    
    #opcoes-telas a {
        padding: 12px 8px;
    }
    
    #opcoes-telas img {
        width: 35px;
        height: 35px;
    }

}

@media (max-width: 350px) {
    #opcoes-telas ul {
        grid-template-columns: 1fr;
    }
}

.ajax-message {
    font-size: 13px;
    padding: 6px 10px;
    margin: 4px 0;
    border-radius: 4px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.ajax-message.success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.ajax-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.ajax-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.ajax-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

.input-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.input-error, .erro {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}


.btn-sair {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
}

.btn-sair:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.perfil-img { width: 100%; }

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    padding: 40px 20px 30px;
    position: relative;
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

.header p {
    font-size: 1.1rem;
    color: #a0c8ff;
}

#figura-perfil { color : white; }
