html,
body,
#map {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.title {
    position: fixed;
    top: 0%;
    left: 35%;
    margin-left: 15%;
    font-size: 9pt;
    color: #0874dc !important;
    text-decoration: none;
    font-weight: 900;
    text-align: center;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8);
    border-width: 1px;
    padding-top: 5px;
    padding-right: 8px;
    width: 20% !important;
    padding-bottom: 0.2%;
    padding-left: 5;
    cursor: grab;
    background-color: rgb(255, 255, 255);
    border-radius: 6px;
}

@media screen and (max-width: 480px) {
    .title {
        position: fixed;
        top: 0%;
        left: 18%;
        margin-left: 5%;
        font-size: 6pt;
        color: #141414 !important;
        text-decoration: none;
        font-weight: 900;
        text-align: center;
        border-style: solid;
        border-color: rgba(0, 0, 0, 0.8);
        border-width: 1px;
        padding-top: 5px;
        padding-right: 8px;
        width: 20% !important;
        padding-bottom: 5px;
        padding-left: 10px;
        opacity: 0.8;
        cursor: grab;
        background-color: white;
        border-radius: 6px;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .title {
        position: fixed;
        top: 0%;
        left: 15%;
        margin-left: 5%;
        font-size: 4pt;
        color: #141414 !important;
        text-decoration: none;
        font-weight: 900;
        text-align: center;
        border-style: solid;
        border-color: rgba(0, 0, 0, 0.8);
        border-width: 1px;
        padding-top: 5px;
        padding-right: 8px;
        width: 30% !important;
        padding-bottom: 5px;
        padding-left: 10px;
        opacity: 0.8;
        cursor: grab;
        background-color: white;
        border-radius: 6px;
    }
}

.leaflet-sidebar-pane {
    min-width: fit-content !important;
    padding: 10px 0px;
}

#sidebar {
    position: absolute;
    left: -2px;
    top: -2px;
    bottom: -1px;
    border-top-left-radius: 0;
    z-index: 2000 !important;
    margin-right: 17%;
    max-width: 350px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.logo-grid {
    position: absolute;
    bottom: 5%;
    display: flex;
    flex-direction: row;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    align-items: center;
    padding: 0;
    gap: 5%;
}

.logo-img {
    width: 17%;
    height: auto;
}

/* Imagem “aea.png” deve ser 5% maior = 31.5% */
.aea-img {
    width: 25%;
}



.leaflet-sidebar-content {
    display: flex;
    flex-direction: column;
}


.leaflet-control-layers {
    background-color: #ffffff00;
    border: 0px solid #00052e00;
    box-shadow: 0 0 0px rgba(0, 85, 204, 0);
}

/* Esconde os radio buttons */
.leaflet-control-layers input[type="radio"] {
    display: none;
}

/* Estiliza os labels como botões */
.leaflet-control-layers label {
    background-color: #fafafa;
    /* border: 1px solid #00052e; */
    box-shadow: #0000003f 0px 0px 2px;
    border-radius: 6px;
    padding: 6px 12px;
    margin-bottom: 5px;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 1%;
}

/* Estiliza os labels como botões */
.leaflet-control-layers label:hover {
    transition: all 0.2s ease-in-out;
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Aplica estilos ao label quando o input dentro dele estiver selecionado */
.leaflet-control-layers label:has(input[type="radio"]:checked) {
    background-color: #0874dc;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 6px rgba(0, 85, 204, 0.4);
}




/* DIV DAS LAYERS mapbase (tipo de mapa) */
.leaflet-control-layers-base {
    display: flex;
    flex-direction: row;
    /* Coloca os elementos em coluna */
    white-space: nowrap;
    /* Impede a quebra de linha */
    gap: 1%;
    /* Espaçamento entre os itens */
    align-items: flex-start;
    /* Alinha à esquerda */
    width: 100%;
    margin-bottom: 5%;
}

/* LABELS DA DIV mapbase (tipo de mapa) */
.leaflet-control-layers-selector label {
    height: 10px;
}


/* DIV DAS LAYERS overlayes (camadas do mapa) */
.leaflet-control-layers-overlays input[type="checkbox"] {
    display: none;
}

.leaflet-control-layers-overlays {
    margin-top: 5%;
}


/* LABELS DA DIV overlays (camadas do mapa) */
.leaflet-control-layers-overlays label {
    display: flex;
    flex-direction: column;
    /* Coloca os elementos em coluna */
    margin-bottom: 4%;
    align-items: flex-start;
    /* Alinha à esquerda */
    width: 90%;
}

.leaflet-control-layers-overlays label:hover {
    transition: all 0.2s ease-in-out;
    transform: scale(1.03);
    box-shadow: 0 4px 12px #0876dc3f;
}


.leaflet-control-layers-overlays label:has(input[type="checkbox"]:checked) {
    background-color: #0874dc;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 6px rgba(0, 85, 204, 0.4);
}

/* Estilos para sidebar interativa */
.info-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #0874dc;
}

.info-section h3 {
    margin: 0 0 10px 0;
    color: #0874dc;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section p {
    margin: 0;
    line-height: 1.5;
    color: #333;
}

.risk-types {
    list-style: none;
    padding: 0;
    margin: 0;
}

.risk-types li {
    display: flex;
    align-items: center;
    padding: 5px 0;
    font-size: 14px;
}

.risk-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.instructions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions li {
    display: flex;
    align-items: center;
    padding: 5px 0;
    font-size: 14px;
    gap: 8px;
}

.instructions i {
    color: #0874dc;
    width: 16px;
}

.tool-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.tool-section h3 {
    margin: 0 0 10px 0;
    color: #0874dc;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-section ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.tool-section li {
    display: flex;
    align-items: center;
    padding: 3px 0;
    font-size: 14px;
    gap: 8px;
}

.tool-section i {
    color: #0874dc;
    width: 16px;
}

.export-btn {
    background: linear-gradient(135deg, #0874dc, #0655a6);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: linear-gradient(135deg, #0655a6, #044285);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(8, 116, 220, 0.3);
}

/* Melhorar abas da sidebar */
.leaflet-sidebar-tabs ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.leaflet-sidebar-tabs ul li a:hover {
    background-color: rgba(8, 116, 220, 0.1);
    transform: scale(1.05);
}

.leaflet-sidebar-tabs ul li.active a {
    background-color: #0874dc;
    color: white;
}

/* Headers com ícones */
.leaflet-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.leaflet-sidebar-header i {
    color: #0874dc;
}

/* Risk Filter Panel */
.risk-filter-panel {
    position: absolute;
    bottom: 90px;
    right: 15px;
    width: 240px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 10px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    font-size: 12px;
    transition: transform 0.3s ease, width 0.3s ease;
}

.risk-filter-panel.collapsed {
    width: 50px;
    padding: 5px;
    overflow: hidden;
}

.risk-filter-panel.collapsed .panel-content {
    display: none;
}

.risk-filter-panel h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #0874dc;
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.risk-filter-panel.collapsed h3 {
    border: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.collapse-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #0874dc;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.collapse-btn:hover {
    color: #0661b8;
    transform: scale(1.1);
}

.risk-filter-panel.collapsed .collapse-btn {
    transform: rotate(180deg);
}

.filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.filter-item:hover {
    background: rgba(8, 116, 220, 0.05);
}

.filter-item input[type="checkbox"] {
    margin-right: 6px;
    width: 14px;
    height: 14px;
    accent-color: #0874dc;
    flex-shrink: 0;
}

.filter-item label {
    flex: 1;
    font-size: 11px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.filter-item .risk-color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.filter-controls {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 4px;
}

.filter-btn {
    background: #0874dc;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    flex: 1;
    transition: background-color 0.2s;
}

.filter-btn:hover {
    background: #0661b8;
}

.filter-btn.secondary {
    background: #6c757d;
}

.filter-btn.secondary:hover {
    background: #5a6268;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .risk-filter-panel {
        width: 180px;
        right: 10px;
        bottom: 100px;
        max-height: 220px;
        padding: 8px;
        font-size: 11px;
    }

    .risk-filter-panel.collapsed {
        width: 40px;
        padding: 5px;
        bottom: 100px;
    }

    .risk-filter-panel h3 {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .filter-item {
        padding: 3px 4px;
        margin-bottom: 3px;
    }

    .filter-item label {
        font-size: 10px;
    }

    .filter-item .risk-color-indicator {
        width: 10px;
        height: 10px;
    }

    .filter-btn {
        font-size: 9px;
        padding: 2px 6px;
    }

    .collapse-btn {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .risk-filter-panel {
        width: 160px;
        bottom: 120px;
        right: 10px;
        max-height: 180px;
        padding: 6px;
    }

    .risk-filter-panel.collapsed {
        width: 60px;
        bottom: 120px;
    }

    .filter-item {
        padding: 2px 4px;
        margin-bottom: 2px;
    }

    .filter-item label {
        font-size: 9px;
    }

    .filter-item .risk-color-indicator {
        width: 8px;
        height: 8px;
    }

    .filter-btn {
        font-size: 8px;
        padding: 2px 4px;
    }
}

@media screen and (max-width: 320px) {
    .risk-filter-panel {
        width: 140px;
        bottom: 130px;
        right: 3px;
        max-height: 150px;
        padding: 4px;
    }

    .risk-filter-panel.collapsed {
        width: 30px;
        bottom: 130px;
    }

    .risk-filter-panel h3 {
        font-size: 10px;
    }

    .collapse-btn {
        font-size: 10px;
    }
}

/* Estilos para popup interativo das áreas de risco */
.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 0;
    max-width: 450px;
    min-width: 350px;
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
}

.custom-popup .leaflet-popup-tip {
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.risk-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.4;
}

.popup-header {
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.risk-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.risk-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.risk-title p {
    margin: 4px 0 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.popup-content {
    padding: 20px;
    background: #fff;
}

.risk-indicators {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.indicator {
    flex: 1;
    text-align: center;
}

.indicator-label {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

.indicator-value {
    display: block;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.popup-tabs {
    border-top: 1px solid #eee;
    margin-top: 16px;
    padding-top: 16px;
}

.tab-buttons {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: #f5f5f5;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.tab-btn.active {
    background: #2196F3;
    color: white;
}

.tab-btn:hover {
    background: #e0e0e0;
}

.tab-btn.active:hover {
    background: #1976D2;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item i {
    color: #2196F3;
    margin-top: 2px;
    min-width: 12px;
}

.info-item .label {
    font-weight: 600;
    color: #555;
    min-width: 60px;
}

.info-item .value {
    color: #333;
    word-break: break-word;
}

.info-item .description {
    line-height: 1.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-card {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    background: #2196F3;
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.stat-info {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.dates-info {
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}

.date-item i {
    color: #2196F3;
    min-width: 14px;
}

.date-item .label {
    font-weight: 600;
    color: #555;
}

.date-item .value {
    color: #333;
}

.docs-section {
    text-align: center;
}

.doc-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.doc-item i {
    color: #2196F3;
    min-width: 14px;
}

.doc-item .label {
    font-weight: 600;
    color: #555;
}

.doc-item .value {
    color: #333;
}

.doc-actions {
    margin-top: 12px;
}

.doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
}

.doc-btn:hover {
    background: #1976D2;
    color: white;
}

.no-docs {
    color: #666;
    font-size: 12px;
    font-style: italic;
    margin: 0;
}

.popup-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.action-btn {
    padding: 8px 12px;
    border: none;
    background: #2196F3;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: #1976D2;
}

/* Responsividade para popup */
@media (max-width: 768px) {
    .custom-popup .leaflet-popup-content-wrapper {
        max-width: 320px;
        min-width: 320px;
    }

    .popup-header {
        padding: 14px 18px;
    }

    .risk-icon {
        font-size: 22px;
        min-width: 38px;
        height: 38px;
    }

    .risk-title h3 {
        font-size: 15px;
    }

    .popup-content {
        padding: 18px;
    }

    .tab-btn {
        padding: 7px 10px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .custom-popup .leaflet-popup-content-wrapper {
        max-width: 260px;
        min-width: 260px;
    }

    .popup-header {
        padding: 10px 12px;
    }

    .risk-icon {
        font-size: 18px;
        min-width: 32px;
        height: 32px;
    }

    .risk-title h3 {
        font-size: 13px;
    }

    .risk-title p {
        font-size: 11px;
    }

    .popup-content {
        padding: 12px;
    }

    /* Simplificar indicadores no mobile */
    .risk-indicators {
        gap: 6px;
        margin-bottom: 12px;
    }

    .indicator-label {
        font-size: 9px;
    }

    .indicator-value {
        padding: 4px 8px;
        font-size: 10px;
    }

    /* Esconder abas no mobile - mostrar tudo em uma coluna */
    .popup-tabs {
        border-top: 1px solid #eee;
        margin-top: 12px;
        padding-top: 12px;
    }

    .tab-buttons {
        display: none;
    }

    .tab-content {
        display: block !important;
        margin-bottom: 12px;
    }

    .tab-content:last-child {
        margin-bottom: 0;
    }

    /* Simplificar grid de informações */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .info-item {
        padding: 6px;
        font-size: 11px;
    }

    .info-item .label {
        min-width: 50px;
        font-size: 10px;
    }

    .info-item .value {
        font-size: 11px;
    }

    /* Simplificar estatísticas */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }

    .stat-card {
        padding: 10px;
        gap: 8px;
    }

    .stat-icon {
        min-width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .stat-number {
        font-size: 16px;
    }

    .stat-label {
        font-size: 9px;
    }

    /* Simplificar datas */
    .date-item {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .date-item .label {
        font-size: 9px;
    }

    .date-item .value {
        font-size: 10px;
    }

    /* Simplificar documentos */
    .doc-item {
        padding: 8px;
        font-size: 10px;
    }

    .doc-btn {
        padding: 8px 12px;
        font-size: 10px;
    }

    /* Simplificar ações */
    .popup-actions {
        padding: 8px 12px;
    }

    .action-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
}

@media (max-width: 320px) {
    .custom-popup .leaflet-popup-content-wrapper {
        max-width: 240px;
        min-width: 240px;
    }

    .popup-header {
        padding: 8px 10px;
    }

    .risk-icon {
        font-size: 16px;
        min-width: 28px;
        height: 28px;
    }

    .risk-title h3 {
        font-size: 12px;
    }

    .risk-title p {
        font-size: 10px;
    }

    .popup-content {
        padding: 10px;
    }

    .risk-indicators {
        gap: 4px;
        margin-bottom: 10px;
    }

    .indicator-label {
        font-size: 8px;
    }

    .indicator-value {
        padding: 3px 6px;
        font-size: 9px;
    }

    .info-item {
        padding: 4px;
        font-size: 10px;
    }

    .info-item .label {
        min-width: 40px;
        font-size: 9px;
    }

    .info-item .value {
        font-size: 10px;
    }

    .stat-card {
        padding: 8px;
        gap: 6px;
    }

    .stat-icon {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .stat-number {
        font-size: 14px;
    }

    .stat-label {
        font-size: 8px;
    }

    .date-item {
        font-size: 9px;
        margin-bottom: 3px;
    }

    .doc-btn {
        padding: 6px 10px;
        font-size: 9px;
    }

    .popup-actions {
        padding: 6px 10px;
    }

    .action-btn {
        padding: 4px 8px;
        font-size: 9px;
    }
}

/* Estilos para as logos no mobile */
.logo2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .logo2 div {
        gap: 4px !important;
    }

    .logo2 img {
        width: 25px !important;
        height: auto;
    }

    .logo2 a img {
        width: 60px !important;
    }
}

@media (max-width: 480px) {
    .logo2 div {
        gap: 3px !important;
    }

    .logo2 img {
        width: 20px !important;
        height: auto;
    }

    .logo2 a img {
        width: 45px !important;
    }
}

@media (max-width: 320px) {
    .logo2 div {
        gap: 2px !important;
    }

    .logo2 img {
        width: 15px !important;
        height: auto;
    }

    .logo2 a img {
        width: 35px !important;
    }
}


/* Botão da tabela de atributos */
.attribute-table-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attribute-table-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
    background: linear-gradient(135deg, #1976D2, #1565C0);
}

.attribute-table-btn i {
    font-size: 16px;
}

/* Modal da tabela de atributos */
.attribute-table-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.attribute-table-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.attribute-table-container {
    background: white;
    border-radius: 12px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.attribute-table-header {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attribute-table-header h2 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attribute-table-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
}

.attribute-table-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.attribute-table-content {
    flex: 1;
    overflow: auto;
    padding: 0;
}

.attribute-table-info {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.table-info-text {
    font-size: 14px;
    color: #666;
}

.table-search {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 250px;
}

.attribute-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.attribute-table th,
.attribute-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.attribute-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

.attribute-table tr:hover {
    background: #f8f9fa;
}

.attribute-table tr.selected {
    background: #e3f2fd;
}

.risk-type-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.risk-type-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.risk-level-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    white-space: nowrap;
}

/* Responsividade */
@media (max-width: 768px) {
    .attribute-table-container {
        width: 98%;
        max-height: 95vh;
    }

    .attribute-table-header {
        padding: 15px;
    }

    .attribute-table-header h2 {
        font-size: 16px;
    }

    .table-search {
        width: 200px;
    }

    .attribute-table {
        font-size: 12px;
    }

    .attribute-table th,
    .attribute-table td {
        padding: 8px 4px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .modal-header {
        border-radius: 0;
    }
    
    #attributes-table th:nth-child(n+6) {
        display: none;
    }
    
    #attributes-table td:nth-child(n+6) {
        display: none;
    }
}

/* Botão da Tabela de Atributos no Painel de Filtros */
.filter-btn.table-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.filter-btn.table-btn:hover {
    background: linear-gradient(135deg, #138496, #17a2b8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.filter-btn.table-btn i {
    font-size: 14px;
}

/* Modal da Tabela de Atributos */
.attributes-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-controls {
    display: flex;
    gap: 10px;
}

.export-table-btn, .close-modal-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.export-table-btn {
    background: #28a745;
    color: white;
}

.export-table-btn:hover {
    background: #218838;
}

.close-modal-btn {
    background: #dc3545;
    color: white;
}

.close-modal-btn:hover {
    background: #c82333;
}

.modal-body {
    flex: 1;
    padding: 20px 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.table-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.table-info span {
    font-weight: 500;
    color: #666;
}

.table-filters input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 250px;
}

.table-container {
    flex: 1;
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#attributes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

#attributes-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 10;
}

#attributes-table th:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

#attributes-table th i {
    margin-left: 5px;
    opacity: 0.6;
}

#attributes-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

#attributes-table tr:hover {
    background-color: #f8f9fa;
}

#attributes-table tr:nth-child(even) {
    background-color: #fafafa;
}

#attributes-table tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

.risk-type-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.risk-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.risk-low {
    background-color: #4CAF50;
}

.risk-medium {
    background-color: #FF9800;
}

.risk-high {
    background-color: #F44336;
}

.risk-very-high {
    background-color: #9C27B0;
}

.vuln-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background-color: #e9ecef;
    color: #495057;
}

.action-btn.small {
    padding: 6px 8px;
    margin: 0 2px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #007bff;
    color: white;
    transition: background-color 0.3s ease;
}

.action-btn.small:hover {
    background: #0056b3;
}

.action-btn.small:first-child {
    background: #28a745;
}

.action-btn.small:first-child:hover {
    background: #218838;
}

/* Responsividade para Mobile */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 98%;
        height: 95vh;
        margin: 1% auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.2em;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
    
    .table-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .table-filters input {
        width: 100%;
    }
    
    #attributes-table {
        font-size: 12px;
    }
    
    #attributes-table th,
    #attributes-table td {
        padding: 8px 4px;
    }
}

@media screen and (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .modal-header {
        border-radius: 0;
    }
    
    #attributes-table th:nth-child(n+6) {
        display: none;
    }
    
    #attributes-table td:nth-child(n+6) {
        display: none;
    }
}