body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f7f9fc;
    color: #333;
    margin: 0;
    padding: 2rem;
}

h2 {
    margin-bottom: 1rem;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.controls label {
    font-weight: bold;
    margin-right: 0.25rem;
}

.controls select,
.controls button,
.controls input {
    padding: 0.4rem 0.6rem;
    font-size: 0.95rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.controls button:hover,
.controls select:hover,
.controls input:hover {
    border-color: #007BFF;
    background: #e6f0ff;
}

#editorWrapper {
    resize: vertical;
    overflow: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 60vh;
    margin-bottom: 1rem;
    background: #fff;
}

#editorWrapper.drag-over {
    border-color: #007BFF;
    background-color: #e6f0ff;
}

.CodeMirror {
    height: 100% !important;
    font-size: 14px;
}

.taskListContainer {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.taskList {
    background: #fff;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 1rem;
    flex: 1 1 250px;
}

.taskList h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3rem;
}

.taskItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.taskItem:last-child {
    border-bottom: none;
}

.taskItem span {
    overflow-wrap: break-word;
}

.taskItem button {
    background: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.taskItem button:hover {
    background: #d9363e;
}

pre {
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 5px;
    white-space: pre-wrap;
    word-break: break-word;
}

.CodeMirror .errorHighlight {
    background-color: rgba(255, 0, 0, 0.25);
}

#editorWrapper {
    position: relative;
}

#status {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 0.85rem;
    color: #555;
    background: rgba(255, 255, 255, 0.7);
    padding: 0 5px;
    border-radius: 3px;
}