.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.edit-controls {
    margin-bottom: 1.5rem;
    text-align: right;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.content-display {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    min-height: 300px;
    line-height: 1.6;
}

.content-display h2 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-display h3 {
    color: #555;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
}

.content-display p {
    margin-bottom: 1rem;
    color: #666;
}

.content-display ul,
.content-display ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content-display li {
    margin-bottom: 0.5rem;
    color: #666;
}

#editMode {
    margin-top: 1rem;
}

.editor-toolbar {
    background: #f1f3f5;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.editor-btn {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #495057;
}

.editor-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.editor-btn:active {
    background: #dee2e6;
}

.divider {
    width: 1px;
    background: #dee2e6;
    margin: 0 0.5rem;
}

.html-editor {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0 0 4px 4px;
    padding: 1.5rem;
    min-height: 400px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    overflow-y: auto;
}

.html-editor:focus {
    outline: none;
    border-color: #007bff;
}

.html-editor h2 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.html-editor h3 {
    color: #555;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.html-editor p {
    margin-bottom: 1rem;
}

.html-editor ul,
.html-editor ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.html-editor li {
    margin-bottom: 0.5rem;
}

.html-editor a {
    color: #007bff;
    text-decoration: underline;
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .content-display {
        padding: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
