#pert-container {
    height: 800px;
    background-color: #fff;
    margin: 20px 0;
}

.pert-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border: 1px solid #999;
    border-radius: 4px;
}

.legend-line {
    width: 30px;
    height: 2px;
}

/* Style des nœuds */
.vis-network .vis-node {
    font-size: 14px !important;
    padding: 10px;
    border-radius: 5px;
}

/* Style pour le contenu des nœuds */
.node-content {
    width: 200px;
    min-height: 100px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: Arial, sans-serif;
}

/* Style pour le titre de la tâche */
.task-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

/* Style pour la durée */
.task-duration {
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}

/* Style pour les dates */
.task-dates {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
}

.date-start, .date-end {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 3px 6px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

/* Style pour les nœuds critiques */
.critical-node {
    background-color: #ff4444 !important;
    color: white;
}

/* Style pour les nœuds non-critiques */
.non-critical-node {
    background-color: #4CAF50 !important;
    color: white;
}

/* Style pour les arêtes */
.vis-network .vis-edge {
    stroke-width: 2px;
}

.vis-network .vis-edge.critical-edge {
    stroke: #ff4444 !important;
}

.vis-network .vis-edge.normal-edge {
    stroke: #2196F3 !important;
}

/* Style pour la légende */
.legend-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 3px;
}

/* Ajustement du layout */
.vis-network {
    outline: none !important;
}

.vis-network:focus {
    outline: none !important;
}