/* General styling for forms */
form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

form h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #444;
}

form label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea,
form input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

form input[type="submit"] {
    background: #4267B2;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

form input[type="submit"]:hover {
    background: #365899;
}

/* Profile Page Styling */
.profile-container {
    max-width: 800px;
    margin: 30px auto;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cover-photo {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
    position: relative;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: -75px auto 10px auto;
    border: 5px solid #fff;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-container h2 {
    margin: 10px 0;
    font-size: 1.8em;
    color: #333;
    font-weight: bold;
}

/* Edit Profile Form */
.profile-edit-form {
    margin: 20px auto;
    padding: 20px;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
}

/* Post Submission Form */
form textarea {
    height: 150px;
    resize: none;
}

/* General Button Styling */
button,
form input[type="submit"] {
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background-color: #4267B2;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover,
form input[type="submit"]:hover {
    background-color: #365899;
}

/* Success and Error Messages */
p.success-message {
    color: #4CAF50;
    background: #E8F5E9;
    border: 1px solid #C8E6C9;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
}

p.error-message {
    color: #F44336;
    background: #FDECEA;
    border: 1px solid #F8D7DA;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
}
