#app {
    width: 240px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 16px;
    box-sizing: border-box;
    background: #1a202c;
    color: #f7fafc;
     z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

h1 {
    color: #f7fafc;
    font-size: 1.3em;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
   
}

body {
    margin-left: 10px;
    padding: 16px;
    background-color: #f8fafc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    background: #f2f4f5;
    background: radial-gradient(circle,rgba(242, 244, 245, 1) 0%, rgba(110, 125, 156, 1) 50%, rgba(98, 100, 105, 1) 100%);
}

ul {
    list-style-type: none;
    padding: 0;
}

#controls {
    position: relative;
    z-index: 10;
}

#flowchart-container {
    position: absolute;
    top: -290px;
    left: -370px;
    width: 10000px;
    height: 10000px;
    z-index: 1;
    transition: transform 0.3s ease;
    overflow: visible;
    transform-origin: center center;
}

textarea, input {
    resize: vertical;
}

.input-group {
    margin-bottom: 6px;
    margin-right: 14px;
}

.input-group label {
    display: block;
    margin-bottom: 3px;
    font-size: 0.85em;
}

.input-group input, .input-group textarea, .input-group select {
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    font-size: 0.9em;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.04);
    border: none;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    box-shadow: none;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    text-overflow: ellipsis;
}

.input-group input:focus, .input-group textarea:focus, .input-group select:focus {
    border-bottom: 1px solid #3498db;
    outline: none;
    background-color: rgba(255, 255, 255, 0.08);
}

.input-group .tooltiptext {
    width: 200px;
    background-color: #34495e;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    font-size: 0.9em;
}

.bold-text {
    font-weight: bold;
    color:white;
    background-color: #0a0000;
    width:180px;
    left: -20px;
    top:-5px;
   
}

#add-ruleset, #download-json, #run-flow, #import-flow, #add-result-set, #share-flowchart, #toggle-bpmn {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    margin-top: 8px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    width: 100%;
    font-size: 0.9em;
    color: white;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

#add-ruleset i, #download-json i, #run-flow i, #import-flow i, #add-result-set i, #share-flowchart i {
    margin-right: 8px;
    font-size: 1em;
}

#add-ruleset:hover, #download-json:hover, #run-flow:hover, #import-flow:hover, #add-result-set:hover, #share-flowchart:hover {
    background-color: rgba(52, 152, 219, 0.6);
}

.question, .result {
    width: 230px;
    max-width: 230px;
    height: auto;
    padding: 12px 10px;
    background-color: #ffffff;
    border-radius: 4px;
    position: absolute;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    border: none;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    overflow: visible;
}

.question:hover, .result:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.question.jtk-dragging, .result.jtk-dragging {
    cursor: grabbing;
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.highlight {
    border: 2px solid #ff6b6b;
    background-color: #fff9f9;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 15px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 107, 107, 0.5); }
    100% { box-shadow: 0 0 15px rgba(255, 107, 107, 0.3); }
}

.answer {
    margin-top: 2px;
    margin-bottom: 2px;
    position: relative;
    background-color: #f7fafc;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-height: 20px;
    padding-right: 24px;
    padding-left: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.answer:hover {
    background-color: #edf2f7;
}

.answer .input-group {
    margin-bottom: 0;
    margin-right: 20px;
    margin-left: 4px;
    width: auto;
    max-width: 180px;
}

.answer .input-group input {
    padding: 4px 6px;
    height: auto;
    min-height: 24px;
    font-size: 0.85em;
    white-space: normal !important;
    word-break: break-word !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-overflow: ellipsis;
    background: transparent;
    border-bottom: 1px dashed #cbd5e0;
}

.endpoint {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: #3498db;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(52, 152, 219, 0.4);
    transition: all 0.2s ease;
    z-index: 2;
}

.endpoint:hover {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 6px rgba(52, 152, 219, 0.6);
}

.remove-ruleset, .remove-decision {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1em;
    position: absolute;
    opacity: 0;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.question:hover .remove-ruleset,
.result:hover .remove-ruleset {
    display: flex;
    position: absolute;
    right: -12px;
    top: -12px;
    opacity: 1;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.answer:hover .remove-decision {
    display: flex;
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.remove-ruleset:hover, .remove-decision:hover {
    background-color: #e74c3c;
    color: white;
}

.set-start {
    display: none;
    position: absolute;
    top: -12px;
    left: -12px;
    background: #fff;
    border: none;
    color: #2ecc71;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.question:hover .set-start {
    display: flex;
    opacity: 1;
}

.set-start.active {
    display: flex;
    opacity: 1;
    color: #fff;
    background-color: #2ecc71;
}

#modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

#modal-content {
    background-color: #fff;
    position: fixed;
    height: 100vh;
    left: 0;
    padding: 20px;
    border: none;
    width: 360px;
    max-width: 90%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
    overflow-y: auto;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

#close-modal {
    color: #555;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#close-modal:hover {
    color: #000;
}

.answer-button {
    margin-top: 6px;
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.answer-button2 {
    margin-top: 6px;
    padding: 8px 12px;
    line-height: 1.2;
    height: auto;
    min-height: 20px;
    white-space: normal;
    word-wrap: break-word;
    background-color: #ffffff;
    color: #333;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    font-size: 0.9em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
}

.answer-button:hover {
    background-color: #2980b9;
}

.answer-button2:hover {
    background-color: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

#flowchart-container.panning {
    cursor: move;
}

.add-description {
    position: absolute;
    bottom: 3px;
    left: 3px;
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.add-description:hover {
    color: #718096;
}

.add-description.has-description {
    color: #3498db;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    max-width: 280px;
    width: auto;
    min-width: 180px;
    word-wrap: break-word;
    white-space: normal;
    background-color: #2d3748;
    color: #fff;
    text-align: left;
    border-radius: 4px;
    padding: 6px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -90px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateY(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-size: 0.85em;
    line-height: 1;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2d3748 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.minimal #controls {
    display: none;
}

.minimal #flowchart-container {
    display: none;
}

@media (max-width: 768px) {
    #app {
        width: 100%;
        height: auto;
        position: relative;
        transform: translateX(-100%);
    }

    body {
        margin-left: 0;
    }
}

/* Verktygsfält för flödeshantering */
.flowchart-toolbar {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px;
    z-index: 950;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flowchart-toolbar button {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: none;
    background-color: #f8fafc;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.flowchart-toolbar button:hover {
    background-color: #edf2f7;
    color: #3498db;
}

.flowchart-toolbar button.active {
    background-color: #3498db;
    color: white;
}

.zoom-controls {
    display: flex;
    gap: 4px;
}

/* Förbättrad hantering av jsPlumb-anslutningar */
.jtk-connector {
    z-index: 4;
    opacity: 0.8;
    transition: opacity 0.3s;
    pointer-events: none;
}

.jtk-connector.hidden {
    opacity: 0 !important;
    visibility: hidden;
}

.jtk-connector:hover {
    opacity: 1;
    z-index: 5;
}

.jtk-endpoint {
    z-index: 8;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

/* Specifik styling för höger- och vänster-endpoints */
.jtk-endpoint-anchor-Right {
    transform: translateX(2px);
}

.jtk-endpoint-anchor-Left {
    transform: translateX(-2px);
}

/* Förbättra själva anslutningarna */
.jtk-connector {
    z-index: 4;
    opacity: 0.8;
    transition: opacity 0.3s;
    pointer-events: none;
}

/* Förbättrade pilar på anslutningarna */
.jtk-overlay-arrow {
    width: 10px !important;
    height: 10px !important;
    fill: #e31037;
}

/* Förbättra visuell återkoppling för dragbara element */
.question, .result {
    transition: all 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease; 
}

.question.jtk-dragging, .result.jtk-dragging {
    cursor: grabbing !important;
    transform: scale(1.02);
    z-index: 100 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    opacity: 0.9;
    background-color: #fcfcfc;
    transition: transform 0.1s, box-shadow 0.2s !important;
}

.endpoint {
    transition: transform 0.2s, opacity 0.2s;
}

.dragging-active .endpoint:not(.jtk-dragging) {
    opacity: 0.4;
}

/* Förbättra body och html för att hantera overflow korrekt */
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

/* Se till att alla input-element inom kort också radbryts */
.question *, .result * {
    max-width: 100%;
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Styling för textareas som ersätter inputs för svarsalternativ */
.decision-input {
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    min-height: 24px;
    font-size: 0.85em;
    background: transparent;
    border: none;
    border-bottom: 1px dashed #cbd5e0;
    resize: none;
    overflow: hidden;
    line-height: 1;
    font-family: inherit;
    transition: height 0.1s ease, border-bottom 0.2s ease;
}

.decision-input:focus {
    outline: none;
    border-bottom: 1px solid #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}

/* Förbättra ruleset-styling för att hantera längre text */
.question, .result {
    width: 230px;
    max-width: 230px;
    height: auto;
    padding: 12px 10px;
    overflow: visible;
}

/* Justera rulesetname/question-input för bättre radbrytning */
.ruleset-name, .ruleset-question {
    width: 100%;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    text-align: center;
    padding: 4px;
    border: none;
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
}

/* Förbättra styling för 'ta bort svarsalternativ'-knappen */
.remove-decision {
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background-color: #f7fafc;
    color: #a0aec0;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.7;
    z-index: 10;
}

.answer:hover .remove-decision {
    opacity: 1;
    color: #e53e3e; /* Röd färg vid hover */
}

.remove-decision:hover {
    background-color: #fed7d7;
    color: #e53e3e;
    transform: translateY(-50%) scale(1.1);
}

/* Styling för anslutningsläge */
.connection-mode {
    cursor: crosshair !important;
}

.connect-button {
    background-color: #e31037;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 10;
}

.connect-button i {
    font-size: 12px;
}

.connect-button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.connect-button.connecting {
    animation: pulse-connect 1s infinite alternate;
    background-color: #2ecc71;
}

@keyframes pulse-connect {
    from { box-shadow: 0 0 5px #2ecc71; }
    to { box-shadow: 0 0 12px #2ecc71; }
}

/* Potentiella anslutningspunkter */
.connectable {
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.connectable:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5) !important;
    border: 2px dashed #2ecc71 !important;
    z-index: 1000;
}

/* Tooltip för hjälp vid anslutning */
.connection-tooltip {
    position: fixed;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Styling för provkörning av flödet */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.modal-content {
    background-color: #1a202c;
    margin: 0;
    padding: 20px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    color: white;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close-button:hover {
    color: white;
}

/* Styling för flödesinnehåll */
.flow-question {
    margin-bottom: 20px;
}

.flow-question h3 {
    margin-top: 0;
    color: #e31037;
}

.flow-decisions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flow-decision-button {
    background-color: #2d3748;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.flow-decision-button:hover {
    background-color: #4a5568;
}

.flow-decision-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.flow-result {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
}

.flow-button {
    background-color: #e31037;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.flow-button:hover {
    background-color: #c41230;
}

/* Styling för highlightade element */
.highlight {
    box-shadow: 0 0 35px rgba(175, 25, 245, 0.8) !important;
    border: 6px solid #df18ce !important;
    z-index: 1000;
}

.highlight-connection {
    stroke: #ff1493 !important;
    stroke-width: 18px !important;
    filter: drop-shadow(0 0 15px rgba(255, 20, 147, 0.8)) !important;
    animation: pulse-connection 1.5s infinite alternate;
    z-index: 999;
}

@keyframes pulse-connection {
    from { 
        stroke-width: 16px; 
        filter: drop-shadow(0 0 10px rgba(255, 20, 147, 0.6));
    }
    to { 
        stroke-width: 22px; 
        filter: drop-shadow(0 0 20px rgba(255, 20, 147, 1));
    }
}

.flow-description {
    font-style: italic;
    margin-top: 8px;
    padding: 8px;
    border-left: 3px solid #4a5568;
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 0.9em;
}

.flow-history {
    margin-top: 24px;
    padding: 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    font-size: 0.98em;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flow-history-card {
    background: #232946;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    border-left: 5px solid #e31037;
    color: #f7fafc;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow-history-question {
    font-weight: 600;
    margin-bottom: 4px;
    color: #e0e0e0;
}

.flow-history-step {
    color: #e31037;
    font-size: 1.05em;
    margin-right: 8px;
}

.flow-history-qtext {
    font-size: 0.98em;
    color: #bdbdbd;
    margin-left: 2px;
}

.flow-history-answer {
    margin-top: 2px;
    font-size: 1em;
}

.flow-history-answer-label {
    color: #bdbdbd;
    margin-right: 6px;
}

.flow-history-answer-value {
    color: #2ecc71;
    font-weight: bold;
}

.flow-history-result {
    background: linear-gradient(90deg, #e31037 0%, #ff7eb3 100%);
    color: #fff;
    border-left: 7px solid #fff;
    box-shadow: 0 4px 16px rgba(227, 16, 55, 0.15);
    margin-top: 10px;
    margin-bottom: 0;
    align-items: flex-start;
}

.flow-history-result-header {
    font-size: 1.15em;
    font-weight: bold;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flow-history-result-value {
    font-size: 1.25em;
    font-weight: bold;
    margin-left: 2px;
    margin-bottom: 2px;
    color: #fff;
    letter-spacing: 0.5px;
}

.bpmn-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 34, 44, 0.98);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.bpmn-close {
    position: absolute;
    top: 24px;
    right: 36px;
    font-size: 2.5em;
    color: #fff;
    cursor: pointer;
    z-index: 100001;
    font-weight: bold;
    transition: color 0.2s;
}
.bpmn-close:hover {
    color: #e31037;
}

#bpmn-canvas {
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 0 32px rgba(0,0,0,0.18);
    max-width: 98vw;
    max-height: 92vh;
    width: 96vw;
    height: 88vh;
    display: block;
}

.bpmn-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 100002;
    max-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Flödesinformation */
.flow-info-panel {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flow-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.flow-info-header h3 {
    margin: 0;
    color: #333;
}

.edit-flow-info {
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.flow-info-content div {
    margin-bottom: 5px;
}

/* Redigera flödesinfo modal */
.flow-info-modal .modal-content {
    max-width: 500px;
}

.flow-info-modal .form-group {
    margin-bottom: 15px;
}

.flow-info-modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.flow-info-modal input, 
.flow-info-modal textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.flow-info-modal textarea {
    min-height: 100px;
}

.flow-info-modal .buttons {
    text-align: right;
    margin-top: 20px;
}

.flow-info-modal button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.flow-info-modal .save-btn {
    background-color: #4285f4;
    color: white;
}

.flow-info-modal .cancel-btn {
    background-color: #f1f1f1;
}

/* Ändra styling för rubriken så att den ser klickbar ut */
.clickable-title {
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clickable-title:hover {
    color: #4285f4;
}

.clickable-title i {
    margin-left: 8px;
    font-size: 0.8em;
    opacity: 0.7;
}

.version-tag {
    font-size: 0.6em;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: normal;
    vertical-align: middle;
}