.flex-container {
    display: flex;
    gap: 20px; /* Add space between the card and the filter */
    align-items: flex-start; /* Align items at the top */
}

.request-card {
    margin-top: 25px;
    flex: 3; /* Take up more space compared to the filter */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Delete button top-right */
.request-card .delete-request {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    color: #444;
}

.request-card .delete-request:hover {
    color: #c00;
}

.request-card .delete-request i {
font-size: 1.1rem;
}

.request-card h3 {
    color: black; /* Set the color of the h3 to black */
    margin-top: 0;
    font-size: 1.5em;
    margin-bottom: 20px;
    width: auto;
    text-decoration: underline;
}

.request-card .editable-email-content {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
    max-width: none;
    white-space: normal;
    word-wrap: break-word;
    width: auto;
    color: black;
    text-align: left;
    /* Allow vertical resizing by the user */
    resize: vertical;
    min-height: 100px;
    height: 190px;
    max-height: none;
    overflow: auto; /* Required for resize to work */
    pointer-events: auto;
    user-select: text;
}

.filter-form-container {
    margin-top: 25px;
    flex: 1; /* Take up less space compared to the card */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-form input[type="number"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-form button {
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.filter-form button:hover {
    background-color: #0056b3;
}

    /* Responsive styles for smaller screens */
    @media (max-width: 768px) {
    .flex-container {
        flex-direction: column; /* Stack elements vertically */
        gap: 10px;
    }

    .request-card,
    .filter-form-container {
        width: 100%; /* Take full width */
        flex: none; /* Remove flex-grow/shrink */
    }

    .request-card h3 {
        font-size: 1.2em; /* Adjust font size for smaller screens */
    }

    .editable-email-content {
        font-size: 0.9em; /* Adjust font size for readability */
    }

    .filter-form button {
        padding: 10px; /* Increase button size for touch devices */
    }
}

@media (max-width: 480px) {
    .request-card h3 {
        font-size: 1em; /* Further reduce font size */
    }

    .filter-form input[type="text"],
    .filter-form select {
        font-size: 0.9em; /* Adjust input font size */
    }

    .filter-form button {
        font-size: 0.9em; /* Adjust button font size */
    }
}