.product-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    background-color: #fff;
    position: relative;
}

.product-header {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 10px;
    right: 10px;
}

.product-header button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.product-header button.delete-product {
    background: red;
}

/* Table Styling */
.form-table-modal {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.form-table-modal th,
.form-table-modal td {
    padding: 10px;
    text-align: left;
}

.custom_input_design {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Title styling */
#modal-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Table form styling */
.form-table {
    width: 100%;
    margin-bottom: 20px;
}

.form-table th {
    text-align: left;
    width: 30%;
}

.form-table td {
    width: 70%;
}

input[type="text"], input[type="number"], textarea{
    /*width: 100%;*/
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.custom_input_design{
    width: 100%;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

textarea {
    resize: vertical;
}

.membership-card .purchase-button:hover {
    background-color: #005bb5;
}


.button-primary {
    background-color: #0073aa;
    color: #fff;
}

.button-secondary {
    background-color: #e53935;
    color: #fff;
}

.card-header button:hover {
    opacity: 0.9;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    color: #0073aa;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.card-body .price {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.card-body .description {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
}

/*.card-footer {*/
/*    padding: 15px;*/
/*}*/
.wallet-message-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}
.purchase-button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.purchase-button:hover {
    background-color: #005c8c;
}
.purchase-buttons {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.purchase-buttons:hover {
    background-color: #005c8c;
}
/* Fix DataTables Pagination and Search Layout */
.dataTables_wrapper {
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dataTables_wrapper .dataTables_filter input {
    width: 200px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dataTables_wrapper .dataTables_length select {
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Adjust Pagination Buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 4px 8px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin: 0 2px;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #007cba;
    color: #fff;
    border: 1px solid #007cba;
}

/* Table Layout */
table.dataTable {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

table.dataTable th,
table.dataTable td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.membership-table {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

.product-table th, .product-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.product-table th {
    background-color: #4caf9d;
    color: white;
}

.product-table td {
    background-color: #f9f9f9;
}

#manage_user th {
    background-color: #4caf9d;
    color: white;
}

#manage_user td {
    background-color: #f9f9f9;
}

#wallet_transaction th {
    background-color: #4caf9d;
    color: white;
}

#wallet_transaction  .set_red_background td:nth-child(2){
    color: red !important;
    font-weight: 400;
}
#wallet_transaction  .set_green_background td:nth-child(2){
    color: green !important;
    font-weight: 400;
}

.product-table tr:nth-child(even) td {
    background-color: #f2f2f2;
}

.product-table td button {
    margin: 5px;
    padding: 8px 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.button-primary {
    background-color: #0073e6;
    color: white;
}

.button-secondary {
    background-color: #f44336;
    color: white;
}

.edit-product, .delete-product {
    text-align: center;
}

.edit-product:hover, .delete-product:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .product-table {
        font-size: 14px;
    }

    .product-table th, .product-table td {
        padding: 10px;
    }
}

.design_five_tick{
    color: green;
    padding: 0px 13px 0px 2px
}
.design_five_cross{
    color: red;
    padding: 0px 13px 0px 2px
}
.remove_margin_padding{
    margin: 0;
    padding: 7px 0px;
}

#wallet-section {
        margin-bottom: 30px;
        padding: 15px;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    }
    .wallet-balance-box {
        text-align: center;
        padding: 20px;
    }
    .wallet-balance-box .balance {
        font-size: 32px;
        color: #0073aa;
        margin-top: 10px;
    }

.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensure it's on top of other elements */
}

.wallet-modal .modal-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 400px;
    animation: fadeIn 0.3s ease-in-out; /* Smooth fade-in animation */
}

.wallet-modal .modal-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.wallet-modal .modal-content p {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
}

/* Buttons Styling */
button {
    padding: 8px 20px;
    margin: 10px 5px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.confirm-purchase {
    background-color: #28a745; /* Green */
    color: #fff;
}

button.confirm-purchase:hover {
    background-color: #218838; /* Darker green on hover */
}

button.cancel-purchase {
    background-color: #dc3545; /* Red */
    color: #fff;
}

button.cancel-purchase:hover {
    background-color: #c82333; /* Darker red on hover */
}

button.login-redirect-btn {
    background-color: #0073e6;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
}

.membership-card {
   /* width: 300px;
    background-color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px;*/
    font-family: Arial, sans-serif;
    display: inline-block;
    vertical-align: top;
   /* min-height: 400px;
    border-width: 2px;
    border-style: solid;
    border-color: rgb(224, 224, 224);
    border-image: initial;
    border-radius: 10px;
    margin: 20px;*/
    overflow: hidden;
}

.card-header {
    background-color: #f7f9fc;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
}

.card-header h2 {
    font-size: 1.5rem;
    color: #333333;
    margin-bottom: 5px;
}

.card-header p {
    font-size: 1rem;
    color: green;
}

.price-label a{
    text-decoration: none !important;
    color: white !important;
    font-weight: 650 !important;
    font-size: 16px;
}

.membership-card .purchase-button {
    display: block;
    padding: 15px 15px;
    font-size: 19px;
    background-color: #01c116 !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    margin: 0px;
   width: 506px;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1)
}

.membership-card .price-label {
    padding: 6px 17px;
    font-size: 14px;
    background-color: #4de80d;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    line-height: 1.2;
}

.membership-card .card-body {
    padding: 15px;
    min-height: 350px;
}

.card-body .features p {
    font-size: 0.95rem;
    margin: 8px 0;
}

.card-footer {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #e0e0e0;
    background-color: #f7f9fc;
}

.card-footer button {
    flex: 1;
    max-width: 48%; 
    height: 65px;
    font-size: 0.95rem;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.price-label:hover {
    background-color: #218838;
}

.purchase-button {
    background-color: #004085;
    color: #ffffff;
    line-height:1.2;
}

.purchase-button:hover {
    background-color: #002752;
}
#confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}
#confirmation-modal .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 400px;
    padding: 50px;
}
#confirmation-modal .modal-content h2 {
    margin-top: 0;
}
#confirmation-modal .modal-content button {
    margin: 10px;
}

.widefat {
width: 100%;
max-width: 100%;
margin: 1rem 0;
background: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
border-collapse: collapse;
overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}


.widefat thead {
background: linear-gradient(135deg, #2c3e50, #3498db);
}

.widefat th {
color: #ffffff;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 1.2rem 1rem;
text-align: center;
border: none;
}

.widefat td {
padding: 1rem;
border-bottom: 1px solid #edf2f7;
transition: background-color 0.2s ease;
}

.set_green_background {
background-color: rgba(72, 187, 120, 0.1);
}

.set_red_background {
background-color: rgba(245, 101, 101, 0.1);
}


.widefat span {
padding: 0.5rem 1rem;
border-radius: 20px;
font-size: 0.875rem;
}

span[style*="color: green"] {
background-color: rgba(72, 187, 120, 0.2);
color: #2f855a !important;
}

span[style*="color: red"] {
background-color: rgba(245, 101, 101, 0.2);
color: #c53030 !important;
}

td:first-child {
font-weight: 600;
font-size: 1.1rem;
}


.widefat tbody tr:hover {
background-color: #f7fafc;
transform: translateY(-1px);
transition: all 0.2s ease;
}

@media screen and (max-width: 768px) {
.widefat {
display: block;
overflow-x: auto;
white-space: nowrap;
}

.widefat td, 
.widefat th {
padding: 0.8rem;
font-size: 0.9rem;
}

span[style*="color"] {
padding: 0.3rem 0.6rem;
}
}

.widefat tbody tr:last-child td {
border-bottom: none;
}


td:last-child {
color: #718096;
font-size: 0.9rem;
}


td:nth-child(2) {
font-weight: 500;
color: #4a5568;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #f1f1f1;
    text-decoration: none;
    color: #000;
    border-radius: 3px;
}

.pagination a.active {
    background-color: #0073aa;
    color: white;
}

.pagination a:hover {
    background-color: #ddd;
}

.pagination a.prev, .pagination a.next {
    font-weight: bold;
}
