.toggle-password {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.edit-post-container {
    position: fixed;
    top: 50vh;
}

/* Style for the password modal */
.password-modal {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none; /* Initially hidden */
}

/* Style for the edit post modal */
.edit-post-modal {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none; /* Initially hidden */
}

/* Style for the password validation message */
.password-validation-message {
    color: red;
    font-weight: bold;
    position: absolute;
    top: 2vh;
    left: 0;
    width: 100%;
    background: yellow;
    text-align: center;
    padding: 10px 0;
}

/* Style for the edit post success message */
.edit-post-success-message {
    color: white;
    font-weight: bold;
    background: #4ece4e;
    text-align: center;
    display: none; /* Initially hidden */
}

/* Style for the edit post error message */
.edit-post-error-message {
    color: red;
    font-weight: bold;
    display: none; /* Initially hidden */
}

/* Style for the "Edit This Post" button */
.edit-password-button {
    background-color: #567fad;
    color: #fff;
    border: none;
    padding: 10px;
    margin: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-bottom: 20px;
    cursor: pointer;
    position: fixed;
    top: 50vh;
    left: 0;
}

/* Style for the submit edit button */
.submit-edit-button {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

/* Style for the password input field */
.password-modal input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Style for the "Check Password" button in the password modal */
.password-modal .check-password-button {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

/* Style for the textarea in the edit post modal */
.edit-post-modal textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Style for the text input fields in the edit post modal */
.edit-post-modal input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.submission-success-message {
    color: green;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

/* Responsive styles */
@media (max-width: 600px) {
    .password-modal,
    .edit-post-modal {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
}
