
/* Style the filter form */
.form-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Style the label for the dropdown */
label {
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
    color: #333;
}

/* Style the filter dropdown */
#product_category_filter {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease-in-out;
}

#product_category_filter:focus {
    border-color: #0073e6;
}

/* Style the filter button */
input[type="submit"] {
    background-color: #5390D9;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

input[type="submit"]:hover {
    background-color: #005bbf;
}

/* Style the table-container */
.table-container {
    margin: 10px auto;
    width: 100%;
}

/* Style the table rows */
.table-row.desktop {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px; /* Reduced margin between tables */
}

/* Style the result-table */
.result-table {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 33%;
    padding: 15px;
    background-color: #fff;
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-table:hover {
    transform: translateY(-5px);
}

/* Style the table headings */
.result-table th {
    text-align: left;
    padding: 5px 3;
    background-color: #EAEAEA;
}

/* Style the table data */
.result-table td {
    padding: 5px 3;
}

/* Style the action button */
.result-table .button {
    background-color: #5390D9;
    color: #fff;
    text-decoration: none;
    padding: 6px 24px;
    border: none;
    border-radius: 23px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    align-self: flex-end;
}

.result-table .button:hover {
    background-color: #005bbf;
}





/* Mobile Styles */

/* Media query for screens smaller than 768px (e.g., phones) */
@media (max-width: 767px) {
    .table-row.desktop {
        flex-direction: column; /* Display 1 table per row on mobile */
    }

    .result-table {
        width: 100%; /* Full width on mobile */
    }
}


/* Media query for screens smaller than 768px (e.g., phones) */
@media (max-width: 767px) {
    /* Style the filter form for mobile */
    .form-container {
        margin-bottom: 10px; /* Adjust margin for mobile */
        display: block; /* Display form elements as a block on mobile */
    }

    /* Style the label for the dropdown */
    label {
        font-weight: bold;
        margin-right: 0; /* Remove right margin on mobile */
        font-size: 16px;
        color: #333;
        margin-bottom: 5px; /* Adjust margin for mobile */
    }

    /* Style the filter dropdown */
    #product_category_filter {
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
        font-size: 16px;
        color: #333;
        outline: none;
        transition: border-color 0.3s ease-in-out;
        width: 100%; /* Full width on mobile */
    }

    #product_category_filter:focus {
        border-color: #0073e6;
    }

    /* Style the filter button */
    input[type="submit"] {
        background-color: #5390D9;
        color: #fff;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.3s ease-in-out;
        width: 100%; /* Full width on mobile */
    }

    input[type="submit"]:hover {
        background-color: #005bbf;
    }

    /* Adjust margin between filter and tables on mobile */
    .table-container {
        margin: 10px auto;
        width: 100%;
    }

    /* Style the table rows for mobile */
    .table-row.desktop {
        flex-direction: column; /* Display 1 table per row on mobile */
    }

    /* Style the result-table for mobile */
    .result-table {
        width: 100%; /* Full width on mobile */
        margin-bottom: 10px; /* Adjust margin between tables on mobile */
    }
}
