﻿/* Marketplace Styles */
.marketplace-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 auto 50px;
    padding: 0 20px;
    max-width: 800px;
}

.marketplace-card {
    width: 320px;
    border-radius: 12px;
    background: var(--light-color, white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.marketplace-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.marketplace-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.marketplace-card-header h3 {
    margin: 0;
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

.marketplace-price {
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.marketplace-price::before {
    content: "$";
    font-size: 1.5rem;
    position: relative;
    top: -5px;
    margin-right: 2px;
    opacity: 0.9;
}

.marketplace-card-header::after {
    content: "Premium";
    position: absolute;
    top: 10px;
    right: -35px;
    transform: rotate(45deg);
    background-color: rgba(255, 255, 255, 0.15);
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.marketplace-card-body {
    padding: 25px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.marketplace-feature {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.marketplace-feature:last-child {
    margin-bottom: 0;
}

.marketplace-feature i {
    color: var(--accent-color, #4CAF50);
    margin-right: 12px;
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
}

.marketplace-btn {
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.marketplace-btn:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Master Marketplace Orders */
.orders-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    overflow: hidden;
}

.orders-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
}

.orders-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th, 
.orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.orders-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.orders-table tr:hover {
    background-color: #f5f5f5;
}

.order-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-status.pending {
    background-color: #FFF3E0;
    color: #E65100;
}

.order-status.fulfilled {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.no-orders-message {
    padding: 40px 20px;
    text-align: center;
    color: #757575;
}

.no-orders-message i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #BDBDBD;
}

/* Marketplace button in header */
#marketplaceHeaderButton {
    position: relative;
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-right: 15px;
}

#marketplaceHeaderButton:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Notification badge on marketplace button */
#marketplaceNotificationBadge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

/* Order Actions in Marketplace */
.order-actions {
    display: flex;
    gap: 5px;
}

/* Custom Confirm Dialog Styling */
.custom-confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.confirm-dialog-content {
    background-color: var(--light-color, white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.confirm-dialog-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--primary-color, #007bff);
    color: white;
}

.confirm-dialog-header i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.confirm-dialog-header h3 {
    flex-grow: 1;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.confirm-dialog-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.confirm-dialog-header .close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.confirm-dialog-body {
    padding: 20px;
}

.confirm-dialog-body p {
    margin: 0 0 10px;
    line-height: 1.5;
}

.confirm-dialog-body p:last-child {
    margin-top: 15px;
    font-weight: 600;
    color: var(--danger-color, #dc3545);
}

.confirm-dialog-body i {
    width: 20px;
    margin-right: 5px;
}

.confirm-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 20px 20px;
}

.confirm-dialog-footer button {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Enhanced Marketplace Styling */
.marketplace-header {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 30px;
    text-align: center;
}

.marketplace-description {
    font-size: 1.1rem;
    color: var(--text-color-secondary, #6c757d);
    max-width: 80%;
    margin: 10px auto 0;
    line-height: 1.6;
}

.marketplace-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.marketplace-stat {
    display: flex;
    align-items: center;
    background: var(--light-color, white);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    min-width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marketplace-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2rem;
    margin-right: 15px;
    color: var(--primary-color, #007bff);
    background: rgba(0,123,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info h3 {
    font-size: 1.6rem;
    margin: 0;
    font-weight: 700;
    color: var(--text-color, #333);
}

.stat-info p {
    margin: 5px 0 0;
    color: var(--text-color-secondary, #6c757d);
    font-size: 0.9rem;
}

.marketplace-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
    padding: 0 20px;
}

.marketplace-card {
    width: 320px;
    border-radius: 12px;
    background: var(--light-color, white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.marketplace-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* New Marketplace Orders Styling - Enhanced version */
.orders-description {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Add distinction between LMS and Lead orders sections */
.orders-container:nth-of-type(2) {
    border-left: 4px solid var(--primary-color);
}

.orders-container:nth-of-type(3) {
    border-left: 4px solid var(--accent-color, #5965e1);
}

/* Order Tabs Styling */
.orders-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.orders-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0;
    margin-bottom: 0;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.orders-tabs-group {
    display: flex;
    gap: 4px;
}

.orders-tabs .checkout-type-toggle-section {
    margin-left: auto;
    flex-shrink: 0;
}

.orders-tab {
    padding: 12px 24px;
    background-color: rgba(236, 240, 241, 0.8);
    color: var(--text-color);
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    position: relative;
    top: 1px;
    margin-right: 4px;
}

.orders-tab:hover {
    background-color: #fff;
}

.orders-tab.active {
    background-color: white;
    color: var(--primary-color);
    border-bottom-color: white;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.orders-tab-count {
    background-color: var(--accent-color);
    color: white;
    min-width: 22px;
    height: 22px;
    font-size: 0.8rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.orders-tab-content {
    background-color: white;
    border-radius: 0 8px 8px 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 0 20px 20px 20px;
    display: none;
}

.orders-tab-content.active {
    display: block;
}

.orders-tab-panel {
    padding: 0;
}

.orders-tab-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.orders-tab-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.orders-tab-description {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    padding: 10px 20px;
    background-color: rgba(236, 240, 241, 0.3);
    border-bottom: 1px solid #eee;
}

/* Add distinction between tabs when active */
.orders-tab[data-tab="lms"].active {
    border-top: 3px solid var(--primary-color);
}

.orders-tab[data-tab="leads"].active {
    border-top: 3px solid var(--accent-color);
}

/* Styles for the purchase confirmation dialog */
.confirm-dialog-header {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    padding: 18px 20px;
}

.confirm-dialog-header h3 {
    flex-grow: 1;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

/* Direct targeting of the purchase confirmation message */
.confirm-dialog-body p.confirm-purchase-message {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    padding: 10px 0 !important;
    text-align: center !important;
    margin-top: 15px !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    display: block !important;
}

/* Alternative selector for confirmation message for browser compatibility */
.custom-confirm-dialog .confirm-dialog-body .confirm-purchase-message {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important; 
}

/* Styles for the success dialog confirmation messages */
.success-dialog .confirm-dialog-body p {
    color: var(--text-color, #333) !important;
}

.success-dialog .success-message {
    font-weight: bold;
    color: var(--success-color, #2ecc71) !important;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Payment Options Styles */
.payment-options-body {
    padding: 20px !important;
}

.payment-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.payment-amount {
    font-size: 1.3rem;
    color: var(--primary-color) !important;
    font-weight: bold;
    margin-top: 8px !important;
}

.payment-methods-section h4 {
    color: var(--text-color, #333);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.payment-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 120px;
    text-decoration: none;
    color: #333;
}

.payment-method-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.cashapp-btn {
    border-color: #00d632;
    color: #00d632;
}

.cashapp-btn:hover {
    background: linear-gradient(135deg, #00d632 0%, #00b82a 100%);
    color: white;
    border-color: #00d632;
}

.cashapp-btn i {
    font-size: 2rem;
}

.venmo-btn {
    border-color: #3D95CE;
    color: #3D95CE;
}

.venmo-btn:hover {
    background: linear-gradient(135deg, #3D95CE 0%, #2980b9 100%);
    color: white;
    border-color: #3D95CE;
}

.venmo-btn i {
    font-size: 2rem;
}

/* Payment Logo Styling */
.payment-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.payment-method-btn:hover .payment-logo {
    transform: scale(1.1);
}

/* QR Code Container Styles */
.qr-code-container {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e1e5e9;
}

.qr-code-header {
    margin-bottom: 20px;
}

.qr-code-header h4 {
    margin: 0 0 10px 0;
    color: var(--text-color, #333);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qr-amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 5px 0 !important;
}

.qr-code-display {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qr-code-display img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-instructions {
    color: #666;
    font-size: 0.95rem;
    margin: 10px 0 !important;
    font-style: italic;
}

.qr-code-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.qr-code-actions button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 140px;
}

.payment-complete-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.payment-complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.4);
}

/* Payment Confirmation Dialog */
.payment-confirmation .confirm-dialog-content {
    border: 2px solid #f39c12;
}

.payment-confirmation .confirm-dialog-header {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.warning-text {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 10px;
    color: #856404 !important;
    font-size: 0.9rem;
    margin-top: 15px !important;
}

.warning-text i {
    color: #f39c12;
    margin-right: 8px;
}

/* Button variants */
.btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

/* No Refunds Notice */
.no-refunds-notice {
    color: #dc3545 !important;
    font-weight: bold !important;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 10px;
    margin: 15px 0 !important;
    text-align: center;
    font-size: 0.95rem;
}

.no-refunds-notice i {
    color: #dc3545;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .payment-method-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .qr-code-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .qr-code-actions button {
        width: 100%;
        max-width: 250px;
    }
    
    .qr-code-display img {
        width: 150px;
        height: 150px;
    }
}

/* Price Management Styles */
.price-management-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.orders-tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.current-price-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.price-highlight {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

.price-input-section {
    margin-bottom: 20px;
}

.price-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color, #333);
}

.price-input-group {
    display: flex;
    align-items: center;
    position: relative;
}

.dollar-sign {
    position: absolute;
    left: 12px;
    color: #666;
    font-weight: bold;
    z-index: 1;
}

.price-input {
    width: 100%;
    padding: 12px 12px 12px 30px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.price-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.price-note {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.price-note p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

.price-note i {
    color: #ffc107;
    margin-right: 8px;
}

.price-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

/* Button styling for price management */
#managePriceBtn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#managePriceBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

#managePriceBtn i {
    margin-right: 6px;
}

/* Checkout Type Toggle Styles */
.checkout-type-toggle-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkout-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkout-type-label {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
}

.checkout-toggle-switch {
    position: relative;
    width: 170px;
    height: 32px;
}

.checkout-toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.checkout-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 2px;
}

.checkout-toggle-slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 83px;
    left: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.checkout-toggle-text {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    z-index: 1;
}

.checkout-toggle-text.qr {
    left: 8px;
    color: #000000;
    font-size: 0.75rem;
}

.checkout-toggle-text.standard {
    right: 18px;
    color: #000000;
}

input:checked + .checkout-toggle-slider {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

input:checked + .checkout-toggle-slider:before {
    transform: translateX(83px);
}

input:checked + .checkout-toggle-slider .checkout-toggle-text.qr {
    color: #000000;
}

input:checked + .checkout-toggle-slider .checkout-toggle-text.standard {
    color: #000000;
}

.checkout-toggle-switch:hover .checkout-toggle-slider {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Standard Payment Styles */
.standard-payment-section {
    margin-top: 20px;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    border-radius: 8px;
    border-left: 4px solid #007bff;
    margin-bottom: 20px;
}

.payment-info i {
    color: #007bff;
    font-size: 1.2rem;
}

.payment-info p {
    margin: 0 !important;
    color: #495057;
    font-size: 0.9rem;
}

.paypal-container-marketplace {
    min-height: 80px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.paypal-loading {
    text-align: center;
    color: #6c757d;
}

.paypal-loading i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

.paypal-loading p {
    margin: 0;
    font-size: 0.9rem;
}

.paypal-error {
    text-align: center;
    color: #dc3545;
    padding: 20px;
}

.paypal-error i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.paypal-error p {
    margin: 0;
    font-size: 0.9rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Lead management section */
.lead-management-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.lead-price-management-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Header controls section for LMS orders */
.header-controls-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

/* Pause toggle styles */
.pause-toggle-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pause-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.pause-toggle-text {
    color: white;
    font-size: 0.9rem;
}

.pause-toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.pause-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pause-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4CAF50;
    transition: 0.3s;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.pause-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-icon {
    font-size: 12px;
    color: white;
    z-index: 1;
    transition: opacity 0.3s;
}

.play-icon {
    opacity: 1;
}

.pause-icon {
    opacity: 0;
}

input:checked + .pause-toggle-slider {
    background-color: #f44336;
}

input:checked + .pause-toggle-slider:before {
    transform: translateX(30px);
}

input:checked + .pause-toggle-slider .play-icon {
    opacity: 0;
}

input:checked + .pause-toggle-slider .pause-icon {
    opacity: 1;
}

.pause-toggle-switch:hover .pause-toggle-slider {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 0 0 3px rgba(255, 255, 255, 0.1);
}

#manageLeadPriceBtn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e67e22 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

#manageLeadPriceBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #e67e22 0%, var(--accent-color) 100%);
}

#manageLeadPriceBtn i {
    margin-right: 6px;
}

/* Lead Vendor Management Button */
#manageLeadVendorBtn {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    margin-left: 10px;
}

#manageLeadVendorBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

#manageLeadVendorBtn i {
    margin-right: 6px;
}

/* Lead Vendor Display on Agent Cards */
.marketplace-vendor-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    margin: 0 -20px 15px -20px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.vendor-text {
    margin: 0;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.vendor-name {
    color: #dc3545 !important;
    font-weight: bold !important;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(220, 53, 69, 0.2);
}

/* Lead Vendor Management Modal Styles */
.current-vendor-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.current-vendor-display h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.current-vendor-display p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.vendor-highlight {
    color: #dc3545;
    font-weight: bold;
    font-size: 16px;
    background: rgba(220, 53, 69, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.vendor-input-section {
    margin-bottom: 25px;
}

.vendor-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vendor-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.vendor-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.vendor-input:focus {
    outline: none;
    border-color: #9b59b6;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.vendor-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 4px;
}

.vendor-note {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.vendor-note p {
    margin: 0;
    font-size: 13px;
    color: #0c5460;
    line-height: 1.5;
}

.vendor-note i {
    color: #17a2b8;
    margin-right: 6px;
}

/* Responsive adjustments for checkout toggle */
@media (max-width: 768px) {
    .checkout-type-toggle-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .checkout-toggle-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .lead-management-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-left: 0;
        width: 100%;
    }
    
    .lead-price-management-section,
    .lead-vendor-management-section {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    #manageLeadVendorBtn {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Enhanced Modal and Card Fields Styling */
.custom-confirm-dialog {
    padding: 20px;
    box-sizing: border-box;
}

.custom-confirm-dialog .confirm-dialog-content {
    position: relative;
    margin: 0 auto;
    max-height: 95vh;
    min-height: 400px;
    height: auto !important;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.confirm-dialog-body {
    max-height: 80vh;
    min-height: 300px;
    height: auto !important;
    overflow-y: auto;
    padding: 20px;
}

/* Card Fields Specific Styles */
.card-fields-wrapper {
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
    min-height: 300px;
    padding: 20px;
}

.paypal-card-fields {
    min-height: 200px;
    width: 100%;
}

/* PayPal specific field styling */
#marketplace-paypal-card-container {
    width: 100%;
    min-height: 300px;
    background: white;
    border-radius: 8px;
    padding: 20px;
}

/* Ensure PayPal iframes are visible and properly sized */
#marketplace-paypal-card-container iframe {
    width: 100% !important;
    min-height: 50px !important;
    margin-bottom: 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 10px !important;
    background: white !important;
    box-sizing: border-box !important;
}

/* PayPal card form container */
#marketplace-paypal-card-container div[data-ppcp-element] {
    margin-bottom: 15px !important;
    width: 100% !important;
}

/* PayPal submit button styling */
#marketplace-paypal-card-container button {
    width: 100% !important;
    background: #0070ba !important;
    border: none !important;
    color: white !important;
    padding: 15px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 20px !important;
}

/* Loading state for card fields */
#card-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

#card-loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

#card-loading p {
    margin: 0;
    font-size: 0.9rem;
}

/* Sales page style payment buttons */
.space-y-4 > * + * {
    margin-top: 1rem;
}

.max-w-md {
    max-width: 28rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.w-full {
    width: 100%;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

.bg-gray-700 {
    background-color: #374151;
}

.hover\:bg-gray-600:hover {
    background-color: #4b5563;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-semibold {
    font-weight: 600;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:scale-105:hover {
    --tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-blue-400 {
    color: #60a5fa;
}

.hover\:text-blue-300:hover {
    color: #93c5fd;
}

.underline {
    text-decoration-line: underline;
}

.mt-6 {
    margin-top: 1.5rem;
}

/* Responsive adjustments for modal */
@media (max-width: 640px) {
    .custom-confirm-dialog {
        padding: 10px;
    }
    
    .custom-confirm-dialog .confirm-dialog-content {
        width: 100%;
        max-height: 95vh;
    }
    
    .confirm-dialog-body {
        max-height: 75vh;
        padding: 15px;
    }
    
    .card-fields-wrapper {
        padding: 15px;
        min-height: 250px;
        margin: 15px 0;
    }
    
    .space-x-3 > * + * {
        margin-left: 0.5rem;
    }
    
    .text-lg {
        font-size: 1rem;
    }
    
    .py-4 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

/* Real-time Order Update Animations */
.new-order-highlight {
    animation: newOrderPulse 3s ease-in-out;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 50%, transparent 100%);
    border-left: 4px solid #4CAF50;
}

.order-updated-highlight {
    animation: orderUpdateFlash 2s ease-in-out;
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.05) 50%, transparent 100%);
    border-left: 4px solid #2196F3;
}

@keyframes newOrderPulse {
    0% {
        background: rgba(76, 175, 80, 0.3);
        transform: scale(1.02);
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
    }
    50% {
        background: rgba(76, 175, 80, 0.15);
        transform: scale(1.01);
    }
    100% {
        background: rgba(76, 175, 80, 0.05);
        transform: scale(1);
        box-shadow: none;
    }
}

@keyframes orderUpdateFlash {
    0% {
        background: rgba(33, 150, 243, 0.25);
    }
    50% {
        background: rgba(33, 150, 243, 0.1);
    }
    100% {
        background: rgba(33, 150, 243, 0.05);
    }
}

/* Smooth transition for new rows */
.orders-table tbody tr {
    transition: all 0.3s ease-in-out;
}

/* Enhanced visual feedback for real-time updates */
.orders-tab-count {
    transition: all 0.3s ease;
}

.orders-tab-count.updated {
    animation: countUpdate 1s ease-in-out;
}

@keyframes countUpdate {
    0% { 
        transform: scale(1); 
        background: rgba(76, 175, 80, 0.2);
    }
    50% { 
        transform: scale(1.1); 
        background: rgba(76, 175, 80, 0.4);
    }
    100% { 
        transform: scale(1); 
        background: transparent;
    }
}
