/* Product Management Dashboard Styles - Enhanced UI/UX */

.lead-form-products-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Header - Modernized */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.2);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }
    
    .dashboard-actions {
        justify-content: space-between;
    }
    
    .dashboard-title {
        font-size: 2.2rem;
    }
    
    .dashboard-subtitle {
        max-width: 100%;
    }
    
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }
    
    .products-container {
        grid-template-columns: 1fr;
    }
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E") center/cover;
    opacity: 0.7;
    z-index: 0;
}

.dashboard-title-section {
    flex: 1;
    position: relative;
    z-index: 1;
}

.dashboard-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.title-icon {
    font-size: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-shadow: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.dashboard-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin: 0;
    max-width: 80%;
    font-weight: 400;
}

.dashboard-actions {
    display: flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Stats Grid - Enhanced */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.7);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.stat-card:hover::after {
    transform: translateX(100%);
}

.stat-icon {
    font-size: 2.6rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.05);
}

.stat-card.total .stat-icon {
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: white;
}

.stat-card.published .stat-icon {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
}

.stat-card.draft .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: white;
}

.stat-card.out_of_stock .stat-icon {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 18px;
    background: inherit;
    filter: blur(8px);
    opacity: 0.4;
    z-index: -1;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 4px;
    transition: transform 0.2s ease;
}

.stat-card:hover .stat-number {
    transform: translateY(-2px);
}

.stat-label {
    font-size: 1rem;
    color: #4b5563;
    margin: 8px 0 0 0;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.stat-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #e5e7eb;
    transition: width 0.2s ease, background 0.2s ease;
}

.stat-card:hover .stat-label::after {
    width: 60px;
}

.stat-card.total:hover .stat-label::after {
    background: #4f46e5;
}

.stat-card.published:hover .stat-label::after {
    background: #10b981;
}

.stat-card.draft:hover .stat-label::after {
    background: #f59e0b;
}

.stat-card.out_of_stock:hover .stat-label::after {
    background: #ef4444;
}

/* Filters Section - Enhanced */
.filters-section {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.filters-section::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0.04;
    z-index: 0;
}

.filters-form {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
    flex: 1;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #4f46e5;
    display: block;
}

.filter-group input,
.filter-group select {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    background-color: #fcfcfd;
}

.filter-group input:hover,
.filter-group select:hover {
    border-color: #d1d5db;
    background-color: #ffffff;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    background-color: #ffffff;
}

/* Custom select styling */
.filter-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Enhanced focus outlines for accessibility */
.btn:focus, .btn:focus-visible,
.filter-group input:focus-visible,
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.25);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Keyboard navigation enhancements */
.btn:focus,
.product-card:focus-within,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transition: all 0.2s ease-in-out;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Enhanced checkboxes & radio buttons */
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin: 0;
    cursor: pointer;
    position: relative;
    background: white;
    vertical-align: middle;
    transition: all 0.2s ease;
}

/* Toggle Switch Styling */
.switch-control {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 24px;
    vertical-align: middle;
}

.switch-control input {
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    position: absolute;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .2s ease-in-out;
    border-radius: 34px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s ease-in-out;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.switch-slider::after {
    position: absolute;
    content: "OFF";
    right: 6px;
    bottom: 4px;
    color: #6b7280;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: -0.2px;
    transition: .2s ease-in-out;
}

input:checked + .switch-slider::after {
    content: "ON";
    left: 8px;
    right: auto;
    color: white;
}

input:checked + .switch-slider {
    background-color: #7c3aed; /* Purple active state */
}

input:focus + .switch-slider {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

input:checked + .switch-slider:before {
    transform: translateX(21px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch-slider.active {
    background-color: #7c3aed;
}

/* Improve clickability of toggle switches */
.toggle-label {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
}

/* Toggle switch label layout */
.toggle-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
}

.toggle-label {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
}

/* Enhanced select styles */
.select-wrapper {
    position: relative;
    width: 100%;
}

.enhanced-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 32px;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.enhanced-select:hover {
    border-color: #9ca3af;
}

.enhanced-select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.field-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 8px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.delivery-settings-section .field-label {
    color: #374151;
    padding: 2px 0;
}

/* Stock control label styles */
.stock-control-label {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    border-color: #4f46e5;
    background-color: #4f46e5;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
    border-color: #818cf8;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Variation selection container styling */
.variation-selection-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    background-color: #f9fafb;
}

.variation-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.variation-selection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.variation-selection-count {
    font-size: 0.85rem;
    color: #4b5563;
    background-color: #e5e7eb;
    padding: 2px 8px;
    border-radius: 10px;
}

.variation-selection-actions {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.selection-button {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.selection-button:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.selection-button.primary {
    background-color: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.selection-button.primary:hover {
    background-color: #4338ca;
}

/* Bulk edit variations section */
.bulk-edit-container {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.bulk-edit-header {
    background-color: #3b82f6;
    color: white;
    padding: 10px 16px;
    margin: -16px -16px 16px -16px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

.bulk-edit-instruction {
    font-size: 0.9rem;
    color: #1e40af;
    margin-bottom: 12px;
}

/* Variation row styling */
.variation-row {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.variation-row:last-child {
    border-bottom: none;
}

.variation-checkbox {
    margin-right: 12px;
}

.variation-name {
    flex: 1;
    font-size: 0.9rem;
}

.variation-price {
    padding: 4px 8px;
    background-color: #f3f4f6;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 12px;
}

.remove-button {
    background-color: #fee2e2;
    color: #b91c1c;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-button:hover {
    background-color: #fecaca;
}

/* Bottom action buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.primary-button {
    background-color: #4f46e5;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-button:hover {
    background-color: #4338ca;
}

.secondary-button {
    background-color: white;
    color: #4f46e5;
    padding: 10px 20px;
    border: 1px solid #4f46e5;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background-color: #f5f7ff;
}

/* Delivery Settings Section Styling */
.delivery-settings-section {
    margin-bottom: 30px;
    padding: 25px;
    background-color: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.delivery-settings-section h3 {
    font-size: 1.4rem;
    color: #111827;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delivery-settings-section h3::before {
    content: '🚚';
    font-size: 1.2rem;
}

.delivery-settings-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #4f46e5;
    transition: width 0.3s ease;
}

.delivery-settings-section:hover h3::after {
    width: 100px;
}

.delivery-settings-row {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e5e7eb;
}

.delivery-settings-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Field label with dot styling */
.field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #374151;
    font-weight: 600;
}

.field-label::before {
    content: '•';
    color: #4f46e5;
    font-size: 1.5rem;
    line-height: 0;
}

/* Enhanced Select for Delivery Group */
.delivery-select-wrapper,
.status-select-wrapper {
    position: relative;
    width: 100%;
}

.delivery-select,
.status-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    padding-right: 40px;
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delivery-select:hover,
.status-select:hover {
    border-color: #818cf8;
}

.delivery-select:focus,
.status-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Stock management section */
.stock-management-section {
    margin-top: 30px;
    padding: 25px;
    background-color: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.stock-management-section h3 {
    font-size: 1.4rem;
    color: #111827;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
    font-weight: 600;
}

.stock-management-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #4f46e5;
}

.stock-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e5e7eb;
}

.stock-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stock-label {
    margin-right: auto;
    font-weight: 500;
    color: #374151;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-label::before {
    content: '•';
    color: #4f46e5;
    font-size: 1.5rem;
    line-height: 0;
}

/* Form Highlight Effects */
.form-group:hover label::before {
    transform: scale(1.5);
    transition: transform 0.3s ease;
}

.form-section h3:hover::after {
    width: 100px;
    transition: width 0.3s ease;
}

/* Form Input Addons */
.input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.input-addon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 12px;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.input-addon-left {
    left: 0;
}

.input-addon-right {
    right: 0;
}

.input-has-addon-left {
    padding-left: 36px;
}

.input-has-addon-right {
    padding-right: 36px;
}

/* Card Sections Styling */
.card-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.card-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.card-section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #4f46e5;
}

.card-section-title {
    font-size: 1.3rem;
    color: #111827;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-section-title i {
    color: #4f46e5;
    font-size: 1.2rem;
}

.card-section-content {
    padding: 10px 0;
}

/* Info message styling */
.info-message {
    background-color: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    color: #1e40af;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-message.warning {
    background-color: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

.info-message.error {
    background-color: #fee2e2;
    border-left-color: #ef4444;
    color: #b91c1c;
}

.info-message.success {
    background-color: #ecfdf5;
    border-left-color: #10b981;
    color: #065f46;
}

/* Modal Styling */

.product-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.product-modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 24px;
    width: 60px;
    height: 2px;
    background-color: #4f46e5;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #f9fafb;
    border-radius: 0 0 12px 12px;
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #111827;
    color: white;
    text-align: center;
    padding: 8px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 400;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #111827 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Help icon */
.help-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    font-size: 12px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    cursor: help;
    transition: all 0.2s ease;
}

.help-icon:hover {
    background-color: #4f46e5;
    color: white;
}

/* Dark mode preparation - variables for future implementation */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --text-color: #111827;
    --bg-color: #ffffff;
    --bg-muted: #f9fafb;
    --border-color: #e5e7eb;
}

/* Products Section - Enhanced */
.products-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    position: relative;
}

.products-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 28px;
    width: 60px;
    height: 3px;
    background: #4f46e5;
    border-radius: 3px 3px 0 0;
}

.products-header h2 {
    margin: 0;
    font-size: 1.6rem;
    color: #111827;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-header h2::before {
    content: '📋';
    font-size: 1.4rem;
    line-height: 1;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) inset;
}

.view-toggle .btn {
    min-height: 34px;
    min-width: 70px;
    border-radius: 8px;
    font-size: 0.85rem;
    box-shadow: none;
    background: transparent;
    color: #4b5563;
    transition: all 0.2s ease;
}

/* Active state for view toggle buttons */
.view-toggle .btn.active {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

/* Products Grid - Enhanced */
.products-container {
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* Product Card - Enhanced */
.product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
}

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(45deg, #f9fafb 25%, #f3f4f6 25%, #f3f4f6 50%, #f9fafb 50%, #f9fafb 75%, #f3f4f6 75%, #f3f4f6 100%);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0) 70%, 
        rgba(0,0,0,0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em;
}

.product-card:hover .product-name {
    color: #4f46e5;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #047857;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
}

.product-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.stock-status {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
}

.stock-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
}

.stock-status.status-instock {
    background: #ecfdf5;
    color: #065f46;
}

.stock-status.status-instock::before {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.stock-status.status-outofstock {
    background: #fef2f2;
    color: #991b1b;
}

.stock-status.status-outofstock::before {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.product-card:hover .stock-status {
    transform: translateY(-2px);
}

.delivery-group {
    font-size: 0.8rem;
    color: #4b5563;
    background: #f3f4f6;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.delivery-group::before {
    content: '🚚';
    font-size: 1em;
}

.product-card:hover .delivery-group {
    background: #f0f9ff;
    color: #0369a1;
}

.product-actions {
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    transition: background-color 0.2s ease;
}

.product-card:hover .product-actions {
    background: #f5f7fe;
}

/* No Products State */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-products-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 1.5rem;
    color: #374151;
    margin: 0 0 12px 0;
}

.no-products p {
    margin: 0 0 24px 0;
    font-size: 1rem;
}

/* Product Form - Enhanced */
.product-form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    animation: formFadeIn 0.4s ease-out;
    position: relative;
}

@keyframes formFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px;
    background: linear-gradient(to right, #f9fafb, #f3f4f8);
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 28px;
    width: 80px;
    height: 3px;
    background: #4f46e5;
    border-radius: 3px 3px 0 0;
}

.form-header h2 {
    margin: 0;
    font-size: 1.6rem;
    color: #111827;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-header h2::before {
    content: '✏️';
    font-size: 1.4rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 0;
    position: relative;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .form-section:last-child {
        border-bottom: none;
    }
}

.form-section {
    padding: 28px;
    border-right: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.form-section:hover {
    background-color: #fafafa;
}

.form-section:last-child {
    border-right: none;
}

.form-section h3 {
    font-size: 1.25rem;
    color: #111827;
    margin: 0 0 24px 0;
    padding-bottom: 14px;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.form-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #4f46e5;
    transition: width 0.3s ease;
}

.form-section:hover h3::after {
    width: 80px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
    transition: transform 0.15s ease;
}

.form-group:focus-within {
    transform: translateY(-2px);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #4f46e5;
    display: inline-block;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    font-family: inherit;
    background-color: #ffffff;
    color: #111827;
    line-height: 1.5;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group textarea {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) inset;
}

/* Special styling for number inputs */
.form-group input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield; /* Standard property */
    text-align: right;
    padding-right: 8px;
}

/* Remove arrows from number inputs */
.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Price field special styling */
.form-group input.price-field {
    position: relative;
    padding-left: 30px;
    font-weight: 600;
    color: #047857;
}

.price-wrapper {
    position: relative;
}

.price-wrapper::before {
    content: 'DA';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #818cf8;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    background-color: #ffffff;
}

/* Additional styling for placeholder text */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Enhanced select styling to match design */
.form-group select,
select.action-dropdown,
.variation-selection select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Action dropdown styling */
.action-dropdown,
.variation-selection select,
select[name="product_type"] {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
    color: #374151;
    font-size: 0.9rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-dropdown:hover,
.variation-selection select:hover,
select[name="product_type"]:hover {
    border-color: #818cf8;
}

.action-dropdown:focus,
.variation-selection select:focus,
select[name="product_type"]:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.help-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 6px 0 0 0;
}

.category-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.category-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease;
}

.category-checkbox:hover {
    background: #f3f4f6;
}

.category-checkbox:has(input[type="checkbox"]:checked) {
    background: #eef2ff;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.category-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Add Category Row */
.add-category-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

.add-category-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.add-category-row input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.add-category-row .btn {
    white-space: nowrap;
}

.form-actions {
    padding: 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    transition: padding 0.3s ease;
}

.form-actions .btn {
    min-width: 140px;
}

.form-actions:hover {
    padding: 28px 24px;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.form-group.has-error input:focus,
.form-group.has-error textarea:focus,
.form-group.has-error select:focus {
    outline: 2px solid rgba(239, 68, 68, 0.14);
    outline-offset: 0;
}

.required-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.field-error {
    display: none;
    font-size: 12px;
    color: #b91c1c;
    margin-top: 6px;
    line-height: 1.4;
}

.field-error.is-visible {
    display: block;
}

/* Buttons - Enhanced */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
    justify-content: center;
    min-height: 44px;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn:active::after {
    opacity: 1;
    transform: scale(20) translate(-50%, -50%);
    transition: transform 0.6s, opacity 0.4s;
}

.btn .btn-icon {
    transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
    transform: scale(1.2);
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: white;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.25), 0 1px 3px rgba(79, 70, 229, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3), 0 1px 4px rgba(79, 70, 229, 0.2);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #3F51B5;;
    color: #ffffff;
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.btn-secondary:hover {
    background: #1131ea;
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.btn-outline {
    background: transparent;
    color: #4b5563;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-outline:hover {
    border-color: #9ca3af;
    color: #111827;
    background: #f9fafb;
    transform: translateY(-1px);
}

.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background: #fecaca;
    color: #991b1b;
    border-color: #ef4444;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    min-height: 36px;
    border-radius: 8px;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-height: 32px;
}

.btn-icon {
    font-size: 0.9em;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.pagination .btn {
    min-width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .btn.active {
    background: #3b82f6;
    color: white;
}

/* Error States */
.lead-form-dashboard-error {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.lead-form-dashboard-error p {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0 0 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lead-form-products-dashboard {
        padding: 12px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .dashboard-subtitle {
        max-width: 100%;
    }
    
    .title-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
        margin-bottom: 24px;
    }
    
    .filters-section {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .filters-form {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .products-section {
        margin-bottom: 24px;
    }
    
    .products-container {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 20px;
    }
    
    .products-header {
        padding: 16px 20px;
    }
    
    .products-header h2 {
        font-size: 1.4rem;
    }
    
    .card-section {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .card-section-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .card-section-title {
        font-size: 1.2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 20px;
    }
    
    .form-section:last-child {
        border-bottom: none;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
        padding: 12px 16px;
    }
    
    .btn {
        width: 100%;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
        padding: 16px;
    }
    
    .stock-management-section {
        padding: 16px;
        margin-top: 20px;
    }
    
    .stock-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 15px;
    }
    
    .stock-label {
        margin-bottom: 5px;
    }
    
    .stock-controls {
        align-self: flex-end;
    }
    
    .delivery-settings-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .delivery-select-wrapper,
    .status-select-wrapper {
        width: 100%;
    }
    
    /* Toggle switch adjustment */
    .toggle-control {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Image upload responsive */
    .image-preview {
        width: 120px;
        height: 120px;
    }
    
    .gallery-preview {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .gallery-item {
        width: 80px;
        height: 80px;
    }
    
    .image-upload-buttons,
    .gallery-upload-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    /* Modal adjustments */
    .modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 16px 20px;
    }
    
    .modal-footer {
        padding: 12px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .product-card {
        margin: 0;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0,0,0,0.08);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image Upload Styles */
.image-upload-container {
    margin-bottom: 20px;
}

.image-preview {
    width: 150px;
    height: 150px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: #f9fafb;
    position: relative;
    overflow: hidden;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.image-preview .no-image {
    color: #6b7280;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

.image-upload-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-upload-container {
    margin-bottom: 20px;
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
    min-height: 100px;
    padding: 12px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
}

.gallery-item {
    position: relative;
.category-checkbox.selected {
    background: #eef2ff;
    border: 1px solid #6366f1;
}

.category-checkbox.selected:hover {
    background: #e0e7ff;
}
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    transition: border-color 0.2s ease;
}

.gallery-item:hover {
    border-color: #3b82f6;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-gallery-item {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.remove-gallery-item:hover {
    background: #dc2626;
}

.gallery-upload-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-preview:empty::before {
    content: "No gallery images selected";
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    grid-column: 1 / -1;
}

/* Media Uploader Modal Styles */
.wp-media-uploader {
    z-index: 999999;
}

/* Variable Product Styles - Enhanced */
.attribute-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background: #f9fafb;
    transition: box-shadow 0.2s ease;
}

.attribute-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.attribute-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.attribute-name {
    flex: 1;
    margin-right: 12px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.attribute-name:hover, 
.attribute-name:focus {
    border-color: #818cf8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.attribute-name:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.attribute-values {
    margin-top: 12px;
    background-color: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.values-list {
    margin-bottom: 12px;
}

.value-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background-color: #f9fafb;
    border-radius: 6px;
    padding: 6px;
    transition: all 0.2s ease;
}

.value-item:hover {
    background-color: #f3f4f6;
}

.attribute-value {
    flex: 1;
    margin-right: 8px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.attribute-value:hover, 
.attribute-value:focus {
    border-color: #818cf8;
}

.attribute-value:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.add-value-btn, 
.add-attribute-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
    color: #4b5563;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-value-btn:hover, 
.add-attribute-btn:hover {
    background-color: #f3f4f6;
}

.batch-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    margin-top: 8px;
}

.remove-value-btn,
.remove-attribute-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fee2e2;
    color: #b91c1c;
    font-size: 1rem;
    line-height: 1;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-value-btn:hover,
.remove-attribute-btn:hover {
    background-color: #fecaca;
    transform: scale(1.1);
}

.variation-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background: #ffffff;
}

.variation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.variation-header h4 {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.variation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.variation-pricing {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variation-pricing .form-group {
    margin-bottom: 0;
}

.variation-pricing label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
    display: block;
}

.variation-pricing input[type="text"],
.variation-pricing input[type="number"] {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
}

.variation-pricing input[type="checkbox"] {
    margin-right: 6px;
}

/* Responsive adjustments for variable products */
@media (max-width: 768px) {
    .variation-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .attribute-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .attribute-name {
        margin-right: 0;
    }
    
    .value-item {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    
    .attribute-value {
        margin-right: 0;
    }
}

/* Product Type Badges */
.product-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: 8px;
}

.product-type-badge.type-simple {
    background: #dbeafe;
    color: #1e40af;
}

.product-type-badge.type-variable {
    background: #fef3c7;
    color: #92400e;
}

/* Success/Error Messages */
.notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-weight: 500;
}

.notice-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.notice-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.notice-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.notice-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Enhanced Attribute Management */
.attribute-item {
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.attribute-item:hover {
    border-color: #aaa;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.attribute-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.attribute-name {
    flex: 1;
    max-width: 300px;
    margin-right: 15px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-weight: 500;
}

.batch-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.values-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    background: white;
}

.value-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 5px;
    transition: background-color 0.2s ease;
}

.value-item:hover {
    background: #eaeaea;
}

.value-checkbox {
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-selected {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.attribute-value {
    flex: 1;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-right: 10px;
    font-size: 14px;
}

.value-actions {
    display: flex;
    gap: 5px;
}

/* Enhanced Variation Management */
.variation-item {
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: all 0.2s ease;
}

.variation-item:hover {
    border-color: #bbb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Collapsed state for variations */
.variation-item .variation-content {
    display: none;
}

.variation-item.expanded .variation-content {
    display: flex;
}

.variation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f5f7fa;
    cursor: pointer;
    margin-bottom: 0;
    border-bottom: 0;
    transition: background-color 0.2s;
}

.variation-header:hover {
    background-color: #e9ecf3;
}

/* Add a subtle visual cue that the header is clickable */
.variation-header::before {
    content: '';
    position: absolute;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.03);
    opacity: 0;
    transition: opacity 0.2s;
}

.variation-header:hover::before {
    opacity: 1;
}

.variation-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.variation-expand-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.variation-expand-toggle:hover {
    background-color: rgba(0,0,0,0.05);
}

.variation-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.variation-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.variation-id-badge {
    padding: 3px 8px;
    background-color: #e2e8f0;
    border-radius: 10px;
    font-size: 12px;
    color: #64748b;
}

.variation-content {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.variation-core {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.variation-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.variation-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 0;
}

.variation-more-toggle {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.variation-more-toggle:hover {
    border-color: #a5b4fc;
    color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}

.variation-more-toggle.is-open {
    background: #eef2ff;
    border-color: #6366f1;
    color: #4338ca;
}

.variation-more-toggle .more-toggle-icon {
    font-size: 11px;
    line-height: 1;
}

.variation-advanced {
    display: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: #f9fafb;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    animation: fadeIn 0.25s ease;
}

.variation-advanced.is-open {
    display: block;
}

.variation-item.showing-advanced .variation-advanced {
    display: block;
}

.variation-advanced-note {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 12px 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Tooltip styling */
.btn-with-tooltip {
    position: relative;
}

.tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #334155;
    color: white;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    width: 250px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    font-size: 12px;
    font-weight: normal;
    z-index: 100;
    margin-bottom: 5px;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #334155 transparent transparent transparent;
}

.btn-with-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Variation Batch Tools */
.variation-batch-tools {
    width: 100%;
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.variation-batch-tools h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #334155;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.bulk-edit-help-icon {
    margin-left: 8px;
    cursor: help;
    opacity: 0.8;
}

.bulk-edit-description {
    margin-bottom: 15px;
    color: #64748b;
    font-size: 14px;
    background-color: rgba(255,255,255,0.6);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.bulk-edit-description p {
    margin: 0 0 10px 0;
}

.bulk-edit-tips {
    margin-top: 10px;
    background-color: rgba(249, 250, 251, 0.7);
    border-radius: 4px;
    padding: 8px;
}

.bulk-edit-tips h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #4b5563;
}

.bulk-edit-tips ul {
    margin: 0;
    padding-left: 18px;
}

.bulk-edit-tips li {
    margin-bottom: 6px;
    font-size: 13px;
}

.variation-visibility-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.variation-search {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

#variation-search-input {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 220px;
}

.variation-batch-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.batch-action-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.batch-action-group label {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 6px;
}

.batch-help {
    font-size: 12px;
    color: #6b7280;
    font-weight: normal;
    font-style: italic;
}

.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.checkbox-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.checkbox-actions button {
    flex: 1;
}

/* Delivery settings section specific styles */
.delivery-settings-section {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.delivery-settings-section h3 {
    font-size: 1.15rem;
    color: #374151;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-settings-section .form-group {
    margin-bottom: 16px;
    padding-bottom: 0;
}

.delivery-settings-section .form-group:last-child {
    margin-bottom: 0;
}

/* This styles the fields and makes them look more cohesive */
.delivery-settings-section .form-group + .form-group {
    padding-top: 12px;
}

/* Style for help text links */
.delivery-settings-section .help-text a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.delivery-settings-section .help-text a:hover {
    color: #6d28d9;
    text-decoration: underline;
}

/* Enhanced styles for toggle groups */
.toggle-group {
    margin-bottom: 12px !important;
}

/* Toggle control layout */
.delivery-settings-section .toggle-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

/* ========================================================================
   SWATCH SETTINGS SECTION
   ======================================================================== */

#swatch-settings-section .section-description {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
}

#swatch-settings-section .section-description a {
    color: #2563eb;
    font-weight: 600;
}

.swatch-attribute-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.swatch-nav-chip {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.swatch-nav-chip .chip-count {
    background: #f1f5f9;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.swatch-nav-chip:hover {
    border-color: #c7d2fe;
    color: #4338ca;
}

.swatch-nav-chip.active {
    background: #eef2ff;
    border-color: #6366f1;
    color: #4338ca;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.18);
}

.swatch-attribute-panels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.swatch-attribute-section.is-highlighted {
    border-color: #6366f1;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.swatch-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
}

.swatch-attribute-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.swatch-attribute-section h4 {
    margin: 0 0 15px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.swatch-attribute-type {
    margin-bottom: 20px;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 6px;
}

.swatch-attribute-type label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

.swatch-attribute-type .help-text {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.attribute-swatch-type {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.swatch-options-container {
    margin-top: 15px;
}

.swatch-options-container h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.swatch-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.swatch-option-settings {
    padding: 15px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.swatch-option-settings .option-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.swatch-option-settings .option-header strong {
    color: #111827;
    font-size: 14px;
}

.option-fields .field-group {
    margin-bottom: 12px;
}

.option-fields .field-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
}

.option-fields .field-group small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #9ca3af;
}

.option-fields select,
.option-fields input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.option-fields select:focus,
.option-fields input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.swatch-upload-image-btn,
.swatch-remove-image-btn {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.swatch-image-preview {
    margin-top: 8px;
    padding: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.swatch-image-preview img {
    display: block;
    max-width: 100%;
    height: auto;
}

#swatch-save-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

