
/* Éditeur de Scénarios - Styles */

.workflow-editor-container {
    height: calc(100vh - 200px);
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    position: relative;
    overflow: auto;
    background-image: radial-gradient(#dee2e6 1px, transparent 1px);
    background-size: 20px 20px;
}

.workflow-node {
    position: absolute;
    width: 250px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    cursor: grab;
    z-index: 10;
    transition: box-shadow 0.2s, border-color 0.2s;
    user-select: none;
}

.workflow-node:active {
    cursor: grabbing;
}

.workflow-node.selected {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
    z-index: 20;
}

.workflow-node-header {
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workflow-node-title {
    font-weight: 600;
    margin: 0;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workflow-node-body {
    padding: 15px;
}

.workflow-node-footer {
    padding: 8px 15px;
    border-top: 1px solid #e9ecef;
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workflow-connector {
    width: 12px;
    height: 12px;
    background: #adb5bd;
    border-radius: 50%;
    position: absolute;
    border: 2px solid white;
    z-index: 15;
    transition: background-color 0.2s;
}

.workflow-connector:hover {
    background-color: #0d6efd;
    cursor: crosshair;
}

.workflow-connector.top {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.workflow-connector.bottom {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.workflow-connector.left {
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
}

.workflow-connector.right {
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
}

.workflow-connection-line {
    stroke: #adb5bd;
    stroke-width: 2;
    fill: none;
    pointer-events: stroke;
    transition: stroke 0.2s, stroke-width 0.2s;
    cursor: pointer;
}

.workflow-connection-line:hover {
    stroke: #6c757d;
    stroke-width: 3;
}

.workflow-connection-line.selected {
    stroke: #0d6efd;
    stroke-width: 3;
}

.workflow-canvas-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Toolbar */
.editor-toolbar {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 10px;
}

/* Properties Panel */
.properties-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    max-height: calc(100% - 40px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.properties-header {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.properties-body {
    padding: 15px;
}
