/* ==========================================================================
   Flowchart Maker - Frontend Read-Only View
   ========================================================================== */

#fcm-frontend-wrap {
    max-width: 100%;
    margin: 20px auto;
}

.fcm-frontend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #1d2327;
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.fcm-frontend-title {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    color: #fff;
}

.fcm-frontend-controls {
    display: flex;
    gap: 6px;
}

.fcm-fe-btn {
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.fcm-fe-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---------- Canvas ---------- */

#fcm-fe-canvas-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #f9fafb;
    background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
    cursor: grab;
}

#fcm-fe-canvas-container.fcm-panning {
    cursor: grabbing;
}

#fcm-fe-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    transform-origin: 0 0;
}

#fcm-fe-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

/* ---------- Nodes (read-only) ---------- */

.fcm-fe-node {
    position: absolute;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    word-wrap: break-word;
}

.fcm-fe-node a {
    color: #3b82f6;
    text-decoration: underline;
}

/* ---------- Connection labels ---------- */

.fcm-fe-connection-label {
    font-size: 11px;
    fill: #4b5563;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
}
