body {
    font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%);
    color: #00fff7;
    min-height: 100vh;
}

h1, h2 {
    text-align: center;
    color: #ff00cc;
    text-shadow: 0 0 10px #ff00cc, 0 0 20px #00fff7;
    font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 2px;
}

.content, section {
    max-width: 900px;
    margin: 20px auto;
    padding: 16px;
    background: rgba(20, 20, 40, 0.85);
    border-radius: 16px;
    box-shadow: 0 0 30px #00fff7, 0 0 10px #ff00cc inset;
}

#fsm-graph {
    width: 100%;
    min-height: 400px;
    height: 60vw;
    max-height: 600px;
    border: 2px solid #ff00cc;
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    border-radius: 16px;
    box-shadow: 0 0 40px #00fff7, 0 0 10px #ff00cc inset;
    margin-bottom: 24px;
    overflow: hidden;
}

.tooltip {
    position: absolute;
    text-align: left;
    padding: 10px 16px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.95);
    color: #00fff7;
    border: 2px solid #ff00cc;
    border-radius: 8px;
    pointer-events: none;
    box-shadow: 0 0 10px #ff00cc, 0 0 20px #00fff7;
    z-index: 1000;
}

.links path {
    stroke: #999;
    stroke-opacity: 0.6;
}

.nodes circle {
    stroke: #fff;
    stroke-width: 1.5px;
}

.labels text {
    font-size: 12px;
    fill: #333;
}

.info-dialog {
    pointer-events: none;
}

.log-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    background-color: #f8f9fa;
}

.markdown-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

.markdown-body pre {
    background-color: #f6f8fa;
    border-radius: 3px;
    padding: 16px;
    overflow: auto;
}

.markdown-body code {
    background-color: rgba(27,31,35,.05);
    border-radius: 3px;
    padding: .2em .4em;
}

@media (max-width: 600px) {
    .content, section {
        padding: 6px;
        max-width: 98vw;
    }
    #fsm-graph {
        min-height: 250px;
        height: 60vw;
        max-height: 350px;
    }
    h1, h2 {
        font-size: 1.2em;
    }
}