:root{

    --primary:#2563EB;
    --primary-light:#3B82F6;

    --background:#F5F7FB;

    --card:#FFFFFF;

    --border:#E5E7EB;

    --text:#111827;

    --muted:#6B7280;

    --success:#16A34A;

    --warning:#F59E0B;

    --danger:#DC2626;

    --sidebar-width:260px;

}

*,
*::before,
*::after{
    box-sizing:border-box;
}

body{
    margin:0;

    overflow-x:hidden;
}

body{

    font-family:"Inter",sans-serif;

    background:var(--background);

    color:var(--text);

}

.hub-layout{

    display:flex;

    min-height:100vh;

}

.hub-layout .sidebar{

    width:var(--sidebar-width);

    background:white;

    border-right:1px solid var(--border);

    position:fixed;

    top:0;

    left:0;

    bottom:0;

    overflow-y:auto;

    z-index:1000;

}

.hub-layout .sidebar-logo{

    height:72px;

    display:flex;

    align-items:center;
    justify-content:center;

    padding:12px 18px;

    border-bottom:1px solid var(--border);

}

.hub-layout .sidebar nav{

    padding:20px 12px;

}

.hub-layout .sidebar nav a{

    font-weight:500;

    font-size:.95rem;

    display:flex;

    align-items:center;

    gap:14px;

    padding:12px 16px;

    border-radius:10px;

    color:#374151;

    text-decoration:none;

    transition:.2s;

}

.hub-layout .sidebar nav a:hover{

    background:#EEF4FF;

    color:var(--primary);

}

.hub-layout .topbar{

    position:fixed;

    top:0;

    left:var(--sidebar-width);

    right:0;

    height:72px;

    background:white;

    border-bottom:1px solid var(--border);

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 32px;

    z-index:1100;

    box-shadow:0 1px 3px rgba(15,23,42,.05);

}

.hub-layout .main-content{

    display:flex;

    flex-direction:column;

    margin-left:var(--sidebar-width);

    flex:1;

    min-height:100vh;

}

.hub-layout .page-content{

    flex:1;

    padding:32px;

    padding-top:104px;   /* 72px da topbar + 32px de espaçamento */
}

.hub-card{

    background:white;

    border-radius:18px;

    border:1px solid var(--border);

    box-shadow:

        0 2px 8px rgba(15,23,42,.04);

    padding:24px;

}

.hub-btn-primary{

    background:var(--primary);

    border:none;

    border-radius:10px;

}

.hub-btn-primary:hover{

    background:#1D4ED8;

}

.page-content input,
.page-content select{

    border:1px solid var(--border);

    border-radius:10px;

    height:42px;

}

@media(max-width:900px){

.hub-layout .sidebar{

    width:70px;

}

.hub-layout .main-content{

    margin-left:70px;

}

.hub-layout .sidebar span{

    display:none;

}

}

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-thumb{

    background:#CBD5E1;

    border-radius:999px;

}

::selection{

    background:#2563EB;

    color:white;

}

/* ======================================================
   LOGO
====================================================== */

.hub-layout .logo{

    height:42px;

    width:auto;

}

/* ======================================================
   SIDEBAR SECTIONS
====================================================== */

.hub-layout .sidebar-section{

    margin-bottom:28px;

}

.hub-layout .sidebar-title{

    font-size:.70rem;
    font-weight:700;
    color:var(--muted);
    letter-spacing:.12em;
    text-transform:uppercase;

    padding:0 16px;
    margin-bottom:10px;

}

.hub-layout .sidebar nav a.active{

    background:#E8F1FF;
    color:var(--primary);
    font-weight:600;

}

.hub-layout .sidebar nav a.active i{

    color:var(--primary);

}

.hub-layout .sidebar nav a i{

    width:18px;
    text-align:center;

}

/* ======================================================
   SIDEBAR FOOTER
====================================================== */

.hub-layout .sidebar-footer{

    position:absolute;

    left:0;
    right:0;
    bottom:0;

    padding:18px 12px;

    border-top:1px solid var(--border);

    background:#FFF;

}

.hub-layout .sidebar-footer a{

    display:flex;

    align-items:center;

    gap:14px;

    padding:12px 16px;

    border-radius:10px;

    color:#6B7280;

    text-decoration:none;

    transition:.2s ease;

}

.hub-layout .sidebar-footer a:hover{

    background:#EEF4FF;

    color:var(--primary);

}

/* ======================================================
   TOPBAR
====================================================== */

.hub-layout .topbar{

    box-shadow:0 1px 3px rgba(15,23,42,.05);

}

.hub-layout .topbar-left{

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.hub-layout .topbar-left h4{

    font-weight:700;

    margin:0;

}

.hub-layout .topbar-left small{

    color:var(--muted);

    font-size:.85rem;

}

.hub-layout .topbar-right{

    display:flex;

    align-items:center;

    gap:18px;

}

.hub-layout .username{

    display:flex;

    align-items:center;

    gap:8px;

    font-size:.92rem;

    color:var(--muted);

}

/* ======================================================
   BUTTONS
====================================================== */

.hub-btn-outline{

    background:#FFF;

    color:var(--text);

    border:1px solid var(--border);

    border-radius:10px;

}

.hub-btn-outline:hover{

    background:#F3F4F6;

}

/* ======================================================
   PAGE
====================================================== */

.hub-layout .page-content{

    flex:1;

}

/* ======================================================
   METEOROLOGIA
======================================================*/

.wpce-compare{

    width:100%;

}

.wpce-header{

    display:grid;

    grid-template-columns:repeat(var(--wpce-cols),1fr);

    gap:14px;

    margin-bottom:18px;

}

.wpce-header-cell{

    width:100%;

    max-width:420px;

    text-align:center;

    font-weight:700;

    font-size:15px;

}

.wpce-row{

    display:grid;

    grid-template-columns:repeat(var(--wpce-cols),1fr);

    gap:14px;

    margin-bottom:18px;

}

.wpce-cell{

    width:100%;

    min-width:0;

}

.wpce-map-container{

    width:100%;

    max-width:420px;

    position:relative;

}

.wpce-map-container img{

    width:100%;

    display:block;

    border:1px solid #D9DDE5;

    border-radius:6px;

}

.wpce-day-badge{

    position:absolute;

    top:6px;

    left:6px;

    background:rgba(37,99,235,.92);

    color:white;

    padding:2px 8px;

    border-radius:999px;

    font-size:9px;

    font-weight:700;

    z-index:10;

}

.wpce-tooltip{

    position:absolute;

    left:50%;

    top:50%;

    transform:translate(-50%,-50%);

    background:rgba(17,24,39,.92);

    color:white;

    padding:8px 10px;

    border-radius:6px;

    opacity:0;

    visibility:hidden;

    transition:.15s;

    pointer-events:none;

    text-align:center;

    white-space:nowrap;

}

.wpce-map-container:hover .wpce-tooltip{

    opacity:1;

    visibility:visible;

}

.wpce-model-selector{

    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:24px;

}

.wpce-model-toggle{

    display:none;

}

.wpce-model-chip{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    height:40px;
    padding:0 16px;

    background:#FFF;
    color:#374151;

    border:1px solid #D6D9DE;
    border-radius:8px;

    cursor:pointer;

    user-select:none;

    font-size:14px;
    font-weight:500;

    transition:
        background .15s,
        color .15s,
        border-color .15s;

}

.wpce-model-chip:hover{

    border-color:var(--primary);
    background:#F8FAFD;

}

.wpce-model-toggle:checked + .wpce-model-chip{

    background:var(--primary);
    border-color:var(--primary);
    color:#FFF;

}

.wpce-model-toggle:checked + .wpce-model-chip:hover{

    background:#1D4ED8;
    border-color:#1D4ED8;

}

.wpce-lightbox{

    display:none;

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.85);

    justify-content:center;
    align-items:center;

    z-index:9999;

}

.wpce-lightbox.open{

    display:flex;

}

.wpce-lightbox img{

    max-width:90vw;
    max-height:90vh;

    border-radius:8px;

}

.wpce-lightbox-close{

    position:absolute;

    top:20px;
    right:30px;

    font-size:36px;

    color:white;

    cursor:pointer;

}

.wpce-map{

    cursor:zoom-in;

}

/* ===========================================================
   Comparação entre rodadas
   =========================================================== */

.wpce-comp{

    display:flex;
    flex-direction:column;
    gap:28px;

}

.wpce-comp-header{

    display:grid;

    grid-template-columns:
        repeat(4,minmax(220px,1fr));

    gap:18px;

    margin-bottom:8px;

}

.wpce-comp-header-cell{

    text-align:center;

    font-weight:600;

    font-size:1rem;

}

.wpce-comp-row{

    display:grid;

    grid-template-columns:
        1fr
        1fr
        1fr
        320px;

    gap:18px;

}

.wpce-comp-card{

    display:flex;

    flex-direction:column;

}

.wpce-comp-title{

    text-align:center;

    font-weight:600;

    margin-bottom:8px;

}

.wpce-comp-table{

    min-height:320px;

    border:1px solid #d9d9d9;

    border-radius:8px;

    background:#fafafa;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:12px;

}

.wpce-comp-table-placeholder{

    text-align:center;

    color:#666;

    font-size:.9rem;

}

.wpce-comp-separator{

    border-bottom:1px solid #ddd;

    margin:10px 0 24px;

}

.wpce-table-frame{

    width:100%;

    aspect-ratio:0.75;

    min-height:430px;

    border:none;

}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width:900px){

    .hub-layout .sidebar-title{

        display:none;

    }

    .hub-layout .sidebar-footer span{

        display:none;

    }

    .hub-layout .topbar-left small{

        display:none;

    }

}

@media (max-width:700px){

    .hub-layout .topbar{

        padding:0 16px;

    }

    .hub-layout .username{

        display:none;

    }

}

/* ======================================================
   COLLAPSIBLE SIDEBAR MENU
====================================================== */

.hub-layout .menu-parent{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.hub-layout .menu-parent > div{

    display:flex;

    align-items:center;

    gap:14px;

}

.hub-layout .menu-arrow{

    font-size:.75rem;

    color:var(--muted);

    transition:transform .2s ease;

}

.hub-layout .menu-parent[aria-expanded="true"] .menu-arrow{

    transform:rotate(180deg);

}

.hub-layout .menu-parent[aria-expanded="false"] .menu-arrow{

    transform:rotate(0deg);

}

.hub-layout .submenu{

    margin-left:20px;

    margin-top:6px;

    margin-bottom:10px;

}

.hub-layout .submenu-item{

    display:flex;

    align-items:center;

    padding:10px 16px;

    margin:2px 0;

    border-radius:8px;

    color:var(--muted);

    text-decoration:none;

    font-size:.90rem;

    transition:.2s;

}

.hub-layout .submenu-item:hover{

    background:#EEF4FF;

    color:var(--primary);

}

.hub-layout .submenu-item.active{

    background:#E8F1FF;

    color:var(--primary);

    font-weight:600;

}