/* File: assets/css/styles.css */

/* Hide the View Cart button on product pages */
.single_add_to_cart_button {
    display: none !important;
}

/* Hide the View Cart button on the checkout page */
.woocommerce-checkout .checkout-button {
    display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    margin: 0 auto;
}


/* Hide the entire notices wrapper containing cart confirmation */
.woocommerce-notices-wrapper {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Double protection for the message itself */
.woocommerce-message.added_to_cart_wc {
    display: none !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Target WooCommerce pages specifically using body classes */
body.woocommerce-cart .woocommerce-message a.button.wc-forward,
body.woocommerce-checkout .woocommerce-message a.button.wc-forward,
body.woocommerce .added_to_cart {
    display: none;
}

/* Hide the entire success message after adding to cart */
body.woocommerce .woocommerce-message.added_to_cart_wc {
    display: none !important; /* Only use !important as last resort */
}

/* Hide Additional Information section completely */
.woocommerce-additional-fields,
h3#order_review_heading {
    display: none !important;
}

/**/

.error-messages {
    color: #ff0000;
    background-color: #ffe6e6;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ff0000;
    border-radius: 5px;
}

#ast-scroll-top {
    display: none !important;
}




.buy-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.buy-job-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buy-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.buy-job-image {
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-job-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.placeholder-image {
    color: #cbd5e0;
}

.buy-job-details {
    padding: 1.25rem;
}

.buy-job-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.25rem 0 0.5rem;
    color: #2d3748;
}

.buy-job-details p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
    color: #4a5568;
}

.buy-job-details .price {
    color: #2b6cb0;
    font-weight: 500;
    font-size: 1.05rem;
}

.buy-job-details .description {
    margin-top: 0.75rem;
    font-size: 0.92rem;
    color: #4a5568;
}

.purchase-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    background-color: #2b6cb0;
    color: #ffffff;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.purchase-button:hover {
    background-color: #2c5282;
}

.login-prompt a {
    color: #2b6cb0;
    text-decoration: underline;
}

.pagination {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .buy-job-details {
        padding: 1rem;
    }

    .buy-jobs-grid {
        gap: 1.5rem;
        padding: 1rem;
    }
}



/* General body styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4; /* Light background */
    color: #333; /* Text color */
}


/* Multi-step form styles */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Error styles */
.error {
    border-color: red !important;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Button styles */
.button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.button:hover {
    background-color: #005177;
}
/* Style for the Town dropdown */
#town {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    margin-top: 5px;
}

#town:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}


/* Form container */
.form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

/* Filter dropdowns */
.form-container > div {
    flex: 1;
    min-width: 200px;
}

/* Submit button */
.form-container input[type="submit"] {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Mobile view */
@media (max-width: 768px) {
    .form-container > div {
        flex-basis: 100%;
    }
}





/* Wallet Transactions Table */
.wallet-transactions {
    margin-top: 20px;
}

.wallet-transactions h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.wallet-transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.wallet-transactions-table th,
.wallet-transactions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.wallet-transactions-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    font-size: 14px;
}

.wallet-transactions-table tbody tr:hover {
    background-color: #f5f6f8;
}

.wallet-transactions-table td {
    color: #555;
    font-size: 15px;
}


.submission-filter-form {
    margin-bottom: 20px;
}

.submission-filter-form label {
    margin-right: 10px;
}

.submission-filter-form select {
    padding: 5px;
    margin-right: 10px;
}

.submission-filter-form .button {
    padding: 5px 10px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
}

.submission-filter-form .button:hover {
    background-color: #005177;
}



/* Transaction Type Badge */
.transaction-type {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
}

.transaction-type.credit {
    background-color: #d5f5e3;
    color: #27ae60;
}

.transaction-type.debit {
    background-color: #f8d7da;
    color: #dc3545;
}

/* No Transactions Message */
.no-transactions {
    text-align: center;
    color: #777;
    font-style: italic;
    margin-top: 20px;
    font-size: 16px;
}


.wallet-balance-checkout {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.wallet-balance-checkout p {
    margin: 0 0 10px;
}

.wallet-balance-checkout a {
    color: #0073aa;
    text-decoration: none;
}

.wallet-balance-checkout a:hover {
    text-decoration: underline;
}




/* Password Strength Indicator */
#password-strength {
    margin-top: 5px;
    font-size: 14px;
    font-weight: bold;
}

.password-strength-0 {
    color: red;
}

.password-strength-1 {
    color: orange;
}

.password-strength-2 {
    color: yellow;
}

.password-strength-3 {
    color: green;
}


/* Basic Admin table styling */
.wp-list-table {
    width: 100%;
    margin-top: 20px;
}

.wp-list-table th, .wp-list-table td {
    padding: 10px;
    text-align: left;
}

.wp-list-table .button {
    margin-right: 5px;
}
/* Wallet Top-Up Page Styles */
.wallet-topup {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.wallet-topup h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.wallet-topup p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.topup-options {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 30px;
}

.topup-option {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 30%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.topup-option h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.topup-button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.topup-button:hover {
    background-color: #005177;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .wallet-topup {
        padding: 15px;
    }

    .wallet-topup h2 {
        font-size: 22px;
    }

    .wallet-topup p {
        font-size: 14px;
    }

    .topup-options {
        flex-direction: column;
        gap: 15px;
    }

    .topup-option {
        width: 100%;
        padding: 15px;
    }

    .topup-option h3 {
        font-size: 18px;
    }

    .topup-button {
        font-size: 14px;
        padding: 12px;
    }
}

.bank-transfer-info {
    font-size: 14px;
    color: #777;
    margin-top: 20px;
}

.bank-transfer-info a {
    color: #0073aa;
    text-decoration: none;
}

.bank-transfer-info a:hover {
    text-decoration: underline;
}

/* Form styling */
#happyForm {
    max-width: 700px; /* Centering the form */
    margin: 20px auto; /* Auto margin for horizontal centering */
    padding: 20px !important; /* Ensured padding */
    background: #fff; /* White background for the form */
    border-radius: 10px !important; /* More pronounced rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Form section styles */
.form-section {
    margin-bottom: 10px !important; /* Reduced space between sections */
}

/* Label styles */
label {
    display: block;
    margin-bottom: 2px !important; /* Reduced space between label and input */
    font-weight: bold; /* Bold labels */
}

/* Input and Textarea styles */
input[type="text"],
input[type="number"],
textarea {
    width: calc(100% - 12px) !important; /* Full width minus padding */
    padding: 8px !important; /* Padding inside input */
    border: 2px solid #B8B8BD !important; /* Red border */
    border-radius: 8px !important; /* Rounded corners */
    transition: border-color 0.3s; /* Smooth border transition */
    margin-bottom: 10px !important; /* Reduced space between fields */
}

/* Highlight invalid fields */
.invalid {
    border: 2px solid red !important; /* Highlight invalid fields */
}

/* Focus styles */
input:focus,
textarea:focus {
    border-color: #990000 !important; /* Darker red on focus */
    outline: none !important; /* Remove default outline */
}

/* Button styles */
button,
input[type="submit"] {
    background-color: #cc0000 !important; /* Red background */
    color: white !important; /* White text */
    border: none !important; /* No border */
    padding: 10px 15px !important; /* Padding */
    border-radius: 5px !important; /* Rounded corners */
    font-size: 16px !important; /* Font size */
    cursor: pointer !important; /* Pointer cursor */
    transition: background-color 0.3s !important; /* Smooth transition */
    margin-right: 10px !important; /* Space between buttons */
}

/* Button hover effects */
button:hover,
input[type="submit"]:hover {
    background-color: #990000 !important; /* Darker red on hover */
}

/* Success and error messages */
.happy-success {
    color: #28a745; /* Green for success messages */
    font-weight: bold; /* Bold text */
    margin-top: 15px; /* Space above the message */
}

.happy-error {
    color: #dc3545; /* Red for error messages */
    font-weight: bold; /* Bold text */
    margin-top: 15px; /* Space above the message */
}

/* Center the form and style the filter dropdown */
.form-container {
    margin-bottom: 20px;
    text-align: center;
}

/* Hide "View Cart" link in the mini cart */
.widget_shopping_cart .buttons a:first-child {
    display: none;
}

/* Hide the cart icon in the header */
.site-header-cart {
    display: none;
}

/* Style the login/register message */
.login-register-message {
    background-color: #FEE4E4; /* Light red background color */
    border: 1px solid #d1d9e6;
    padding: 10px 10px; /* Add padding for spacing */
    margin: 15px auto; /* Center the box horizontally */
    max-width: 500px; /* Set a maximum width for the box */
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    text-align: center;
    font-size: 16px;
    color: #333;
    font-family: "Arial Black", Gadget, sans-serif;
    font-weight: bold;
    border-radius: 5px; /* Optional: rounded corners */
}

/* Style and enlarge the dropdown */
#product_category_filter {
    padding: 10px;
    width: 100%;
    max-width: 450px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    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: #CC0000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    margin-left: 15px;
}

input[type="submit"]:hover {
    background-color: #990000;
}

/* Style individual result tables */
.table-container {
    margin: 10px auto;
    width: 100%;
}

.table-row.desktop {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.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);
}

.result-table table {
    width: 100%;
}

.result-table th, .result-table td {
    text-align: left;
    padding: 5px;
}

.result-table th {
    font-weight: bold;
    color: #333;
    background-color: #EAEAEA;
}

/* Style the action button */
.button {
    display: inline-block;
    background-color: #CC0000 !important;
    color: white !important;
    padding: 6px 10px;
    border-radius: 23px;
    text-decoration: none;
    cursor: pointer;
    align-self: flex-end;
    transition: background-color 0.3s ease-in-out;
}

.button:hover {
    background-color: #990000 !important;
}

/* Purchased By styling */
.purchased-by {
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin-top: 5px; /* Reduced space */
    text-align: right;
}

/* Mobile Styles */
@media (max-width: 767px) {
    .table-row.desktop {
        flex-direction: column;
    }

    .result-table {
        width: 99%; /* Almost full width on mobile */
        margin: 1px auto; /* Reduced space around tables */
    }

    /* Reduce space between purchased count and table */
    .purchased-by {
        margin-top: 5px; /* Less space above "Purchased By" section */
    }

    /* Adjust filter elements for better spacing */
    #product_category_filter,
    input[type="submit"] {
        width: 90%;
        max-width: 300px;
        margin: 0 auto 10px;
    }

    input[type="submit"] {
        margin-top: 10px; /* Extra spacing for button on mobile */
    }
}

/* Pagination container */
.pagination-container {
    display: flex;
    justify-content: space-between; /* Ensures the buttons are spaced correctly */
    margin-top: 20px; /* Add spacing above the buttons */
}

.pagination-left, .pagination-right {
    flex: 1;
}

.pagination-left {
    text-align: left; /* Aligns Previous button to the left */
}

.pagination-right {
    text-align: right; /* Aligns Next button to the right */
}

/* Responsive styles to ensure proper layout on mobile */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: row; /* Keep buttons in a row */
        justify-content: space-between; /* Distribute space between buttons */
        margin-top: 20px; /* Add spacing above the buttons */
    }

    .pagination-left, .pagination-right {
        flex: 1; /* Allow equal space for both buttons */
        text-align: center; /* Center align text in mobile */
    }

    .button {
        padding: 5px 10px; /* Smaller padding for mobile buttons */
        font-size: 14px; /* Smaller font size for mobile */
    }
}


