.edit-button {
    background: #7a197d;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 8px 24px;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 24px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #222;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #222;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-footer {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer button {
    padding: 8px 24px;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    cursor: pointer;
}

.save-button {
    background: #4caf50;
    color: #fff;
}

.cancel-button {
    background: #f44336;
    color: #fff;
}

.error-message {
    color: #f44336;
    margin-top: 8px;
    display: none;
}

.success-message {
    color: #4caf50;
    margin-top: 8px;
    display: none;
}

.moderator-only {
    display: none;
}

.moderator-only.active {
    display: block;
}