/* ================================================================\
   CSS GLOBAL - sites/public + Power BI
   Estilos e separação dos containers copiados de sites/public
================================================================ */

/* ------------------------------------------------------------------------ */
/* @HD: ### Fontes ### */
/* ------------------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

/* ------------------------------------------------------------------------ */
/* @HD: ### Reset CSS ### */
/* ------------------------------------------------------------------------ */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    scroll-behavior: smooth;
    text-decoration: none;
}

/* Garantir que não haja texto riscado */
* {
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
}

/* Permitir underline apenas em links */
a {
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* ------------------------------------------------------------------------ */
/* @HD: ### Variáveis CSS Globais ### */
/* ------------------------------------------------------------------------ */
:root {
    /* Cores principais */
    --text-color: #f5f5f5;
    --hover-color: #12f7ff;
    --bg-color: #0f062e;
    --secon-bg-color: #292e33;
    
    /* Tipografia */
    --big-font: 2.5rem;
    --normal-font: 2rem;
    --h2-font: 3rem;
    
    /* Efeitos visuais */
    --neon-box-shadow: 0 0 .5rem #22f7ff;
    --font-neon-text-shadow: 
        0 0 10px rgba(18, 247, 255, 0.3),
        0 0 20px rgba(18, 247, 255, 0.3),
        0 0 30px rgba(18, 247, 255, 0.3),
        0 0 40px rgba(18, 247, 255, 0.3),
        0 0 70px rgba(18, 247, 255, 0.3),
        0 0 80px rgba(18, 247, 255, 0.3),
        0 0 100px rgba(18, 247, 255, 0.3),
        0 0 150px rgba(18, 247, 255, 0.3);
    
    /* Espaçamentos padronizados */
    --espacamento-320px: 0.5rem;
    --espacamento-480px: 1rem;
    --espacamento-768px: 1.5rem;
    --espacamento-992px: 2rem;
    --espacamento-1200px: 3rem;
    --espacamento-1400px: 4rem;
    
    /* Breakpoints */
    --ponto-quebra-320px: 320px;
    --ponto-quebra-480px: 480px;
    --ponto-quebra-768px: 768px;
    --ponto-quebra-992px: 992px;
    --ponto-quebra-1200px: 1200px;
    --ponto-quebra-1400px: 1400px;
    
    /* Bordas e sombras */
    --raio-borda-320px: 4px;
    --raio-borda-480px: 8px;
    --raio-borda-768px: 12px;
    --raio-borda-992px: 16px;
    --raio-borda-1200px: 20px;
    --raio-borda-1400px: 24px;
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ------------------------------------------------------------------------ */
/* @HD: ### Scrollbar ### */
/* ------------------------------------------------------------------------ */
::-webkit-scrollbar {
    height: 0;
    width: .5rem;
}

::-webkit-scrollbar-track {
    background: var(--secon-bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--hover-color);
    border-radius: 5rem;
}

/* ------------------------------------------------------------------------ */
/* @HD: ### Body e Estrutura Global ### */
/* ------------------------------------------------------------------------ */
html, body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    min-height: 100vh;
}

html {
    padding-bottom: 40px;
    min-height: calc(100vh - 40px);
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    font-family: "Poppins", sans-serif !important;
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    position: relative;
    padding-bottom: 40px;
    min-height: calc(100vh - 40px);
}

/* ------------------------------------------------------------------------ */
/* @HD: ### Navbar Fixo ### */
/* ------------------------------------------------------------------------ */
.navbar-header {
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
}

/* ------------------------------------------------------------------------ */
/* @HD: ### Seções - Altura Mínima ### */
/* ------------------------------------------------------------------------ */
section {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
    z-index: 1;
    scroll-margin-top: 50px;
}

/* Exceção: Power BI - sections block para dashboards ocuparem largura total */
section.powerbi-sessao {
    display: block !important;
    justify-content: unset !important;
    align-items: unset !important;
}

/* ------------------------------------------------------------------------ */
/* @HD: ### Proteção Containers Mobile ### */
/* ------------------------------------------------------------------------ */
.MOBILE_CONTAINER_SESSAO,
.MOBILE_CONTAINER,
.MOBILE_CONTAINER_COLUMN,
.MOBILE_CONTAINER_ROW_01,
.MOBILE_CONTAINER_ROW_02,
.MOBILE_CONTAINER_ROW_03,
.MOBILE_CONTAINER_ROW_04,
.MOBILE_CONTAINER_ROW_05 {
    /* Espaçamentos controlados pelas variáveis CSS */
}

section.mobile_inicio,
section.mobile_formacao,
section.mobile_conhecimento,
section.mobile_certificados,
section.mobile_projetos,
section.mobile_wiki {
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

.MOBILE_CONTAINER_COLUMN {
    margin-top: var(--mobile-container-column-margem-topo, 10px) !important;
    margin-bottom: var(--mobile-container-column-margem-baixo, 10px) !important;
    margin-left: var(--mobile-container-column-margem-esquerda, 10px) !important;
    margin-right: var(--mobile-container-column-margem-direita, 10px) !important;
}

/* ------------------------------------------------------------------------ */
/* @HD: ### Footer ### */
/* ------------------------------------------------------------------------ */
footer {
    position: relative;
    z-index: 100;
    background: var(--bg-color);
    border-top: 1px solid var(--hover-color);
    padding: var(--espacamento-992px);
    text-align: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: auto !important;
}

footer p {
    margin-bottom: var(--espacamento-480px);
}

footer a {
    color: var(--hover-color);
    font-size: 1.5rem;
    transition: var(--transition-normal);
}

footer a:hover {
    color: var(--text-color);
    transform: translateY(-3px);
}

/* ------------------------------------------------------------------------ */
/* @HD: ### Power BI Layout ### */
/* ------------------------------------------------------------------------ */
.powerbi-main-layout {
    padding-top: 80px;
    min-height: 100vh;
    width: 100%;
}

.powerbi-main-layout.DESKTOP_CONTAINER_SESSAO,
.powerbi-content-area.DESKTOP_CONTAINER {
    display: block !important;
    flex-direction: unset !important;
    justify-content: unset !important;
    align-items: unset !important;
}

.powerbi-content-area {
    width: 100%;
    padding: 40px 20px;
    display: block !important;
}

.powerbi-content-area.DESKTOP_CONTAINER {
    padding: 40px 20px !important;
}

.powerbi-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.powerbi-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
}

.powerbi-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    text-shadow: var(--font-neon-text-shadow);
}

.powerbi-subtitle {
    font-size: 1.2rem;
    color: var(--hover-color);
    opacity: 0.9;
}

.powerbi-dashboard-container {
    width: 100%;
    max-width: 100%;
    background: rgba(41, 46, 51, 0.8);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(18, 247, 255, 0.1);
    border: 1px solid rgba(18, 247, 255, 0.2);
    margin-bottom: 30px;
    box-sizing: border-box;
}

.powerbi-embed-wrapper {
    width: 100% !important;
    min-width: 100%;
    height: 850px;
    margin: 0 auto 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: #000;
}

.powerbi-embed-iframe {
    width: 100% !important;
    min-width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.powerbi-image-wrapper {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.powerbi-dashboard-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.powerbi-dashboard-image:hover {
    transform: scale(1.02);
}

.powerbi-note {
    margin-top: 15px;
    padding: 15px;
    background: rgba(18, 247, 255, 0.1);
    border: 1px solid rgba(18, 247, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.powerbi-note i {
    font-size: 1.2rem;
    color: var(--hover-color);
    flex-shrink: 0;
}

.powerbi-instructions {
    margin-top: 30px;
    padding: 20px;
    background: rgba(41, 46, 51, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(18, 247, 255, 0.2);
}

.powerbi-instructions h3 {
    color: var(--hover-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.powerbi-instructions ol {
    margin-left: 20px;
    color: var(--text-color);
    line-height: 2;
}

.powerbi-instructions code {
    background: rgba(18, 247, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--hover-color);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.interactive-dashboard {
    width: 100%;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(41, 46, 51, 0.8);
    border: 1px solid rgba(18, 247, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--hover-color);
    box-shadow: 0 8px 25px rgba(18, 247, 255, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.stat-icon.survived {
    background: rgba(18, 247, 255, 0.2);
    color: var(--hover-color);
}

.stat-icon.died {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.stat-icon.total {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.stat-icon.rate {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1;
}

.stat-content p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin: 5px 0 0 0;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.chart-container {
    background: rgba(41, 46, 51, 0.8);
    border: 1px solid rgba(18, 247, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.chart-container:hover {
    border-color: var(--hover-color);
    box-shadow: 0 8px 25px rgba(18, 247, 255, 0.2);
}

.chart-container h3 {
    color: var(--hover-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px rgba(18, 247, 255, 0.5);
}

.chart-container canvas {
    max-height: 300px;
}

.powerbi-note.success {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4caf50;
    color: #4caf50;
}

.powerbi-note.success i {
    color: #4caf50;
}

.powerbi-info {
    padding: 20px 0;
}

.powerbi-info h2 {
    font-size: 2rem;
    color: var(--hover-color);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(18, 247, 255, 0.5);
}

.powerbi-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 25px;
}

.powerbi-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(18, 247, 255, 0.1);
    border: 1px solid rgba(18, 247, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.detail-item:hover {
    background: rgba(18, 247, 255, 0.2);
    border-color: var(--hover-color);
    box-shadow: 0 0 15px rgba(18, 247, 255, 0.3);
    transform: translateY(-2px);
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--hover-color);
}

.detail-item span {
    font-size: 1rem;
    color: var(--text-color);
}

.powerbi-dashboard-container:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------------------ */
/* @HD: ### Responsive ### */
/* ------------------------------------------------------------------------ */
@media (max-width: 768px) {
    .powerbi-title {
        font-size: 2rem;
    }
    
    .powerbi-subtitle {
        font-size: 1rem;
    }
    
    .powerbi-container {
        padding: 10px;
    }
    
    .powerbi-dashboard-container {
        padding: 20px;
    }
    
    .powerbi-details {
        flex-direction: column;
    }
    
    .detail-item {
        width: 100%;
    }
    
    .powerbi-embed-wrapper {
        height: 600px;
    }
    
    .powerbi-instructions {
        padding: 15px;
    }
    
    .powerbi-instructions h3 {
        font-size: 1.1rem;
    }
    
    .powerbi-instructions ol {
        font-size: 0.9rem;
    }
    
    .stats-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .powerbi-title {
        font-size: 1.5rem;
    }
    
    .powerbi-content-area,
    .powerbi-content-area.DESKTOP_CONTAINER {
        padding: 20px 10px !important;
    }
    
    .powerbi-dashboard-container {
        padding: 15px;
    }
    
    .powerbi-embed-wrapper {
        height: 500px;
    }
    
    .powerbi-instructions {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .powerbi-instructions ol {
        margin-left: 15px;
        line-height: 1.6;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-content h3 {
        font-size: 1.3rem;
    }
    
    .chart-container {
        padding: 10px;
    }
    
    .chart-container h3 {
        font-size: 1rem;
    }
}
