/* ======================================================
   COMUNIDADE RUNNERS
   RESULTADOS V2
====================================================== */

:root{

    --azul:#1565C0;
    --azulEscuro:#0F3C96;
    --azulClaro:#EAF3FF;

    --verde:#16A34A;
    --laranja:#F59E0B;
    --vermelho:#DC2626;
    --roxo:#7C3AED;

    --branco:#FFFFFF;
    --cinza:#F4F7FB;
    --cinza2:#E5E7EB;
    --texto:#1E293B;
    --texto2:#64748B;

    --radius:18px;

    --sombra:
        0 10px 30px rgba(0,0,0,.08);

    --transition:.25s;

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--cinza);

    color:var(--texto);

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

}

/* ======================================================
LAYOUT
====================================================== */

.layout{

    display:flex;

    min-height:100vh;

}

.conteudo{

    flex:1;

    margin-left:240px;

    padding:35px;

}

/* ======================================================
SIDEBAR
====================================================== */

.sidebar{

    position:fixed;

    left:0;

    top:0;

    width:240px;

    height:100%;

    background:
        linear-gradient(
            180deg,
            #0F3C96,
            #184BAE
        );

    color:white;

    padding:25px 18px;

    box-shadow:
        5px 0 20px rgba(0,0,0,.15);

}

.logo{

    text-align:center;

    margin-bottom:40px;

}

.logoIcon{

    width:75px;

    height:75px;

    border-radius:50%;

    background:white;

    display:flex;

    justify-content:center;

    align-items:center;

    margin:auto;

    margin-bottom:15px;

    font-size:36px;

}

.logo h2{

    color:white;

    font-size:32px;

    line-height:38px;

}

.sidebar nav{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.sidebar nav a{

    text-decoration:none;

    color:white;

    padding:14px 18px;

    border-radius:12px;

    font-weight:600;

    transition:var(--transition);

}

.sidebar nav a:hover{

    background:rgba(255,255,255,.15);

    transform:translateX(5px);

}

.sidebar nav .ativo{

    background:#2B73E8;

    box-shadow:
        0 8px 20px rgba(0,0,0,.15);

}
/* ======================================================
TOPO DA PÁGINA
====================================================== */

.topoPagina{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:35px;

}

.topoPagina h1{

    font-size:46px;

    color:#0F172A;

    font-weight:700;

}

.topoPagina small{

    display:block;

    margin-top:8px;

    color:#64748B;

    font-size:16px;

}

/* ======================================================
BOTÕES
====================================================== */

.btnPrincipal{

    border:none;

    background:linear-gradient(135deg,#1565C0,#2B73E8);

    color:white;

    padding:14px 28px;

    border-radius:14px;

    cursor:pointer;

    font-size:15px;

    font-weight:700;

    transition:.25s;

    box-shadow:

        0 10px 25px rgba(21,101,192,.30);

}

.btnPrincipal:hover{

    transform:translateY(-3px);

    box-shadow:

        0 15px 35px rgba(21,101,192,.40);

}

.btnEditar{

    background:#16A34A;

    color:white;

    border:none;

    border-radius:12px;

    padding:12px 20px;

    cursor:pointer;

    font-weight:600;

    transition:.25s;

}

.btnEditar:hover{

    background:#15803D;

}

.btnLimpar{

    background:#64748B;

    color:white;

    border:none;

    border-radius:12px;

    padding:12px 20px;

    cursor:pointer;

    font-weight:600;

    transition:.25s;

}

.btnLimpar:hover{

    background:#475569;

}
/* ======================================================
TOPO DA PÁGINA
====================================================== */

.topoPagina{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:35px;

}

.topoPagina h1{

    font-size:42px;

    color:var(--texto);

    font-weight:700;

}

.topoPagina small{

    display:block;

    margin-top:6px;

    color:var(--texto2);

    font-size:16px;

}

.btnPrincipal{

    border:none;

    background:linear-gradient(135deg,#1565C0,#2B73E8);

    color:white;

    padding:14px 28px;

    border-radius:14px;

    cursor:pointer;

    font-size:15px;

    font-weight:700;

    transition:.25s;

    box-shadow:0 8px 20px rgba(21,101,192,.30);

}

.btnPrincipal:hover{

    transform:translateY(-3px);

    box-shadow:0 15px 35px rgba(21,101,192,.35);

}

/* ======================================================
CARDS RESUMO
====================================================== */

.cardsResumo{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:22px;

    margin-bottom:35px;

}

.cardResumo{

    background:white;

    border-radius:20px;

    padding:24px;

    display:flex;

    align-items:center;

    gap:20px;

    box-shadow:var(--sombra);

    transition:.25s;

    overflow:hidden;

    position:relative;

}

.cardResumo::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:6px;

    height:100%;

    background:#1565C0;

}

.cardResumo:hover{

    transform:translateY(-6px);

}

.iconeCard{

    width:70px;

    height:70px;

    border-radius:18px;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:32px;

    background:#EAF3FF;

    color:#1565C0;

    flex-shrink:0;

}

.iconeCard.verde{

    background:#E9F8EF;

    color:#16A34A;

}

.iconeCard.roxo{

    background:#F4EEFF;

    color:#7C3AED;

}

.iconeCard.laranja{

    background:#FFF4E5;

    color:#EA580C;

}

.iconeCard.vermelho{

    background:#FEECEC;

    color:#DC2626;

}

.cardResumo span{

    display:block;

    color:#64748B;

    font-size:14px;

    margin-bottom:8px;

    font-weight:600;

}

.cardResumo h2{

    font-size:34px;

    color:#0F172A;

    font-weight:700;

}
/* ======================================================
FILTROS
====================================================== */

.cardSistema{

    background:#FFFFFF;

    border-radius:22px;

    padding:28px;

    margin-bottom:30px;

    box-shadow:
        0 12px 30px rgba(15,23,42,.08);

    border:1px solid #E8EDF5;

}

.tituloCard{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

    padding-bottom:18px;

    border-bottom:1px solid #EDF2F7;

}

.tituloCard h2{

    font-size:28px;

    color:#0F172A;

    font-weight:700;

}

.filtros{

    display:grid;

    grid-template-columns:2fr repeat(3,1fr);

    gap:18px;

}

.filtros input,

.filtros select{

    width:100%;

    height:54px;

    border:2px solid #E5E7EB;

    border-radius:14px;

    background:white;

    padding:0 18px;

    font-size:15px;

    transition:.25s;

}

.filtros input:focus,

.filtros select:focus{

    outline:none;

    border-color:#1565C0;

    box-shadow:

        0 0 0 4px rgba(21,101,192,.10);

}

.filtros input:hover,

.filtros select:hover{

    border-color:#1565C0;

}
/* ======================================================
TABELA PREMIUM
====================================================== */

.tabelaResponsiva{

    width:100%;

    overflow-x:auto;

    border-radius:18px;

}

.tabelaResponsiva table{

    width:100%;

    min-width:1100px;

    border-collapse:separate;

    border-spacing:0;

    overflow:hidden;

    background:white;

    border-radius:18px;

    box-shadow:

        0 12px 30px rgba(15,23,42,.08);

}

.tabelaResponsiva thead{

    background:

        linear-gradient(
            90deg,
            #0F3C96,
            #1565C0
        );

}

.tabelaResponsiva th{

    color:white;

    padding:18px 26px;

    text-align:left;

    font-size:15px;

    font-weight:700;

    white-space:nowrap;

}

.tabelaResponsiva td{

    padding:18px 26px;

    border-bottom:1px solid #EDF2F7;

    font-size:15px;

    color:#334155;

    white-space:nowrap;

    transition:.20s;

}
.tabelaResponsiva th:nth-child(1),
.tabelaResponsiva td:nth-child(1){

    width:70px;

}

.tabelaResponsiva th:nth-child(2),
.tabelaResponsiva td:nth-child(2){

    width:90px;

}

.tabelaResponsiva th:nth-child(3),
.tabelaResponsiva td:nth-child(3){

    min-width:220px;

}

.tabelaResponsiva th:nth-child(4),
.tabelaResponsiva td:nth-child(4){

    min-width:170px;

}

.tabelaResponsiva th:nth-child(5),
.tabelaResponsiva td:nth-child(5){

    width:140px;

}

.tabelaResponsiva th:nth-child(6),
.tabelaResponsiva td:nth-child(6){

    width:140px;

}

.tabelaResponsiva tbody tr{

    transition:.20s;

}

.tabelaResponsiva tbody tr:nth-child(even){

    background:#F8FAFC;

}

.tabelaResponsiva tbody tr:hover{

    background:#EAF3FF;

    transform:scale(1.003);

}

.tabelaResponsiva tbody tr:last-child td{

    border-bottom:none;

}

.semRegistros{

    text-align:center;

    padding:60px !important;

    color:#94A3B8;

    font-size:18px;

    font-weight:600;

}

/* ======================================================
POSIÇÕES
====================================================== */

.posicao{

    width:42px;

    height:42px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    font-weight:700;

    color:white;

}

.posicao.ouro{

    background:#F59E0B;

}

.posicao.prata{

    background:#94A3B8;

}

.posicao.bronze{

    background:#B45309;

}

.posicao.normal{

    background:#1565C0;

}
/* ======================================================
TOP 5 PREMIUM
====================================================== */

.linhaInferior{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:25px;

    margin-top:30px;

}

.top5Lista{

    display:flex;

    flex-direction:column;

    gap:14px;

}

.top5Item{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:18px;

    padding:18px;

    border-radius:16px;

    background:white;

    border-left:6px solid #1565C0;

    box-shadow:

        0 10px 25px rgba(15,23,42,.08);

    transition:.25s;

}

.top5Item:hover{

    transform:translateX(8px);

    box-shadow:

        0 18px 35px rgba(15,23,42,.12);

}

.top5Item:nth-child(1){

    border-left-color:#F59E0B;

}

.top5Item:nth-child(2){

    border-left-color:#94A3B8;

}

.top5Item:nth-child(3){

    border-left-color:#B45309;

}

.top5Posicao{

    width:48px;

    height:48px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    font-size:18px;

    font-weight:bold;

    flex-shrink:0;

}

.top5Item:nth-child(1) .top5Posicao{

    background:#F59E0B;

}

.top5Item:nth-child(2) .top5Posicao{

    background:#94A3B8;

}

.top5Item:nth-child(3) .top5Posicao{

    background:#B45309;

}

.top5Item:nth-child(n+4) .top5Posicao{

    background:#1565C0;

}

.top5Info{

    flex:1;

}

.top5Info h3{

    font-size:17px;

    color:#0F172A;

    margin-bottom:4px;

}

.top5Info small{

    color:#64748B;

    font-size:14px;

}

.top5Tempo{

    font-size:18px;

    font-weight:700;

    color:#1565C0;

}

/* ======================================================
ESTATÍSTICAS
====================================================== */

.estatisticasResultados{

    display:grid;

    gap:16px;

}

.itemEstatistica{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 20px;

    background:white;

    border-radius:16px;

    border:1px solid #E5E7EB;

    box-shadow:

        0 8px 20px rgba(15,23,42,.05);

    transition:.25s;

}

.itemEstatistica:hover{

    transform:translateY(-3px);

    border-color:#1565C0;

    box-shadow:

        0 12px 25px rgba(21,101,192,.12);

}

.itemEstatistica span{

    color:#64748B;

    font-size:15px;

    font-weight:600;

}

.itemEstatistica strong{

    color:#1565C0;

    font-size:18px;

    font-weight:700;

}
/* ======================================================
ABAS PREMIUM
====================================================== */

.abasResultados{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

    margin-bottom:30px;

}

.aba{

    border:none;

    background:#F1F5F9;

    color:#475569;

    padding:14px 24px;

    border-radius:14px;

    cursor:pointer;

    font-size:15px;

    font-weight:700;

    transition:.25s;

}

.aba:hover{

    background:#DBEAFE;

    color:#1565C0;

    transform:translateY(-2px);

}

.aba.ativa{

    background:linear-gradient(135deg,#1565C0,#2B73E8);

    color:white;

    box-shadow:

        0 10px 25px rgba(21,101,192,.25);

}

.conteudoAba{

    display:none;

    animation:fadeResultado .35s ease;

}

.conteudoAba.ativo{

    display:block;

}

@keyframes fadeResultado{

    from{

        opacity:0;

        transform:translateY(12px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ======================================================
RODAPÉ
====================================================== */

.rodape{

    margin-top:45px;

    text-align:center;

    color:#64748B;

    font-size:15px;

    padding:25px;

}

.rodape strong{

    color:#1565C0;

}

/* ======================================================
RESPONSIVIDADE
====================================================== */

@media(max-width:1400px){

    .cardsResumo{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:1100px){

    .linhaInferior{

        grid-template-columns:1fr;

    }

    .filtros{

        grid-template-columns:1fr;

    }

}

@media(max-width:900px){

    .sidebar{

        width:85px;

    }

    .logo h2{

        display:none;

    }

    .sidebar nav a{

        text-align:center;

        padding:15px;

        font-size:0;

    }

    .sidebar nav a::first-letter{

        font-size:22px;

    }

    .conteudo{

        margin-left:85px;

        padding:20px;

    }

}

@media(max-width:700px){

    .cardsResumo{

        grid-template-columns:1fr;

    }

    .topoPagina{

        flex-direction:column;

        align-items:flex-start;

        gap:20px;

    }

    .tituloCard{

        flex-direction:column;

        align-items:flex-start;

        gap:15px;

    }

    .abasResultados{

        flex-direction:column;

    }

}
.acoesResultados{

    display:flex;

    gap:12px;

    align-items:center;

}

#btnPublicarResultados{

    white-space:nowrap;

}