#optionsList {
    flex-grow: 1;
    background: none;
    min-height: 300px;
    max-height: 400px;
    border: 3px solid var(--purple);
    overflow-y: auto;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

#optionsList::-webkit-scrollbar {
    width: 6px;
    background: none;
}

#optionsList::-webkit-scrollbar-track {
    background: var(--purple-dark);
    border-radius: 3px;
}

#optionsList::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 100px;
}

#optionsList::-webkit-scrollbar-thumb:hover {
    background: #b697db;
}

.option-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: none;
    color: white;
    margin-bottom: 5px;
    border-radius: 6px;
}

.option-action {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.option-action:hover {
    background-color: rgba(255, 255, 255, 0.27);
}

.option-action:active {
    transform: scale(0.95);
    background-color: #ccc;
}

.view-only {
    pointer-events: none;
}

#loadedTitle, #loadedDescription {
    position: relative;
    border: 3px solid var(--purple);
    border-radius: 6px;
    background: none;
    color: white;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0;
}

#loadedTitle::before, #loadedDescription::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px;
    pointer-events: none;
}

#loadedTitle {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    padding: 8px;
}

#loadedDescription {
    font-size: 1rem;
    max-height: 120px;
    overflow-y: auto;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    hyphens: auto;
    padding: 8px;
}

#loadedDescription::-webkit-scrollbar {
    width: 6px;
    background: none;
}

#loadedDescription::-webkit-scrollbar-track {
    background: var(--purple-dark);
    border-radius: 3px;
}

#loadedDescription::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 100px;
}

#loadedDescription::-webkit-scrollbar-thumb:hover {
    background: #8E6DE1;
}

#loadedTitle:focus, #loadedDescription:focus {
    border-color: var(--purple-dark);
    outline: none;
}

#loadedDescription {
    white-space: pre-wrap;
    min-height: 60px;
    max-height: 120px;
    overflow-y: auto;
    word-wrap: break-word;
}

.option-item.view-only {
    background-color: #f0f0f0;
    cursor: default;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {
    #optionsList {
        min-height: 200px;
    }
}