/* ---------- Page wrapper ---------- */
.editor-wrapper {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: "Georgia", "Times New Roman", serif;
    color: #222;
}

/* ---------- Heading ---------- */
.editor-wrapper h1 {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 30px;
    text-align: center;
}

/* ---------- Form ---------- */
.poem-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---------- Labels ---------- */
.poem-form label {
    font-size: 14px;
    color: #555;
    margin-top: 16px;
}

/* ---------- Title input ---------- */
.title-input {
    font-size: 20px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

.title-input:focus {
    border-color: #666;
}

/* ---------- Poem editor ---------- */
.poem-editor {
    font-family: "Georgia", serif;
    font-size: 17px;
    line-height: 1.8;
    padding: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    white-space: pre-wrap;
    outline: none;
}

/* Preserve poem formatting */
.poem-editor:focus {
    border-color: #666;
}

/* ---------- Buttons ---------- */
.editor-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.save-btn {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.save-btn:hover {
    background-color: #000;
}

.cancel-btn {
    padding: 10px 18px;
    border-radius: 6px;
    border: 1px solid #aaa;
    color: #333;
    text-decoration: none;
    font-size: 15px;
}

.cancel-btn:hover {
    background: #f2f2f2;
}
