.mapa-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.mapa-connections svg {
    width: 100%;
    height: 100%;
}

.mapa-connections line {
    stroke: var(--accent);
    stroke-width: 2;
    opacity: 0.4;
}

.mapa-connections line.concluido {
    stroke: var(--success);
    opacity: 0.7;
}

.mapa-connections line.bloqueado {
    stroke: var(--danger);
    stroke-dasharray: 5, 5;
}

.node {
    position: absolute;
    width: 150px;
    padding: 14px;
    background: var(--secondary);
    border-radius: 10px;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
    text-align: center;
    box-shadow: var(--shadow);
}

.node:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.node.planejamento {
    border-color: var(--planejamento);
}

.node.planejamento .node-icon {
    background: rgba(139, 92, 246, 0.15);
    color: var(--planejamento);
}

.node.andamento {
    border-color: var(--andamento);
}

.node.andamento .node-icon {
    background: rgba(14, 165, 233, 0.15);
    color: var(--andamento);
}

.node.concluido {
    border-color: var(--concluido);
    background: rgba(34, 197, 94, 0.08);
}

.node.concluido .node-icon {
    background: rgba(34, 197, 94, 0.15);
    color: var(--concluido);
}

.node.bloqueado {
    border-color: var(--danger);
    opacity: 0.7;
}

.node.bloqueado::after {
    content: "🔒";
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 1rem;
}

.node-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 1rem;
}

.node-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
    word-break: break-word;
}

.node-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.node-priority {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.node-priority.alta {
    background: var(--danger);
}

.node-priority.media {
    background: var(--warning);
}

.node-priority.baixa {
    background: var(--success);
}

.node-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    flex-wrap: wrap;
}

.nodes-list {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.nodes-list .node-card {
    background: var(--secondary);
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid var(--accent);
}

.nodes-list .node-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nodes-list .node-card.planejamento {
    border-left-color: var(--planejamento);
}

.nodes-list .node-card.andamento {
    border-left-color: var(--andamento);
}

.nodes-list .node-card.concluido {
    border-left-color: var(--concluido);
}

.nodes-list .node-card-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.nodes-list .node-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
}

.projeto-progress {
    margin-bottom: 16px;
    padding: 14px;
    background: var(--primary);
    border-radius: 8px;
}

.projeto-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.projeto-progress-name {
    font-weight: 600;
}

.projeto-progress-percent {
    color: var(--success);
    font-weight: 600;
}

.projeto-progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.projeto-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.panel-dependencia-item {
    padding: 8px 12px;
    background: var(--primary);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.panel-dependencia-item.concluida {
    opacity: 0.6;
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .node-panel {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }
    
    .mapa-container {
        padding: 12px;
    }
    
    .node {
        width: 130px;
        padding: 10px;
    }
    
    .node-row {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .nodes-list {
        grid-template-columns: 1fr;
    }
}
