/* LP Marketplace Styles v1.0.0 */

:root {
    --lpm-primary-color: #4a6cf7;
    --lpm-secondary-color: #5a7ef9;
    --lpm-accent-color: #f76f4a;
    --lpm-text-color: #333333;
    --lpm-font-size: 14px;
    --lpm-border-radius: 4px;
    --lpm-primary-color-rgb: 74, 108, 247;
}

/* Update the file input hiding technique to be more robust */
input[type="file"].lpm-file-input,
input[type="file"].lpm-gallery-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

body ::-webkit-scrollbar {
    width: 8px !important;
    height: 3px !important;
    background: linear-gradient(135deg, rgb(229 93 0) 0%, rgb(229 93 0) 100%) !important;
    color: #000000 !important;
}

body ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgb(0, 0, 0) 0%, rgb(0, 0, 0) 100%) !important;
    color: #000000 !important;
}

/* Make sure hidden inputs are really hidden */
.hidden-inputs {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.lpm-stats-info {
    padding: 10px;
    font-size: 14px;
    display: flex;
    column-gap: 10px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    color: #fff;
    background-color: #1a1a1a;
    border-radius: 10px;
    border-width: 2px;
    border-color: #ff6300;
    border-style: solid;
}

/* Improve button styling to make them more obvious as clickable elements */
label[for="featured_image_file"],
label[for="gallery_images"] {
    display: inline-block;
    padding: 12px 20px;
    background: var(--lpm-primary-color);
    color: #fff;
    border-radius: var(--lpm-border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    border: none;
    font-size: var(--lpm-font-size);
}

label[for="featured_image_file"]:hover,
label[for="gallery_images"]:hover {
    background: var(--lpm-secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--lpm-primary-color-rgb), 0.3);
}

/* Prevent any clickthrough issues with buttons */
.lpm-btn-primary, 
.lpm-btn-secondary,
.lpm-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--lpm-border-radius);
    font-size: var(--lpm-font-size);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lpm-btn-secondary,
.lpm-btn-danger {
    background: #6c757d;
    color: #fff;
}

.lpm-btn-danger,
.lpm-btn-danger {
    background: #dc3545;
    color: #fff;
}

/* Make sure WP Media dialog is on top of everything */
.media-modal {
    z-index: 9999;
}

.media-modal-close {
    cursor: pointer;
}

/* Fix for gallery actions spacing */
.lpm-gallery-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Fix for image uploader clarity */
.lpm-image-uploader {
    margin-bottom: 20px;
    border: 2px dashed #ddd;
    border-radius: var(--lpm-border-radius);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.image-preview-area {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: var(--lpm-border-radius);
    position: relative;
    overflow: hidden;
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--lpm-border-radius);
}

.lpm-gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.lpm-gallery-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--lpm-border-radius);
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.lpm-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lpm-remove-gallery-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

/* Remove any duplicate button styling */
.lpm-select-image,
.lpm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lpm-btn {
    padding: 10px 16px;
    border-radius: var(--lpm-border-radius);
    font-size: var(--lpm-font-size);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.lpm-btn-primary {
    background: var(--lpm-primary-color);
    color: #fff;
}

.lpm-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.lpm-btn-danger {
    background: #dc3545;
    color: #fff;
}

.lpm-btn:hover {
    transform: translateY(-2px);
}

/* Ensure the saving popup is visible */
#lpm-submission-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px;
    border-radius: var(--lpm-border-radius);
    z-index: 9999;
    display: none;
}

.lpm-nav-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin: 20px 0 10px;
    padding: 0 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#lpm-submission-indicator > div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
}

/* Dashboard Styles */
.lpmarket-dashboard,
.lpm-dashboard-wrapper {
    margin-bottom: 30px;
    background: #fff;
    border-radius: var(--lpm-border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0px;
    font-size: var(--lpm-font-size);
    color: var(--lpm-text-color);
}

.lpmarket-dashboard h2,
.lpmarket-dashboard h3,
.lpm-dashboard-wrapper h2,
.lpm-dashboard-wrapper h3 {
    margin-top: 0;
    margin-bottom: 0px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-top: 12px;
}

.lpmarket-dashboard ul.lpm-stats,
.lpm-dashboard-wrapper ul.lpm-stats {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 -10px 20px;
    padding: 0;
}

.lpmarket-dashboard ul.lpm-stats li,
.lpm-dashboard-wrapper ul.lpm-stats li {
    flex: 1;
    min-width: 150px;
    background: #f9f9f9;
    margin: 0 10px 20px;
    padding: 15px;
    border-radius: var(--lpm-border-radius);
    border: 1px solid #eee;
    text-align: center;
}

.lpmarket-dashboard .lpm-stat-value,
.lpm-dashboard-wrapper .lpm-stat-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.lpmarket-dashboard .lpm-stat-label,
.lpm-dashboard-wrapper .lpm-stat-label {
    display: block;
    color: #777;
    font-size: 12px;
    padding-left: 10px;
}

/* Dashboard Header */
.lpm-dashboard-header {
    background-color: var(--lpm-primary-color);
    background-size: cover;
    background-position: center;
    padding: 40px 30px;
    color: #fff;
    position: relative;
    border-radius: var(--lpm-border-radius) var(--lpm-border-radius) 0 0;
    margin: -20px -20px 20px;
}

.lpm-dashboard-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    border-radius: var(--lpm-border-radius) var(--lpm-border-radius) 0 0;
}

.lpm-dashboard-header-content {
    position: relative;
    z-index: 2;
}

.lpm-dashboard-header h1 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}

.lpm-shop-name {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.lpm-header-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.lpm-header-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: var(--lpm-border-radius);
    min-width: 120px;
    flex: 1;
}

.lpm-header-stat .lpm-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.lpm-header-stat .lpm-stat-label {
    font-size: 14px;
    opacity: 0.9;
    color: #fff;
}

/* Quick Actions Bar */
.lpm-quick-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f9f9f9;
    border-radius: var(--lpm-border-radius);
}

.lpm-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lpm-quick-action {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--lpm-border-radius);
    text-decoration: none;
    color: var(--lpm-text-color);
    transition: all 0.2s ease;
}

.lpm-quick-action:hover {
    background: var(--lpm-accent-color);
    border-color: var(--lpm-accent-color);
    color: #fff;
}

.lpm-quick-action .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.lpm-search-box {
    position: relative;
    max-width: 250px;
}

.lpm-search-box input[type="text"] {
    width: 100%;
    padding: 8px 30px 8px 10px;
    border: 1px solid #ddd;
    border-radius: var(--lpm-border-radius);
}

.lpm-search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #777;
}

/* Dashboard Content Wrapper */
.lpm-dashboard-content-wrapper {
    display: flex;
    gap: 20px;
}

.lpm-dashboard-tabs {
    width: 200px;
    flex-shrink: 0;
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.lpm-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: var(--lpm-border-radius);
    text-decoration: none;
    color: var(--lpm-text-color);
    transition: all 0.2s ease;
}

.lpm-tab:hover, 
.lpm-tab.active {
    background: #f5f5f5;
    color: var(--lpm-primary-color);
}

.lpm-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.lpm-dashboard-content {
    flex: 1;
}

/* Section Styles */
.lpm-section {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--lpm-border-radius);
    overflow: hidden;
}

.lpm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.lpm-section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.lpm-view-all {
    font-size: 14px;
    text-decoration: none;
    color: var(--lpm-primary-color);
}

.lpm-view-all:hover {
    text-decoration: underline;
    color: var(--lpm-accent-color);
}

/* Stats Cards */
.lpm-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.lpm-stat-card {
    border: 1px solid #eee;
    border-radius: var(--lpm-border-radius);
    overflow: hidden;
}

.lpm-stat-card-header {
    padding: 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.lpm-stat-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.lpm-stat-card-body {
    padding: 15px;
}

.lpm-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.lpm-stat-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.lpm-stat-card-footer {
    padding: 10px 15px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    text-align: right;
}

.lpm-view-details {
    font-size: 14px;
    text-decoration: none;
    color: var(--lpm-primary-color);
}

.lpm-view-details:hover {
    color: var(--lpm-accent-color);
}

/* Empty State */
.lpm-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.lpm-empty-state-icon {
    margin-bottom: 15px;
}

.lpm-empty-state-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ddd;
}

.lpm-empty-state h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.lpm-empty-state p {
    margin-bottom: 20px;
    color: #777;
}

/* Products Grid */
.lpm-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
}

.lpm-product-card {
    border: 1px solid #eee;
    border-radius: var(--lpm-border-radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    position: relative;
}

.lpm-product-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.lpm-product-card.lpm-featured-product {
    border-color: var(--lpm-accent-color);
}

.lpm-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--lpm-accent-color);
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
    z-index: 1;
}

.lpm-product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.lpm-product-card-content {
    padding: 15px;
}

.lpm-product-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: none;
    padding-bottom: 0;
}

.lpm-product-card h3 a {
    text-decoration: none;
    color: var(--lpm-text-color);
}

.lpm-product-card h3 a:hover {
    color: var(--lpm-primary-color);
}

.lpm-product-card .price {
    color: #333; /* Black for regular prices */
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
}

/* WooCommerce sale price styling for product cards */
.lpm-product-card .price del,
.lpm-product-card .price .woocommerce-Price-amount {
    color: #333; /* Regular price in black */
}

.lpm-product-card .price ins,
.lpm-product-card .price ins .woocommerce-Price-amount {
    color: #dc3545 !important; /* Sale price in red */
    text-decoration: none;
    font-weight: 700;
}

/* Alternative selectors for different WooCommerce price structures in product cards */
.lpm-product-card ins {
    color: #dc3545 !important; /* Sale price in red */
    text-decoration: none;
    font-weight: 700;
}

.lpm-product-card del {
    color: #999; /* Struck-through original price in gray */
    opacity: 0.7;
}

.lpm-product-card-actions {
    margin-top: 15px;
}

/* Featured Packages */
.lpm-featured-packages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.lpm-package-card {
    border: 1px solid #eee;
    border-radius: var(--lpm-border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lpm-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lpm-package-header {
    padding: 20px;
    background: var(--lpm-primary-color);
    color: #fff;
    text-align: center;
}

.lpm-package-header h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
}

.lpm-package-price {
    font-size: 24px;
    font-weight: 700;
}

.lpm-package-content {
    padding: 20px;
}

.lpm-package-content p {
    margin-top: 0;
    margin-bottom: 15px;
    color: #666;
}

.lpm-package-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 14px;
}

.lpm-package-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    text-align: center;
}

.lpm-select-package {
    width: 100%;
    background: var(--lpm-accent-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--lpm-border-radius);
    cursor: pointer;
    transition: background 0.2s ease;
}

.lpm-select-package:hover {
    background: #e55a3d;
}

/* Modal */
.lpm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lpm-modal-content {
    background: #fff;
    border-radius: var(--lpm-border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.lpm-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.lpm-modal-close:hover {
    color: #333;
}

.lpm-modal-content h3 {
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, rgb(229 93 0) 0%, rgb(26 26 26) 100%);
    border-bottom: 1px solid #eee;
    font-size: 22px;
    font-weight: 100;
    border-radius: var(--lpm-border-radius) var(--lpm-border-radius) 0 0;
    color: #fff;
}

.lpm-modal-body {
    padding: 20px;
}

.lpm-modal-body p {
    margin-top: 0;
    margin-bottom: 15px;
}

.lpm-modal-body select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--lpm-border-radius);
    margin-bottom: 20px;
}

.lpm-modal-actions {
    text-align: right;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lpm-dashboard-content-wrapper {
        flex-direction: column;
    }
    
    .lpm-dashboard-tabs {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .lpm-tab {
        flex: 1;
        justify-content: center;
    }
    
    .lpm-tab .tab-text {
        display: none;
    }
    
    .lpm-tab .dashicons {
        margin-right: 0;
    }
    
    .lpm-quick-actions-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .lpm-search-box {
        max-width: 100%;
        width: 100%;
    }
    
    .lpm-stats-cards,
    .lpm-featured-packages {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .lpm-header-stats {
        grid-template-columns: 1fr;
    }
    
    .lpm-products-grid {
        grid-template-columns: 1fr;
    }
}

/**
 * Lucid Pulse Marketplace - Main Styles
 */

/* Common Elements */
.lpm-container {
    margin-bottom: 30px;
}

.lpm-container * {
    box-sizing: border-box;
}

/* Common Form Elements */
.lpm-form-group {
    margin-bottom: 20px;
}

.lpm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.lpm-form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.lpm-form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #ff6600;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
}

/* Common Button Styles */
.lpm-button {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 4px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.lpm-button-primary {
    color: #fff;
    background-color: #ff6600;
    border-color: #ff6600;
}

.lpm-button-primary:hover {
    color: #fff;
    background-color: #e55d00;
    border-color: #cc5200;
}

.lpm-button-secondary {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.lpm-button-secondary:hover {
    color: #212529;
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

/* Common Alert Styles */
.lpm-alert {
    position: relative;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.lpm-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.lpm-alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.lpm-alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.lpm-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Common Table Styles */
.lpm-table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
    border-collapse: collapse;
}

.lpm-table th,
.lpm-table td {
    padding: 12px;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.lpm-table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

.lpm-table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

/* Common Grid Layout */
.lpm-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.lpm-col {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

/* Responsive utilities */
@media (min-width: 576px) {
    .lpm-col-sm {
        flex-basis: 0;
        flex-grow: 1;
        max-width: 100%;
    }
    .lpm-col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .lpm-col-sm-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 768px) {
    .lpm-col-md {
        flex-basis: 0;
        flex-grow: 1;
        max-width: 100%;
    }
    .lpm-col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .lpm-col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .lpm-col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 992px) {
    .lpm-col-lg {
        flex-basis: 0;
        flex-grow: 1;
        max-width: 100%;
    }
    .lpm-col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .lpm-col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .lpm-col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Lucid Pulse Marketplace - Main Styles - Modern White/Black/Orange Theme */

/* CSS Variables for consistent theming */
:root {
    --lpm-primary: #ff6600;
    --lpm-primary-dark: #e55d00;
    --lpm-primary-light: #ff8533;
    --lpm-secondary: #000000;
    --lpm-secondary-light: #333333;
    --lpm-bg-primary: #ffffff;
    --lpm-bg-secondary: #f8f9fa;
    --lpm-bg-tertiary: #f5f5f5;
    --lpm-text-primary: #000000;
    --lpm-text-secondary: #666666;
    --lpm-text-muted: #999999;
    --lpm-border: #e1e5e9;
    --lpm-border-light: #f0f0f0;
    --lpm-success: #28a745;
    --lpm-warning: #ffc107;
    --lpm-danger: #dc3545;
    --lpm-info: #17a2b8;
    --lpm-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --lpm-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --lpm-border-radius: 8px;
    --lpm-border-radius-sm: 4px;
    --lpm-transition: all 0.3s ease;
}

/* Reset and Base Styles */
.lpm-marketplace-container *,
.lpm-seller-dashboard-container *,
.lpm-dashboard-container * {
    box-sizing: border-box;
}

.lpm-marketplace-container,
.lpm-seller-dashboard-container,
.lpm-dashboard-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--lpm-text-primary);
}

/* Typography */
.lpm-heading-primary {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lpm-text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.lpm-heading-secondary {
    font-size: 2rem;
    font-weight: 600;
    color: var(--lpm-text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.lpm-heading-tertiary {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--lpm-text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.lpm-text-large {
    font-size: 1.125rem;
    color: var(--lpm-text-secondary);
}

.lpm-text-small {
    font-size: 0.875rem;
    color: var(--lpm-text-muted);
}

/* Button Styles */
.lpm-btn,
.lpm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--lpm-border-radius-sm);
    cursor: pointer;
    transition: var(--lpm-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.lpm-btn:focus,
.lpm-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
}

.lpm-btn .dashicons,
.lpm-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Primary Button */
.lpm-btn-primary,
.lpm-button-primary {
    background: linear-gradient(135deg, var(--lpm-primary) 0%, var(--lpm-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(255, 102, 0, 0.2);
}

.lpm-btn-primary:hover,
.lpm-button-primary:hover {
    background: linear-gradient(135deg, var(--lpm-primary-dark) 0%, #cc5200 100%);
    transform: translateY(-2px);
    box-shadow: var(--lpm-shadow-hover);
    color: #fff;
    text-decoration: none;
}

.lpm-btn-primary:active,
.lpm-button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 102, 0, 0.3);
}

/* Secondary Button */
.lpm-btn-secondary,
.lpm-button-secondary {
    background: var(--lpm-bg-primary);
    color: var(--lpm-text-primary);
    border: 2px solid var(--lpm-border);
}

.lpm-btn-secondary:hover,
.lpm-button-secondary:hover {
    background: var(--lpm-bg-secondary);
    border-color: var(--lpm-text-secondary);
    color: var(--lpm-text-primary);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Accent Button */
.lpm-btn-accent,
.lpm-button-accent {
    background: var(--lpm-warning);
    color: var(--lpm-secondary);
    border: 2px solid var(--lpm-warning);
}

.lpm-btn-accent:hover,
.lpm-button-accent:hover {
    background: #f57c00;
    border-color: #f57c00;
    color: #fff;
    text-decoration: none;
}

/* Outline Button */
.lpm-btn-outline,
.lpm-button-outline {
    background: transparent;
    color: var(--lpm-primary);
    border: 2px solid var(--lpm-primary);
}

.lpm-btn-outline:hover,
.lpm-button-outline:hover {
    background: var(--lpm-primary);
    color: #fff;
    text-decoration: none;
}

/* Button Sizes */
.lpm-btn-small,
.lpm-button-small {
    padding: 8px 16px;
    font-size: 12px;
}

.lpm-btn-large,
.lpm-button-large {
    padding: 16px 24px;
    font-size: 16px;
}

/* Button Block */
.lpm-btn-block,
.lpm-button-block {
    width: 100%;
    justify-content: center;
}

/* Card Styles */
.lpm-card {
    background: var(--lpm-bg-primary);
    border-radius: var(--lpm-border-radius);
    box-shadow: var(--lpm-shadow);
    border: 1px solid var(--lpm-border);
    overflow: hidden;
    transition: var(--lpm-transition);
}

.lpm-card:hover {
    box-shadow: var(--lpm-shadow-hover);
    transform: translateY(-2px);
}

.lpm-card-header {
    background: linear-gradient(135deg, var(--lpm-bg-secondary) 0%, var(--lpm-bg-tertiary) 100%);
    padding: 20px 25px;
    border-bottom: 1px solid var(--lpm-border);
}

.lpm-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--lpm-text-primary);
}

.lpm-card-subtitle {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: var(--lpm-text-secondary);
}

.lpm-card-body {
    padding: 25px;
}

.lpm-card-footer {
    background: var(--lpm-bg-secondary);
    padding: 20px 25px;
    border-top: 1px solid var(--lpm-border);
}

/* Form Styles */
.lpm-form-group {
    margin-bottom: 20px;
}

.lpm-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--lpm-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.lpm-form-label.required::after {
    content: ' *';
    color: var(--lpm-danger);
}

.lpm-form-control,
.lpm-form-input,
.lpm-form-select,
.lpm-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--lpm-border);
    border-radius: var(--lpm-border-radius-sm);
    font-size: 14px;
    color: var(--lpm-text-primary);
    background: var(--lpm-bg-primary);
    transition: var(--lpm-transition);
    font-family: inherit;
}

.lpm-form-control:focus,
.lpm-form-input:focus,
.lpm-form-select:focus,
.lpm-form-textarea:focus {
    outline: none;
    border-color: var(--lpm-primary);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.lpm-form-control.error,
.lpm-form-input.error,
.lpm-form-select.error,
.lpm-form-textarea.error {
    border-color: var(--lpm-danger);
}

.lpm-form-control.error:focus,
.lpm-form-input.error:focus,
.lpm-form-select.error:focus,
.lpm-form-textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.lpm-form-help {
    font-size: 12px;
    color: var(--lpm-text-muted);
    margin-top: 5px;
}

.lpm-form-error {
    font-size: 12px;
    color: var(--lpm-danger);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Checkbox and Radio Styles */
.lpm-form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lpm-form-check-input {
    width: auto;
    margin: 0;
}

.lpm-form-check-label {
    margin: 0;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    font-size: 14px;
    cursor: pointer;
}

/* Alert/Notice Styles */
.lpm-alert,
.lpm-notice {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: var(--lpm-border-radius);
    border-left: 4px solid;
    box-shadow: var(--lpm-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lpm-alert .dashicons,
.lpm-notice .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.lpm-alert-success,
.lpm-notice.success {
    background: #f0f9f0;
    border-color: var(--lpm-success);
    color: #155724;
}

.lpm-alert-warning,
.lpm-notice.warning {
    background: #fffbf0;
    border-color: var(--lpm-warning);
    color: #856404;
}

.lpm-alert-danger,
.lpm-alert-error,
.lpm-notice.error {
    background: #fef5f5;
    border-color: var(--lpm-danger);
    color: #721c24;
}

.lpm-alert-info,
.lpm-notice.info {
    background: #f0f8ff;
    border-color: var(--lpm-info);
    color: #0c5460;
}

/* Table Styles */
.lpm-table-responsive {
    overflow-x: auto;
    border-radius: var(--lpm-border-radius);
    box-shadow: var(--lpm-shadow);
    border: 1px solid var(--lpm-border);
}

.lpm-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--lpm-bg-primary);
}

.lpm-table th {
    background: linear-gradient(135deg, var(--lpm-bg-secondary) 0%, var(--lpm-bg-tertiary) 100%);
    color: var(--lpm-text-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 20px;
    border-bottom: 2px solid var(--lpm-border);
    font-size: 12px;
    text-align: left;
}

.lpm-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--lpm-border-light);
    color: var(--lpm-text-primary);
    vertical-align: middle;
}

.lpm-table tr:last-child td {
    border-bottom: none;
}

.lpm-table tr:hover {
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
}

/* Status Badge Styles */
.lpm-status-badge,
.lpm-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1;
}

.lpm-status-active {
    background: linear-gradient(135deg, #e8f5e9 0%, #d4f4d4 100%);
    color: var(--lpm-success);
    border: 1px solid #c3e6cb;
}

.lpm-status-pending {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #e67700;
    border: 1px solid #ffd54f;
}

.lpm-status-inactive,
.lpm-status-cancelled {
    background: linear-gradient(135deg, #fff0f0 0%, #ffe6e6 100%);
    color: var(--lpm-danger);
    border: 1px solid #f5c6cb;
}

.lpm-status-processing {
    background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%);
    color: var(--lpm-info);
    border: 1px solid #b3e5fc;
}

/* Loading Spinner */
.lpm-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--lpm-text-muted);
}

.lpm-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--lpm-border);
    border-top: 4px solid var(--lpm-primary);
    border-radius: 50%;
    animation: lpm-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes lpm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Grid System */
.lpm-grid {
    display: grid;
    gap: 20px;
}

.lpm-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.lpm-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.lpm-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Flexbox Utilities */
.lpm-flex {
    display: flex;
}

.lpm-flex-wrap {
    flex-wrap: wrap;
}

.lpm-flex-nowrap {
    flex-wrap: nowrap;
}

.lpm-flex-column {
    flex-direction: column;
}

.lpm-justify-start {
    justify-content: flex-start;
}

.lpm-justify-center {
    justify-content: center;
}

.lpm-justify-end {
    justify-content: flex-end;
}

.lpm-justify-between {
    justify-content: space-between;
}

.lpm-align-start {
    align-items: flex-start;
}

.lpm-align-center {
    align-items: center;
}

.lpm-align-end {
    align-items: flex-end;
}

/* Spacing Utilities */
.lpm-m-0 { margin: 0 !important; }
.lpm-m-1 { margin: 8px !important; }
.lpm-m-2 { margin: 16px !important; }
.lpm-m-3 { margin: 24px !important; }
.lpm-m-4 { margin: 32px !important; }

.lpm-mt-0 { margin-top: 0 !important; }
.lpm-mt-1 { margin-top: 8px !important; }
.lpm-mt-2 { margin-top: 16px !important; }
.lpm-mt-3 { margin-top: 24px !important; }
.lpm-mt-4 { margin-top: 32px !important; }

.lpm-mb-0 { margin-bottom: 0 !important; }
.lpm-mb-1 { margin-bottom: 8px !important; }
.lpm-mb-2 { margin-bottom: 16px !important; }
.lpm-mb-3 { margin-bottom: 24px !important; }
.lpm-mb-4 { margin-bottom: 32px !important; }

.lpm-ml-0 { margin-left: 0 !important; }
.lpm-ml-1 { margin-left: 8px !important; }
.lpm-ml-2 { margin-left: 16px !important; }
.lpm-ml-3 { margin-left: 24px !important; }
.lpm-ml-4 { margin-left: 32px !important; }

.lpm-mr-0 { margin-right: 0 !important; }
.lpm-mr-1 { margin-right: 8px !important; }
.lpm-mr-2 { margin-right: 16px !important; }
.lpm-mr-3 { margin-right: 24px !important; }
.lpm-mr-4 { margin-right: 32px !important; }

.lpm-p-0 { padding: 0 !important; }
.lpm-p-1 { padding: 8px !important; }
.lpm-p-2 { padding: 16px !important; }
.lpm-p-3 { padding: 24px !important; }
.lpm-p-4 { padding: 32px !important; }

.lpm-pt-0 { padding-top: 0 !important; }
.lpm-pt-1 { padding-top: 8px !important; }
.lpm-pt-2 { padding-top: 16px !important; }
.lpm-pt-3 { padding-top: 24px !important; }
.lpm-pt-4 { padding-top: 32px !important; }

.lpm-pb-0 { padding-bottom: 0 !important; }
.lpm-pb-1 { padding-bottom: 8px !important; }
.lpm-pb-2 { padding-bottom: 16px !important; }
.lpm-pb-3 { padding-bottom: 24px !important; }
.lpm-pb-4 { padding-bottom: 32px !important; }

.lpm-pl-0 { padding-left: 0 !important; }
.lpm-pl-1 { padding-left: 8px !important; }
.lpm-pl-2 { padding-left: 16px !important; }
.lpm-pl-3 { padding-left: 24px !important; }
.lpm-pl-4 { padding-left: 32px !important; }

.lpm-pr-0 { padding-right: 0 !important; }
.lpm-pr-1 { padding-right: 8px !important; }
.lpm-pr-2 { padding-right: 16px !important; }
.lpm-pr-3 { padding-right: 24px !important; }
.lpm-pr-4 { padding-right: 32px !important; }

/* Text Utilities */
.lpm-text-left { text-align: left !important; }
.lpm-text-center { text-align: center !important; }
.lpm-text-right { text-align: right !important; }

.lpm-text-primary { color: var(--lpm-primary) !important; }
.lpm-text-secondary { color: var(--lpm-text-secondary) !important; }
.lpm-text-muted { color: var(--lpm-text-muted) !important; }
.lpm-text-success { color: var(--lpm-success) !important; }
.lpm-text-warning { color: var(--lpm-warning) !important; }
.lpm-text-danger { color: var(--lpm-danger) !important; }
.lpm-text-info { color: var(--lpm-info) !important; }

.lpm-text-bold { font-weight: 700 !important; }
.lpm-text-semibold { font-weight: 600 !important; }
.lpm-text-normal { font-weight: 400 !important; }

.lpm-text-uppercase { text-transform: uppercase !important; }
.lpm-text-lowercase { text-transform: lowercase !important; }
.lpm-text-capitalize { text-transform: capitalize !important; }

/* Display Utilities */
.lpm-d-none { display: none !important; }
.lpm-d-block { display: block !important; }
.lpm-d-inline { display: inline !important; }
.lpm-d-inline-block { display: inline-block !important; }
.lpm-d-flex { display: flex !important; }
.lpm-d-grid { display: grid !important; }

/* Background Utilities */
.lpm-bg-primary { background-color: var(--lpm-bg-primary) !important; }
.lpm-bg-secondary { background-color: var(--lpm-bg-secondary) !important; }
.lpm-bg-tertiary { background-color: var(--lpm-bg-tertiary) !important; }

/* Border Utilities */
.lpm-border { border: 1px solid var(--lpm-border) !important; }
.lpm-border-light { border: 1px solid var(--lpm-border-light) !important; }
.lpm-border-top { border-top: 1px solid var(--lpm-border) !important; }
.lpm-border-bottom { border-bottom: 1px solid var(--lpm-border) !important; }
.lpm-border-left { border-left: 1px solid var(--lpm-border) !important; }
.lpm-border-right { border-right: 1px solid var(--lpm-border) !important; }

.lpm-rounded { border-radius: var(--lpm-border-radius) !important; }
.lpm-rounded-sm { border-radius: var(--lpm-border-radius-sm) !important; }
.lpm-rounded-circle { border-radius: 50% !important; }

/* Shadow Utilities */
.lpm-shadow { box-shadow: var(--lpm-shadow) !important; }
.lpm-shadow-hover { box-shadow: var(--lpm-shadow-hover) !important; }
.lpm-shadow-none { box-shadow: none !important; }

/* Animation Classes */
.lpm-fade-in {
    animation: lpm-fadeIn 0.5s ease-in;
}

.lpm-slide-up {
    animation: lpm-slideUp 0.5s ease-out;
}

.lpm-slide-down {
    animation: lpm-slideDown 0.5s ease-out;
}

@keyframes lpm-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lpm-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lpm-slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .lpm-heading-primary {
        font-size: 2rem;
    }
    
    .lpm-heading-secondary {
        font-size: 1.5rem;
    }
    
    .lpm-btn,
    .lpm-button {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .lpm-btn-large,
    .lpm-button-large {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .lpm-card-header,
    .lpm-card-body,
    .lpm-card-footer {
        padding: 20px;
    }
    
    .lpm-table th,
    .lpm-table td {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .lpm-grid-2,
    .lpm-grid-3,
    .lpm-grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .lpm-heading-primary {
        font-size: 1.75rem;
    }
    
    .lpm-heading-secondary {
        font-size: 1.25rem;
    }
    
    .lpm-btn,
    .lpm-button {
        width: 100%;
        justify-content: center;
    }
    
    .lpm-card-header,
    .lpm-card-body,
    .lpm-card-footer {
        padding: 15px;
    }
} 