/* ======================================================
   COMUNIDADE RUNNERS
   EVENTOS
====================================================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

body{

    font-family:'Segoe UI',Arial,sans-serif;
    background:#EEF3F8;
    color:#1F2937;

}

.layout{

    display:flex;
    min-height:100vh;

}

/* ======================================================
SIDEBAR
====================================================== */

.sidebar{

    width:240px;
    background:linear-gradient(180deg,#0F3C96,#184BAE);
    color:white;
    display:flex;
    flex-direction:column;
    padding:25px 18px;
    position:fixed;
    left:0;
    top:0;
    bottom:0;

}

.logo{

    text-align:center;
    margin-bottom:40px;

}

.logoIcon{

    width:70px;
    height:70px;
    margin:auto;
    border-radius:50%;
    background:white;
    color:#184BAE;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:38px;
    margin-bottom:15px;

}

.logo h2{

    font-size:34px;
    line-height:42px;
    font-weight:700;

}

.sidebar nav{

    display:flex;
    flex-direction:column;
    gap:12px;

}

.sidebar nav a{

    text-decoration:none;
    color:white;
    padding:15px 18px;
    border-radius:12px;
    transition:.25s;
    font-size:17px;
    font-weight:600;

}

.sidebar nav a:hover{

    background:rgba(255,255,255,.15);

}

.sidebar nav a.ativo{

    background:#2B73E8;

}

/* ======================================================
CONTEÚDO
====================================================== */

.conteudo{

    flex:1;
    margin-left:240px;
    padding:35px;

}

/* ======================================================
TOPO
====================================================== */

.topoPagina{

    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;

}

.topoPagina h1{

    font-size:46px;
    color:#0F172A;

}

.topoPagina small{

    color:#64748B;
    font-size:17px;

}

.usuarioTopo{

    background:white;
    padding:14px 24px;
    border-radius:14px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    font-weight:600;

}/* ======================================================
CARDS
====================================================== */

.cardsResumo{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

    margin-bottom:35px;

}

.cardResumo{

    background:#FFF;

    border-radius:18px;

    padding:25px;

    display:flex;

    align-items:center;

    gap:20px;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    transition:.25s;

    border:1px solid #EDF1F7;

}

.cardResumo:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 35px rgba(0,0,0,.12);

}

.iconeCard{

    width:75px;

    height:75px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:36px;

    background:#EAF2FF;

    color:#1565C0;

}

.iconeCard.verde{

    background:#E8F8EF;

    color:#17A34A;

}

.iconeCard.roxo{

    background:#F1EBFF;

    color:#7C3AED;

}

.iconeCard.laranja{

    background:#FFF2E8;

    color:#F97316;

}

.cardResumo span{

    display:block;

    color:#6B7280;

    font-size:16px;

    margin-bottom:8px;

    font-weight:500;

}

.cardResumo h2{

    font-size:46px;

    color:#1565C0;

    font-weight:700;

}

.cardResumo:nth-child(2) h2{

    color:#16A34A;

}

.cardResumo:nth-child(3) h2{

    color:#7C3AED;

}

.cardResumo:nth-child(4) h2{

    color:#F97316;

}/* ======================================================
CARD DO FORMULÁRIO
====================================================== */

.cardSistema{

    background:#FFF;

    border-radius:20px;

    padding:30px;

    margin-bottom:30px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    border:1px solid #ECECEC;

}

.tituloCard{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:25px;

    padding-bottom:15px;

    border-bottom:1px solid #E5E7EB;

}

.tituloCard h2{

    color:#0F3C96;

    font-size:30px;

    font-weight:700;

}

/* ======================================================
FORMULÁRIO
====================================================== */

.formGrid{

    display:grid;

    grid-template-columns:repeat(12,1fr);

    gap:22px;

}

.campo{

    display:flex;

    flex-direction:column;

    grid-column:span 3;

}

.campoGrande{

    grid-column:span 6;

}

.campoTotal{

    grid-column:span 12;

}

.campo label{

    font-size:15px;

    color:#374151;

    font-weight:600;

    margin-bottom:8px;

}

.campo input,
.campo select,
.campo textarea{

    width:100%;

    border:1px solid #D6DCE5;

    border-radius:10px;

    padding:13px 15px;

    font-size:15px;

    background:#FFF;

    transition:.25s;

}

.campo textarea{

    min-height:110px;

    resize:vertical;

}

.campo input:focus,
.campo select:focus,
.campo textarea:focus{

    outline:none;

    border-color:#1565C0;

    box-shadow:0 0 0 4px rgba(21,101,192,.12);

}

/* ======================================================
DISTÂNCIAS
====================================================== */

.listaDistancias{

    display:grid;

    grid-template-columns:repeat(8,1fr);

    gap:10px;

    margin-top:20px;

}

.listaDistancias label{

    display:flex;

    align-items:center;

    gap:8px;

    background:#F8FAFC;

    border:1px solid #E5E7EB;

    border-radius:8px;

    padding:10px;

    cursor:pointer;

    transition:.25s;

    font-size:14px;

}

.listaDistancias label:hover{

    background:#EAF2FF;

    border-color:#1565C0;

}/* ======================================================
BOTÕES
====================================================== */

.botoesFormulario{

    display:flex;

    justify-content:flex-end;

    gap:15px;

    margin-top:30px;

    flex-wrap:wrap;

}

.btnPrincipal,
.btnSalvar,
.btnEditar,
.btnExcluir,
.btnLimpar{

    border:none;

    border-radius:12px;

    padding:14px 26px;

    color:white;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.btnPrincipal,
.btnSalvar{

    background:#1565C0;

}

.btnPrincipal:hover,
.btnSalvar:hover{

    background:#0D47A1;

    transform:translateY(-2px);

}

.btnEditar{

    background:#F59E0B;

}

.btnEditar:hover{

    background:#D97706;

    transform:translateY(-2px);

}

.btnExcluir{

    background:#DC2626;

}

.btnExcluir:hover{

    background:#B91C1C;

    transform:translateY(-2px);

}

.btnLimpar{

    background:#6B7280;

}

.btnLimpar:hover{

    background:#4B5563;

    transform:translateY(-2px);

}

/* ======================================================
FILTROS
====================================================== */

.filtros{

    display:flex;

    gap:15px;

    margin-bottom:25px;

}

.filtros input,
.filtros select{

    flex:1;

    border:1px solid #D6DCE5;

    border-radius:10px;

    padding:12px 15px;

    font-size:15px;

}

/* ======================================================
TABELA
====================================================== */

.tabelaResponsiva{

    width:100%;

    overflow:auto;

}

.tabelaResponsiva table{

    width:100%;

    border-collapse:collapse;

}

.tabelaResponsiva thead{

    background:#1565C0;

    color:white;

}

.tabelaResponsiva th{

    padding:15px;

    text-align:left;

    font-size:15px;

}

.tabelaResponsiva td{

    padding:15px;

    border-bottom:1px solid #ECECEC;

}

.tabelaResponsiva tbody tr{

    transition:.25s;

}

.tabelaResponsiva tbody tr:hover{

    background:#F8FAFC;

}

/* ======================================================
STATUS
====================================================== */

.status{

    display:inline-block;

    padding:6px 12px;

    border-radius:30px;

    font-size:13px;

    font-weight:600;

}

.status.aberto{

    background:#DCFCE7;

    color:#166534;

}

.status.andamento{

    background:#DBEAFE;

    color:#1D4ED8;

}

.status.finalizado{

    background:#F3F4F6;

    color:#374151;

}

.status.cancelado{

    background:#FEE2E2;

    color:#B91C1C;

}

/* ======================================================
RODAPÉ
====================================================== */

.rodape{

    margin-top:40px;

    text-align:center;

    color:#64748B;

    font-size:14px;

}/* ======================================================
ANIMAÇÕES
====================================================== */

.cardSistema,
.cardResumo{

    animation:fadeUp .4s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ======================================================
SCROLL
====================================================== */

::-webkit-scrollbar{

    width:10px;

    height:10px;

}

::-webkit-scrollbar-track{

    background:#EEF3F8;

}

::-webkit-scrollbar-thumb{

    background:#1565C0;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#0F3C96;

}

/* ======================================================
INPUT FILE
====================================================== */

input[type=file]{

    padding:10px;

    cursor:pointer;

}

/* ======================================================
BOTÕES DA TABELA
====================================================== */

.tabelaResponsiva button{

    width:38px;

    height:38px;

    border:none;

    border-radius:8px;

    cursor:pointer;

    color:white;

    transition:.25s;

    margin-right:5px;

}

.tabelaResponsiva .btnEditar{

    background:#F59E0B;

}

.tabelaResponsiva .btnExcluir{

    background:#DC2626;

}

.tabelaResponsiva button:hover{

    transform:scale(1.08);

}

/* ======================================================
CARDS RESPONSIVOS
====================================================== */

@media(max-width:1400px){

    .cardsResumo{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:900px){

    .sidebar{

        width:90px;

    }

    .sidebar h2{

        display:none;

    }

    .conteudo{

        margin-left:90px;

    }

    .formGrid{

        grid-template-columns:1fr;

    }

    .campo,
    .campoGrande,
    .campoTotal{

        grid-column:span 1;

    }

    .listaDistancias{

        grid-template-columns:repeat(2,1fr);

    }

    .botoesFormulario{

        justify-content:center;

    }

}

@media(max-width:600px){

    .cardsResumo{

        grid-template-columns:1fr;

    }

    .topoPagina{

        flex-direction:column;

        align-items:flex-start;

        gap:15px;

    }

}
/* ===================================== */
/* LOTES V2 */
/* ===================================== */

.gridLotes{

    display:grid;

    grid-template-columns:380px 1fr;

    gap:30px;

    align-items:start;

}

.listaLotes{

    display:grid;

    gap:18px;

}

.cardLote{

    background:#fff;

    border-radius:16px;

    padding:22px;

    border-left:6px solid #2563eb;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.25s;

}

.cardLote:hover{

    transform:translateY(-3px);

}

.cardLote h3{

    margin-bottom:15px;

    color:#0f172a;

}

.infoLote{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:12px;

    margin-top:15px;

}

.itemLote{

    background:#f8fafc;

    padding:12px;

    border-radius:10px;

}

.itemLote strong{

    display:block;

    font-size:12px;

    color:#64748b;

    margin-bottom:5px;

}

.acoesLote{

    display:flex;

    justify-content:flex-end;

    gap:12px;

    margin-top:20px;

}

.btnLote{

    border:none;

    padding:10px 18px;

    border-radius:10px;

    cursor:pointer;

    color:white;

    font-weight:600;

}

.btnEditar{

    background:#f59e0b;

}

.btnExcluir{

    background:#ef4444;

}

.statusAtivo{

    color:#16a34a;

    font-weight:bold;

}

.statusInativo{

    color:#ef4444;

    font-weight:bold;

}

@media(max-width:1100px){

.gridLotes{

grid-template-columns:1fr;

}

.infoLote{

grid-template-columns:1fr;

}

}
/*====================================*/
/* DASHBOARD LOTES */
/*====================================*/

.cardsLotes{

display:grid;

grid-template-columns:repeat(5,1fr);

gap:18px;

margin-bottom:25px;

}

.cardResumoLote{

background:white;

border-radius:16px;

padding:22px;

box-shadow:0 8px 20px rgba(0,0,0,.08);

text-align:center;

}

.cardResumoLote span{

font-size:28px;

font-weight:bold;

display:block;

color:#2563eb;

}

.cardResumoLote small{

color:#64748b;

font-size:14px;

}

@media(max-width:1000px){

.cardsLotes{

grid-template-columns:repeat(2,1fr);

}

}