/* ===== Dashboard Layout ===== */
.vs-dashboard {
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #f5f7fb;
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
}

/* ===== Sidebar ===== */
.vs-sidebar {
    background: #1e293b;
    border-radius: 12px;
    padding: 15px;
    min-height: 350px;
}

.vs-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vs-sidebar li {
    margin-bottom: 10px;
}

.vs-sidebar a {
    display: block;
    padding: 10px 14px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: 500;
}

.vs-sidebar a:hover,
.vs-sidebar a.active {
    background: #2563eb;
    color: #fff;
}

/* ===== Content ===== */
.vs-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* ===== Wallet Layout Fix ===== */
.vs-content .vs-tab {
    width: 100%;
}

#tab-wallet,
#tab-wallet .vs-wallet-summary,
#tab-wallet #vs-transaction-history,
#tab-wallet #vs-transaction-history table {
    width: 100%;
}

/* ===== Headings ===== */
.vs-content h3 {
    margin-bottom: 15px;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 8px;
    color: #1e293b;
}

/* ===== Table ===== */
.vs-products-table,
.vs-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.vs-products-table th,
.vs-orders-table th {
    background: #2563eb;
    color: #fff;
    padding: 10px;
    font-weight: 600;
}

.vs-products-table td,
.vs-orders-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.vs-products-table tr:hover,
.vs-orders-table tr:hover {
    background: #f1f5f9;
}

.vs-products-table img,
.vs-orders-table img {
    border-radius: 8px;
}

/* ===== Actions ===== */
.vs-products-table a,
.vs-orders-table a {
    color: #ef4444;
    font-weight: 600;
    text-decoration: none;
}

.vs-products-table a:hover,
.vs-orders-table a:hover {
    text-decoration: underline;
}

/* ===== Form ===== */
.vs-tab form p {
    margin-bottom: 15px;
}

.vs-tab label {
    font-weight: 600;
    color: #334155;
}

.vs-tab input,
.vs-tab textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    transition: 0.3s;
}

.vs-tab input:focus,
.vs-tab textarea:focus {
    border-color: #2563eb;
    outline: none;
}

/* ===== Button ===== */
.vs-tab button {
    background: #2563eb;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.vs-tab button:hover {
    background: #1d4ed8;
}

/* ===== Responsive ===== */
@media(max-width:768px) {
    .vs-dashboard {
        flex-direction: column;
    }

    .vs-sidebar {
        width: 100% !important;
        margin-bottom: 15px;
    }
}

/* ===== Orders tools ===== */
.vs-orders-tools input,
.vs-orders-tools select {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.vs-orders-tools input:focus,
.vs-orders-tools select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.vs-orders-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.vs-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.vs-card-title {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 600;
}

.vs-card-value {
    font-size: 18px;
    color: #0f172a;
    font-weight: 800;
}

.vs-page-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0f172a;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

.vs-page-btn:hover {
    border-color: #2563eb;
}

.vs-page-btn.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.vs-page-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media(max-width: 900px) {
    .vs-orders-cards {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

/* ===== Become a vendor ===== */
.vs-auth-box {
    max-width: 600px;
    margin: 60px auto;
    background: #fff;
    padding: 35px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    font-family: Segoe UI, Tahoma, sans-serif;
}

.vs-auth-box h2 {
    color: #1e293b;
    margin-bottom: 10px;
}

.vs-subtitle {
    color: #64748b;
    margin-bottom: 25px;
}

.vs-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.vs-btn {
    background: #2563eb;
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.vs-btn-outline {
    border: 2px solid #2563eb;
    color: #2563eb;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.vs-note {
    font-size: 14px;
    color: #64748b;
}

.vs-note a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}


/* =======================
   Custom Checkbox Style
======================= */
input[type="checkbox"] {
    position: relative;
    width: 20px;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    border: 2px solid #0073aa;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;

}

input[type="checkbox"]:checked {
    background-color: #0073aa;
    border-color: #0073aa;
}

input[type="checkbox"]:checked::after {
    content: '✔';
    color: #fff;
    position: absolute;
    top: 0;
    left: 3px;
    font-size: 14px;
}

td {
    text-align: center;
}

.vs-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.vs-benefits div {
    margin: 10px 0;
    font-size: 16px;
}

#add-product-btn:hover {
    transform: scale(1.1);
    transition: transform 0.3s, opacity 0.3s;
}


.vs-row-updated {
    background-color: #d1fae5 !important;
    /* أخضر خفيف */
    transition: background-color 1.2s ease;
}

.vs-row-updated-remove {
    background-color: transparent !important;
}

/* =====================================================
   Row Update Highlight (Soft & Professional)
===================================================== */

/* Updated row (general) */
.vs-row-updated {
    background: var(--vs-danger-soft) !important;
    border-left: 4px solid var(--vs-danger);
    transition: all 0.8s ease;
}

/* Price updated */
.vs-products-table tr.vs-update-price td {
    background: var(--vs-primary-soft) !important;
    border-left: 4px solid var(--vs-primary);
    color: var(--vs-text);
}

/* Stock updated */
.vs-products-table tr.vs-update-stock td {
    background: var(--vs-warning-soft) !important;
    border-left: 4px solid var(--vs-warning);
    color: var(--vs-text);
}

/* Text/content updated */
.vs-products-table tr.vs-update-text td {
    background: var(--vs-success-soft) !important;
    border-left: 4px solid var(--vs-success);
    color: var(--vs-text);
}

/* ========= Soft Pulse Animation ========= */
@keyframes vsPulse {
    0% { box-shadow: 0 0 0 0 rgba(37,99,235,.35); }
    100% { box-shadow: 0 0 0 10px rgba(37,99,235,0); }
}

.vs-products-table tr.vs-pulse td {
    animation: vsPulse 1s ease-out;
}

/* ========= Responsive ========= */
@media (max-width: 768px) {
    .vs-dashboard {
        flex-direction: column;
    }

    .vs-sidebar {
        width: 100%;
        margin-bottom: 15px;
    }
}


#add-product-form-wrapper {
    animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.vs-split-cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.vs-cta-box {
    background: #fff;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
    text-align: center;
}

.vs-cta-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

.vs-muted {
    opacity: .7;
}

.vs-cta-box h2 {
    margin-bottom: 10px;
}

.vs-cta-box p {
    color: #555;
    margin-bottom: 25px;
}

.vs-btn-primary {
    background: #6c63ff;
    color: #fff;
    padding: 12px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.vs-btn-primary:hover {
    background: #584ee0;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/*عرض مميز للبحث*/
.vs-highlight {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0 2px;
    border-radius: 4px;
}
/* سجل البحث*/
#vs-search-history {
    margin-top: 5px;
    max-height: 120px;
    overflow-y: auto;
}

.vs-search-wrap {
    position: relative;
}

.vs-search-wrap #vs-search-history {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 20;
}

#vs-search-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#vs-search-history li {
    display: flex;
    justify-content: space-between;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 6px;
    margin-bottom: 3px;
    font-size: 13px;
}

.vs-history-item {
    cursor: pointer;
    color: #2563eb;
}

.vs-history-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}



.vs-form-wrapper {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.vs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.vs-field {
    display: flex;
    flex-direction: column;
}

.vs-field.full {
    grid-column: span 2;
}

.vs-field label {
    font-weight: 600;
    margin-bottom: 5px;
}
.vs-label-required::after {
    content: " *";
    color: #d63638;
    font-weight: 700;
}

.vs-field input,
.vs-field textarea,
.vs-field select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.vs-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.vs-btn {
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.vs-btn-primary {
    background: #2271b1;
    color: #fff;
}

.vs-btn-cancel {
    background: #ccc;
}
.vs-btn-cancel:hover {
    background: #bfbfbf;
    color: #222;
}

.vs-edit-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.vs-edit-img {
    position: relative;
    border: 1px solid #e5e7eb;
    padding: 6px;
    border-radius: 8px;
    background: #fff;
}
.vs-edit-img img {
    display: block;
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}
.vs-edit-img .vs-img-label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    text-align: center;
}
.vs-edit-img .vs-remove-img {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

/* New row highlight animation */
.vs-row-added {
    animation: vsRowFlash 2s ease;
    background: #ecfdf3;
}
@keyframes vsRowFlash {
    0% { background: #bbf7d0; }
    100% { background: #ffffff; }
}

/* Make TinyMCE toolbar buttons white */
.vs-form-wrapper .wp-editor-container .mce-toolbar .mce-btn button,
.vs-form-wrapper .wp-editor-container .mce-toolbar .mce-btn button:focus,
.vs-form-wrapper .wp-editor-container .mce-toolbar .mce-btn button:hover {
    background: #fff;
    color: #222;
    border: 1px solid #ccc;
}

.vs-form-wrapper .wp-editor-container .mce-toolbar .mce-btn.mce-active button {
    background: #fff;
    color: #222;
    border-color: #999;
}

.vs-upload-box,.vs-gallery-add  {
  width: 320px;
  height: 320px;
  border: 2px dashed #bbb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fafafa;
  position: relative;
  overflow: hidden;
}

.vs-upload-box:hover {
  border-color: #2271b1;
}

.vs-upload-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-plus {
  font-size: 70px;
  color: #bbb;
  font-weight: bold;

}

.vs-gallery {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  
}

.vs-gallery-item {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.vs-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Gallery Wrapper ===== */
.vs-gallery-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ===== Small + Button ===== */
.vs-gallery-add {
  width: 84px;
  height: 84px;
  border-radius: 10px;
}

.vs-gallery-add span {
  font-size: 28px;
  color: var(--vs-muted);
  font-weight: 500;
}

.vs-gallery-add:hover {
  border-color: var(--vs-primary);
  background: #f0f5ff;
}

.vs-gallery-add:hover span {
  color: var(--vs-primary);
}

/* ===== No Results (Search / Empty Table) ===== */
.vs-empty-search {
  text-align: center;
  padding: 40px 0;
}

.vs-empty-search .vs-empty-hero {
  width: min(360px, 80%);
  margin: 0 auto 12px;
}

.vs-empty-search .vs-empty-svg {
  width: 100%;
  height: auto;
  display: block;
}

.vs-empty-search .vs-empty-title {
  font-size: 18px;
  color: #1e293b;
  font-weight: 700;
  margin: 6px 0 4px;
}

.vs-empty-search .vs-empty-subtitle {
  color: #64748b;
  font-size: 13px;
  margin: 0;
}

.vs-empty-anim {
  animation: vsFloatUp 3.2s ease-in-out infinite;
}

/* ===== Empty State (No Products) ===== */
.vs-empty-state {
  text-align: center;
  padding: 50px 20px;
}

.vs-empty-hero {
  width: min(420px, 90%);
  margin: 0 auto 16px;
  cursor: pointer;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.vs-empty-hero:hover {
  transform: translateY(-4px) scale(1.01);
  filter: drop-shadow(0 18px 35px rgba(37, 99, 235, 0.18));
}

.vs-empty-svg {
  width: 100%;
  height: auto;
  display: block;
}

.vs-empty-title {
  font-size: 20px;
  color: #1e293b;
  font-weight: 700;
  margin: 6px 0 4px;
}

.vs-empty-subtitle {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

@keyframes vsFloatUp {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes vsPulseSoft {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.08); opacity: 0.75; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes vsBubble {
  0% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(-6px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.9; }
}

.vs-empty-svg .vs-float {
  animation: vsFloatUp 3.6s ease-in-out infinite;
}

.vs-empty-svg .vs-pulse {
  transform-origin: center;
  animation: vsPulseSoft 2.6s ease-in-out infinite;
}

.vs-empty-svg .vs-bubbles {
  animation: vsBubble 4s ease-in-out infinite;
}




















/**/
        .vs-onboard {
            max-width: 720px;
            margin: 10px auto 0;
            padding: 24px;
            border-radius: 16px;
            background: #ffffff;
            box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
        }
        .vs-onboard-steps {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            position: relative;
        }
        .vs-onboard-steps::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 3px;
            background: #e5e7eb;
            transform: translateY(-50%);
            z-index: 0;
        }
        .vs-onboard-step {
            position: relative;
            z-index: 1;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8fafc;
            border: 2px solid #e5e7eb;
            color: #64748b;
            font-weight: 700;
        }
        .vs-onboard-step.is-active,
        .vs-onboard-step.is-complete {
            border-color: #2563eb;
            color: #2563eb;
        }
        .vs-onboard-step.is-complete {
            background: #2563eb;
            color: #fff;
        }
        .vs-onboard-alert {
            background: #fef2f2;
            color: #991b1b;
            padding: 14px 16px;
            border-radius: 10px;
            font-weight: 600;
            margin-bottom: 12px;
        }
        .vs-onboard-form {
            display: grid;
            gap: 12px;
        }
        .vs-onboard-form label {
            font-weight: 600;
            color: #0f172a;
        }
        .vs-onboard-form input,
        .vs-onboard-form textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            font-size: 14px;
        }
        .vs-onboard-celebrate {
            background: linear-gradient(135deg, #22c55e, #14b8a6, #0ea5e9);
            color: #fff;
            padding: 24px;
            border-radius: 16px;
            text-align: center;
            box-shadow: 0 12px 30px rgba(14, 116, 144, 0.25);
        }
        .vs-onboard-actions {
            display: flex;
            justify-content: space-between;
            margin-top: 18px;
        }
        .vs-onboard-actions button {
            padding: 10px 18px;
            border: none;
            border-radius: 10px;
            background: #2563eb;
            color: #fff;
            font-weight: 600;
            cursor: pointer;
        }
        .vs-onboard-actions button:disabled {
            background: #94a3b8;
            cursor: not-allowed;
        }
        .vs-onboard-panel {
            display: none;
        }
        .vs-onboard-panel.is-active {
            display: block;
        }
        .vs-onboard-celebrate {
    text-align: center;
    animation: fadeScale 0.6s ease forwards;
}

.vs-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 42px;
    line-height: 80px;
    animation: pop 0.5s ease;
}

@keyframes pop {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
