/* styles-maps.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #4CAF50, #2196F3);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.description {
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
    color: #ccc;
}

.diagram-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

h2 {
    margin-bottom: 15px;
    color: #4CAF50;
    display: flex;
    align-items: center;
}

h2 i {
    margin-right: 10px;
}

.diagram {
    background: transparent !important; /* Fundo transparente */
    border-radius: 8px;
    padding: 20px;
    overflow: auto;
}

/* Estilo para os elementos do Mermaid com fundo transparente */
.diagram .mermaid {
    background: transparent !important;
}

.diagram svg {
    background-color: transparent !important;
}

.code {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.tab.active {
    background: #4CAF50;
    font-weight: bold;
}

.tab:hover {
    background: rgba(76, 175, 80, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.btn {
    display: inline-block;
    background: #2196F3;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn:hover {
    background: #0b7dda;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #aaa;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* Estilos específicos para tornar os diagramas transparentes */
.mermaid > svg {
    background-color: transparent !important;
}

/* Ajusta cores do texto para contraste com fundo escuro */
.mermaid .label {
    color: #333 !important;
}

.mermaid .node rect,
.mermaid .node circle,
.mermaid .node ellipse,
.mermaid .node polygon {
    fill: #f9f9f9 !important;
    stroke: #666 !important;
}

.mermaid .edgePath .path {
    stroke: #ccc !important;
}

.mermaid .arrowheadPath {
    fill: #ccc !important;
}

.mermaid .edgeLabel {
    background-color: #f9f9f9 !important;
    color: #333 !important;
}