.loreEditor {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

.addEntry {
    display: flex;
    gap: 8px;
    align-items: center;
}

.titleInput {
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    width: 250px;

    &:focus {
        outline: none;
        border-color: var(--accent);
    }
}

.addButton {
    padding: 8px 16px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;

    &:hover {
        background: var(--accent-alt);
    }
}

.list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empty {
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
}

.entryCard {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cardHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.titleRow {
    flex: 1;
    min-width: 0;
}

.entryTitle {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: color 0.2s;

    &:hover {
        color: var(--accent);
    }
}

.titleEditInput {
    width: 100%;
    padding: 6px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    font-family: inherit;

    &:focus {
        outline: none;
        border-color: var(--accent);
    }
}

.actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.moveButton {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);

    &:hover:not(:disabled) {
        border-color: var(--accent);
        color: var(--accent);
    }

    &:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }
}

.deleteButton {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition);

    &:hover {
        background: var(--danger);
        border-color: var(--danger);
        color: var(--bg);
    }
}

.content {
    min-height: 80px;
}

.textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;

    &:focus {
        outline: none;
        border-color: var(--accent);
    }
}
