body {
    background-color: #f0f2f5;
    overscroll-behavior: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Ribbon --- */
#ribbon .nav-tabs {
    border-bottom: none;
}
#ribbon .tab-content {
    background-color: #f8f9fa;
}
#ribbon .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
}
#ribbon .nav-link.active {
    border-color: #0d6efd;
    background-color: white !important;
}

/* --- Editor --- */
#editor-container {
    min-height: calc(100vh - 120px);
    overflow: auto;
}

#editor-workspace {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 80px;
    align-items: flex-start;
    padding: 20px;
}

.node-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    width: 250px;
    min-height: 100px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    z-index: 10;
}

.node-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.node-card.selected {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.node-card.start-node {
    border-top: 5px solid #198754;
}

.node-card-content {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.node-card-id {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 10px;
    border-top: 1px dashed #eee;
    padding-top: 5px;
    word-break: break-all;
}

/* --- Leader Lines --- */
.leader-line {
    z-index: 5;
}

/* --- Player --- */
#player-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}
#player-container.visible {
    opacity: 1;
}

.player-content {
    max-width: 800px;
    margin-bottom: 40px;
}

#player-node-content {
    font-size: 1.5rem;
    font-weight: 300;
}

.player-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.player-actions .btn {
    font-size: 1.1rem;
    padding: 10px 20px;
    min-width: 150px;
}

.btn-exit-player {
    position: absolute;
    top: 20px;
    right: 20px;
}


/* --- Modal --- */
.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}
.action-item input, .action-item select {
    flex-grow: 1;
}

