/* -----------------Order------------------------ */
.wc-bulk-order-generator-wrap {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tab Navigation */
.wc-tabs-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.nav-tab-wrapper {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.nav-tab {
    flex-grow: 1;
    text-align: center;
    padding: 12px 20px;
    margin-right: 5px;
    background: linear-gradient(to bottom, #f9f9f9, #f1f1f1);
    border: 1px solid #d9d9d9;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 113, 177, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-tab:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-tab:hover,
.nav-tab-active {
    background: linear-gradient(to bottom, #ffffff, #f5f5f5);
    border-bottom: 2px solid #2271b1;
    color: #2271b1;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-tab-active {
    background: linear-gradient(to bottom, #2271b1, #1a5a8e);
    color: white;
    border-bottom: 2px solid white;
}

.nav-tab-active::before {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .nav-tab-wrapper {
        flex-direction: column;
    }

    .nav-tab {
        margin-bottom: 5px;
        border-radius: 5px;
        border: 1px solid #d9d9d9;
    }

    .nav-tab:hover,
    .nav-tab-active {
        border: 1px solid #2271b1;
    }
}


/* Tab Content */
.tab-content {
    display: none;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
}

.tab-content.active {
    display: block;
}

/* Select dropdown  */
/* Modern Select Dropdown Styling */

.setting-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

select[multiple] {
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(to bottom, #f9f9f9, #f5f5f5);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    color: #333;
    transition: all 0.3s ease;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
}

select[multiple]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.2);
}

select[multiple] option {
    background: white;
    color: #333;
    padding: 8px;
    transition: background 0.2s;
}

select[multiple] option:checked {
    background: #2271b1;
    color: white;
}

select[multiple] option:hover {
    background: #f0f0f0;
}

/* CSV Importer  */
.enhanced-import-settings {
    width: 100%;
    max-width: 800px;
}

.file-upload-wrapper {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(to bottom, #f9f9f9, #f5f5f5);
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #777;
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.file-upload-validation {
    margin-top: 10px;
    color: #666;
    font-size: 0.8em;
}

.file-name-display {
    margin-top: 10px;
    padding: 8px;
    background-color: #f4f4f4;
    border-radius: 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}


/* Order css  */
.wc-bulk-order-generator-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.progress-wrapper {
    background: #f0f0f0;
    border-radius: 4px;
    height: 24px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #72aee6);
    transition: width 0.3s ease;
    border-radius: 4px;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
}

.stat-label {
    color: #666;
    margin-top: 5px;
}

.control-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.setting-card {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.setting-card label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.setting-card input {
    width: 100%;
}

.setting-card .description {
    margin-top: 10px;
    color: #666;
    font-size: 13px;
}

#reset-generation {
    background-color: #f0f0f1;
    color: #2271b1;
    border-color: #2271b1;
}

#reset-generation:hover {
    background-color: #f0f0f1;
    color: #135e96;
    border-color: #135e96;
}

/* Tooltip container */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

/* Tooltip text */
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Tooltip visibility when hovering */
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}



/* toast notification  */
.wc-toast {
    padding: 16px 24px;
    border-radius: 4px;
    margin-bottom: 10px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    text-align: center;
}

.wc-toast.success {
    background: #4CAF50;
}

.wc-toast.error {
    background: #f44336;
}

.wc-toast.warning {
    background: #ff9800;
}

.wc-toast.info {
    background: #2196F3;
}





/* ---------------Product ---------------- */

/* Product Generator specific styles */
.product-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #72aee6);
    transition: width 0.3s ease;
    border-radius: 4px;
    position: relative;
}

/* Price range inputs styling */
.price-range-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.price-input {
    position: relative;
}

.price-input::before {
    content: '$';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.price-input input {
    padding-left: 25px;
}

/* Product generation stats */
.product-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.product-stat-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #ddd;
}

.product-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
    margin-bottom: 5px;
}

.product-stat-label {
    color: #666;
    font-size: 13px;
}

/* Product Settings Section */
.product-settings-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.product-settings-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Responsive adjustments for product generator */
@media screen and (max-width: 782px) {
    .price-range-grid {
        grid-template-columns: 1fr;
    }

    .product-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* Animation for generation in progress */
.generating-products .product-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: progress-pulse 1.5s infinite;
}

@keyframes progress-pulse {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}


/* About page  */
/* About page styles */
.plugins-section-header {
    position: relative;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e5e5;
}

.plugins-section-title {
    margin: 0;
    font-size: 1.8rem;
    color: #1d2327;
    text-align: left;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.plugins-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2271b1;
}

.plugin-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.plugin-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    border: 1px solid #e5e5e5;
    overflow: visible;
}

.plugin-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plugin-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.plugin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.plugin-icon {
    background: #f0f6fc;
    min-width: 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: absolute;
    left: -24px;
    top: -8px;
}

.plugin-card:hover .plugin-icon {
    transform: scale(1.1);
}

.plugin-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #2271b1;
}

.plugin-card h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1d2327;
    line-height: 1.2;
    margin-left: 30px;
}

.plugin-card p {
    margin: 0;
    color: #50575e;
    line-height: 1.5;
}

.plugin-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.feature-tag {
    background: #f0f6fc;
    color: #2271b1;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.plugin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.plugin-button:hover {
    background: #135e96;
    color: #fff;
}

.plugin-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

@media screen and (max-width: 782px) {
    .plugin-cards-container {
        grid-template-columns: 1fr;
        padding: 1rem 0;
    }

    .plugins-section-title {
        font-size: 1.5rem;
    }
}



/* Delete  */
.poc-container {
    max-width: 800px;
    margin: 20px 0;
}

.poc-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.poc-card h3 {
    color: #23282d;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
}

.poc-warning {
    background: #fff8e5;
    border-left: 4px solid #ffb900;
    padding: 12px 10px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.poc-note {
    background: #e9e9e9;
    border-left: 4px solid #2271b1;
    padding: 2px 10px;
    margin-top: 10px;
    border-radius: 3px;
}

.poc-list {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 15px 15px 15px 35px;
    margin: 15px 0;
}

.poc-list li {
    margin-bottom: 8px;
    color: #555;
}

.poc-progress-container {
    margin: 20px 0;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 20px;
}

.poc-progress-wrapper {
    background: #e9ecef;
    border-radius: 4px;
    padding: 2px;
    margin: 10px 0;
}

.poc-progress-bar {
    background: linear-gradient(45deg, #2271b1, #599fd6);
    height: 24px;
    border-radius: 3px;
    transition: width 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.poc-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.2) 75%,
            transparent 75%,
            transparent);
    background-size: 20px 20px;
    animation: move 2s linear infinite;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

.poc-progress-text {
    color: #555;
    font-size: 14px;
    margin: 10px 0;
    text-align: center;
}

.poc-btn {
    background: #2271b1;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.poc-btn:hover {
    background: #135e96;
}

.poc-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.poc-btn.delete {
    background: #dc3545;
}

.poc-btn.delete:hover {
    background: #c82333;
}

.count-progress {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* List container styling */
.poc-list {
    padding-left: 1.5em;
    margin: 1em 0;
}

/* List items styling */
.poc-list li {
    position: relative;
    padding: 8px 0 8px 25px;
    margin: 0;
    list-style: none;
    line-height: 1.4;
    color: #4a5568;
}

/* Custom bullet points */
.poc-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2271b1;
    /* WordPress blue color */
    font-size: 1.2em;
    line-height: 1.2;
}

/* Hover effect */
.poc-list li:hover {
    color: #2271b1;
    transition: color 0.2s ease;
}

/* Spacing between lists if they're next to each other */
.poc-list+.poc-list {
    margin-top: 1.5em;
}

/* Loading spinner */
.poc-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* NOtice dialog  */
.wc-confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.wc-confirm-content {
    background: white;
    padding: 20px;
    border-radius: 4px;
    max-width: 400px;
    width: 90%;
}

.wc-confirm-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Product Type Checkbox Styles */
.product-type-options {
    display: flex;
    gap: 18px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.product-type-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 28px;
    font-weight: 500;
    color: #2271b1;
    font-size: 15px;
    margin-bottom: 6px;
    user-select: none;
    transition: color 0.2s;
}

.product-type-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.product-type-checkbox .checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #f4f8fb;
    border: 2px solid #2271b1;
    border-radius: 5px;
    transition: background 0.2s, border 0.2s;
    box-sizing: border-box;
}

.product-type-checkbox:hover .checkmark {
    background-color: #e6f0fa;
    border-color: #135e96;
}

.product-type-checkbox input[type="checkbox"]:checked~.checkmark {
    background-color: #2271b1;
    border-color: #2271b1;
}

.product-type-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.product-type-checkbox input[type="checkbox"]:checked~.checkmark:after {
    display: block;
}

.product-type-checkbox .checkmark:after {
    left: 4px;
    top: 0px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Responsive for product type checkboxes */
@media (max-width: 600px) {
    .product-type-options {
        flex-direction: column;
        gap: 8px;
    }
}