.user-profile-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.profile-message {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.profile-message.success {
    background-color: #e2f3ec;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.profile-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.profile-form-group {
    margin-bottom: 20px;
}

.profile-label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 600;
    font-size: 16px;
}

.profile-input,
.profile-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.profile-input:focus,
.profile-textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

.profile-textarea {
    height: 120px;
    resize: vertical;
}

.profile-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    width: 100%;
    display: block;
    margin-top: 20px;
}

.profile-button:hover {
    background-color: #45a049;
}

.profile-button:active {
    background-color: #388E3C;
}

/* New styles for the logout button */
.profile-button.logout-button {
    background-color: #dc3545; /* A standard red for logout */
}

.profile-button.logout-button:hover {
    background-color: #c82333; /* Darker red on hover */
}

.profile-button.logout-button:active {
    background-color: #bd2130; /* Even darker red on active */
}

@media screen and (max-width: 768px) {
    .user-profile-container {
        padding: 15px;
        margin: 10px;
        border-radius: 10px;
    }

    .profile-title {
        font-size: 22px;
    }

    .profile-input,
    .profile-textarea {
        font-size: 14px;
        padding: 10px;
    }

    .profile-label {
        font-size: 14px;
    }

    .profile-button {
        font-size: 16px;
        padding: 10px 20px;
        border-radius: 6px;
    }
}