﻿/**
 * Author:  SÃ©rgio Rosa SchÃ¼tz
 * Empresa: Pethos Tecnologia
 * Data e Hora: 14/02/2026 17:39
 * VersÃ£o: 2.3.1 (Build #3)
 * Finalidade: Componente de barra lateral unificada V17 Platinum.
 */

/* Portal V6.0 - Platinum One-Screen Master */

html,
body.portal-v6 {
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
    background-color: #0f172a;
}

body.portal-v6 {
    background-image: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), url('../img/portal_bg.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    display: flex;
    flex-direction: column;
}

/* Neutralizar Containers Globais da Plataforma - APENAS NO PORTAL */
body.portal-v6 .layout-wrapper,
body.portal-v6 .main-content {
    height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background: transparent !important;
}

.portal-app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3vh 3vw 1vh;
    /* EspaÃ§o para o footer na base */
    box-sizing: border-box;
}

/* --- TOP ELEMENTS --- */
.top-status-bar {
    display: flex;
    justify-content: center;
    gap: 1.5vw;
}

.glass-pill-v2 {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 0.6vh 1.5vw;
    border-radius: 50px;
    font-size: clamp(0.7rem, 0.9vh, 0.9rem);
    color: #cbd5e1;
    text-transform: uppercase;
    font-weight: 700;
}

.pill-value {
    color: #ffffff;
    font-weight: 800;
    margin-left: 8px;
}

.online-dot {
    color: #10b981;
}

.portal-head-v6 {
    text-align: center;
}

.portal-title-v6 {
    font-size: clamp(2.2rem, 5vh, 4rem);
    font-weight: 900;
    margin: 0;
    color: #ffffff;
    letter-spacing: -2px;
}

.portal-subtitle-v6 {
    font-size: clamp(0.9rem, 1.8vh, 1.3rem);
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5vh;
}

/* --- REGIONS (Fixed Height) --- */
.regions-grid-v6 {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1.5vw;
    margin-top: 1vh;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1vw;
}

.region-card-v6 {
    flex: 0 0 220px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.8vh 1vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.region-card-v6:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(96, 165, 250, 0.4);
}

.region-icon-v6 {
    font-size: clamp(1.4rem, 2.8vh, 2.2rem);
    margin-bottom: 0.8vh;
}

.region-stat-v6 h4 {
    font-size: clamp(1.6rem, 3.5vh, 2.6rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0;
}

.region-label-v6 {
    font-size: clamp(0.6rem, 0.7vh, 0.8rem);
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: 800;
}

/* --- CAROUSEL (Flexible Height) --- */
.portal-carousel-area {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 0;
    width: 100%;
    margin: 1.5vh 0;
}

.swiper-container-v6 {
    width: 100%;
}

.swiper-container-v6 .swiper-wrapper {
    transition-timing-function: linear !important;
}

.muni-card-v6 {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2vh 1.2vw;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.muni-card-v6:hover {
    background: rgba(255, 255, 255, 0.08);
}

.muni-logo-v6 {
    width: clamp(60px, 8vh, 90px);
    height: clamp(60px, 8vh, 90px);
    background: #1e293b;
    border-radius: 50%;
    margin: 0 auto 1.5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-weight: 900;
    font-size: 1.5rem;
}

.muni-logo-v6 img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.muni-name-v6 {
    font-size: clamp(0.9rem, 1.2vh, 1.3rem);
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

.muni-state-v6 {
    color: #60a5fa;
    font-weight: 800;
    font-size: 0.8rem;
}

/* --- FOOTER PADRÃƒO --- */
body.portal-v6 .footer {
    display: block !important;
    position: relative !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(15px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1.5vh 20px !important;
    margin-top: auto !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-align: center !important;
    font-size: 0.75rem !important;
}

body.portal-v6 .footer strong {
    color: #fff !important;
    font-weight: 700 !important;
}

/* Responsive Hacks */
@media (max-height: 750px) {
    .portal-app-container {
        gap: 1vh;
    }

    .region-card-v6 {
        padding: 1vh 1vw;
    }
}
