/* themes\adforest-child\dashboard\template-parts\page-ad_settings.php 
page-ad_settings.php Styling*/

.ad-settings-page {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.ad-settings-page h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.ad-settings-form label {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    color: #555;
    cursor: pointer;
}

.ad-settings-form input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.ad-settings-form input[type="submit"] {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background-color: #000000ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ad-settings-form input[type="submit"]:hover {
    background-color: #242323ff;
}

.success-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    font-size: 14px;
}

/* themes\adforest-child\dashboard\template-parts\page-offers.php 
page-offers.php Styling*/

.offers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}
.offers-table th, .offers-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}
.offers-table th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #333;
}
.offers-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.offers-table tr:hover {
    background-color: #f1f1f1;
}
.offers-table .btn {
    padding: 5px 10px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}
.offers-table .btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
}
.offers-table .btn-primary:hover {
    background-color: #0056b3;
}
.no-offers {
    padding: 15px;
    background: #fff8e1;
    border: 1px solid #ffe08a;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 14px;
    color: #333;
}

.offers-pagination {
    margin-top: 20px;
    text-align: center;
}

.offers-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 12px;
    background: #eee;
    border-radius: 4px;
    text-decoration: none;
}

.offers-pagination .current {
    background: #0a0a0a;
    color: #fff;
    font-weight: bold;
}



/* Modal overlay */
.make-offer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal box */
.make-offer-modal .modal-content {
    background: #fff;
    padding: 25px 20px 20px 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
    text-align: center;
}

/* Close button */
.make-offer-modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    transition: color 0.2s ease;
}
.make-offer-modal .close:hover {
    color: #ff0000;
}

/* Modal heading */
.make-offer-modal h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #222;
}

/* Input field */
.make-offer-modal input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Submit button */
.make-offer-modal button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #0073e6;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.make-offer-modal button[type="submit"]:hover {
    background-color: #005bb5;
}

/* Offer message */
.make-offer-modal .offer_message {
    margin-top: 15px;
    font-size: 14px;
    color: #008000; /* green for success */
}

/* Offer message */
.make-offer-modal .offer_message p {
    color: #008000; /* green for success */
}

/* Responsive */
@media (max-width: 480px) {
    .make-offer-modal .modal-content {
        width: 90%;
        padding: 20px 15px;
    }
}


/* Edit Offer Modal on offers receive Styles */ 

/* overlay (hidden by default) */
#edit-offer-modal {
  position: fixed;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0; */
  display: none;           /* toggled to flex when open */
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  padding: 20px;           /* space on small screens */
  transition: opacity 180ms ease;
}

/* visible state */
#edit-offer-modal.open {
  display: flex;
  opacity: 1;
}

/* modal box */
.edit-offer-box {
  width: 100%;
  max-width: 420px;        /* dialog width */
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  box-sizing: border-box;
  transform: translateY(0);
  transition: transform 160ms ease;
}

/* small screens: make it full-width minus padding */
@media (max-width: 420px) {
  .edit-offer-box { max-width: 100%; padding: 16px; }
}

/* optional: visually hide label but keep for screen readers */
.screen-reader-text {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* basic input styling (inherits theme but ensure 100% width) */
#edit-offer-amount.form-control {
  width: 100%;
  padding: 8px 10px;
  margin-top: 8px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 6px;
}


/* Loader Styles */
#ajax-loader { 
    display: none;       
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    z-index: 9999; 
    justify-content: center;
    align-items: center;
   
}

#ajax-loader.open {
    display: flex !important; /* show when open */
}

.loader-spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sbchat-popup-send {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 4px;
    border: 1px solid #ff002e !important;
    background-color: #ff002e !important;
    color: #ffffff !important;
    margin-top: 12px;
}



.offers-table {
    width: 100%;
    border-collapse: collapse;
}
.offers-table th,
.offers-table td {
    padding: 10px;
    border: 1px solid #ddd;
}
.offers-table th {
    background: #f7f7f7;
    text-align: left;
}
.status-pending  {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
}

/* Pending / Warning */
.status-pending {
    background-color: #fff3cd;   /* light yellow */
    color: #856404;              /* dark yellow text */
    border: 1px solid #ffeeba;
}



/* Container */
.wallet-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0;
}

/* Left Column */
.wallet-left {
    flex: 1 1 250px; /* responsive width */
}

.wallet-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.wallet-card h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.wallet-amount {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
}

/* Right Column */
.wallet-right {
    flex: 2 1 600px; /* wider column */
}

.wallet-right h2 {
    margin-bottom: 15px;
    color: #333;
}

/* Table styling */
.wallet-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.wallet-table th,
.wallet-table td {
    padding: 12px 15px;
    text-align: left;
}

.wallet-table thead {
    background-color: #f0f0f0;
}

.wallet-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.wallet-table tbody tr:hover {
    background-color: #f1f7ff;
}



.offers-table {
    width: 100%;
    border-collapse: collapse;
}
.offers-table th,
.offers-table td {
    padding: 10px;
    border: 1px solid #ddd;
}
.offers-table th {
    background: #f7f7f7;
    text-align: left;
}


/* Status badges */
.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-failed,
.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Pagination Wrapper for bought ads page */
.pagination-wrapper {
    margin-top: 20px;
}

.pagination-wrapper ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    justify-content: center;
    align-items: center;

}

.pagination-wrapper li a,
.pagination-wrapper li span {
    padding: 6px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 4px;
}

.pagination-wrapper .current {
    background: #ff9900;
    color: #fff;
    border-color: #ff9900;
}
/* ---------------- */


/* Pagination Wrapper for sold ads page */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Pagination Links */
.pagination a,
.pagination span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;

    transition: all 0.2s ease;
}

/* Hover */
.pagination a:hover {
    background: #fbbf24; /* yellow */
    border-color: #fbbf24;
    color: #111827;
}

/* Current Page */
.pagination .current {
    background: #fbbf24; /* yellow */
    border-color: #fbbf24;
    color: #111827;
    cursor: default;
}

/* Disabled / Dots */
.pagination .dots {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: default;
}

/* Mobile Friendly */
@media (max-width: 600px) {
    .pagination a,
    .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
    }
}





/* Payout Page */
.payout-page .card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.payout-page h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.payout-page .form-control {
    border-radius: 4px;
    margin-bottom: 8px;
}

.payout-page table.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.payout-page table.table th,
.payout-page table.table td {
    vertical-align: middle;
    padding: 10px;
}

.payout-page table.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.payout-page table.table td {
    background-color: #fff;
}

.payout-page button.btn {
    border-radius: 4px;
}

.payout-page .text-muted {
    font-size: 0.85rem;
}


/* Greyed out / disabled button */
.payout-btn-disabled-child {
    background-color: #6c757d !important; /* grey color */
    color: #fff !important;
    cursor: not-allowed; /* show disabled cursor */
    pointer-events: none; /* prevent clicks */
    opacity: 0.4; /* slightly transparent */
}

/* Active black button */
.payout-btn-black-child {
    background-color: #000 !important; /* black color */
    color: #fff !important;
    cursor: pointer;
    pointer-events: auto;
    opacity: 1;
    transition: background-color 0.3s ease;
}

.payout-btn-black-child:hover {
    background-color: #333 !important; /* slightly lighter on hover */
}


.payout-status-pending {
    background-color: #fff3cd !important; /* light yellow */
    font-weight: 600;
   
}

.payout-status-completed {
    background-color: #d4edda !important; /* light green */
    font-weight: 600;
  
}

.payout-status-hold {
    background-color: #f8d7da !important; /* light red */
    font-weight: 600;
    
}


.child-payouts-table {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
}

.child-payouts-table tbody tr {
    background: #fff !important; 
}