body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #222;
    color: #eee;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

h1, h2, h3 {
    text-align: center;
    margin-top: 0;
}

/* Display Area */
.display-area {
    margin-bottom: 20px;
    text-align: center;
}

#timeline-container {
    position: relative;
    width: 100%;
    height: 150px;
    background-color: #111;
    border: 1px solid #444;
    cursor: pointer;
    overflow: hidden;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#playhead {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: #ff5555;
    pointer-events: none;
    z-index: 10;
}

.marker-line {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #00ffaa;
    z-index: 5;
    pointer-events: none;
}

.marker-label {
    position: absolute;
    top: 5px;
    font-size: 10px;
    color: #00ffaa;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    padding: 2px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 6;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    background-color: #555;
    color: white;
    transition: background 0.2s;
}

button:hover:not(:disabled) {
    background-color: #666;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#btnImport { background-color: #007bff; }
#btnImport:hover { background-color: #0056b3; }

#btnAddMarker { background-color: #28a745; }
#btnAddMarker:hover { background-color: #1e7e34; }

.special-feature {
    background-color: #9c27b0 !important;
    border: 1px solid #e1bee7;
}
.special-feature:hover { background-color: #7b1fa2 !important; }

/* Lists */
.lists-container {
    display: flex;
    gap: 20px;
}

.list-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

textarea {
    width: 100%;
    height: 150px;
    background-color: #111;
    color: #0f0;
    border: 1px solid #444;
    resize: vertical;
    font-family: monospace;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 100; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #333;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #555;
    width: 300px;
    border-radius: 8px;
    text-align: center;
}

.modal-content input {
    width: 80%;
    padding: 8px;
    margin-bottom: 20px;
    background-color: #222;
    border: 1px solid #555;
    color: white;
}

.modal-buttons {
    display: flex;
    justify-content: space-around;
}

.marker-line {
    cursor: ew-resize; /* Shows drag cursor */
    width: 3px; /* Slightly thicker for easier grabbing */
    margin-left: -1px;
}

.marker-label {
    user-select: none;
    cursor: pointer;
}

.setting-group {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

#thresholdInput {
    cursor: pointer;
}