
/* Add new spin style */

.section-continer{
    width: 100%;
    padding: 0 20px;
}

:root {
    --wsww-font-size-meta: 12px;
    --wsww-font-size-control: 13px;
    --wsww-font-size-subsection: 15px;
    --wsww-font-size-section: 18px;
    --wsww-line-height-ui: 1.3;
    --wsww-line-height-meta: 1.4;
    --wsww-space-row: 12px;
    --wsww-space-section: 16px;
}

.tab-navigation-section .nav{
    gap: 8px;
}

.section-continer .tab-navigation-section {
    margin-bottom: 2px;
}

.section-continer .tab-content > .tab-pane > .p-4 {
    padding-top: 0.2rem !important;
}

.tab-navigation-inner {
    border-bottom: none;
    background: #eef1ff !important;
    padding: 6px 8px !important;
    border-radius: 8px;
}

.tab-navigation-inner .nav-link {
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
}

.tab-navigation-inner .nav-link.active {
    color: #1f2937;
    background-color: #fff;
    border: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}


/* Genarel Tab CSS */

.tabs-card-full .row {
  display: flex;
  flex-wrap: wrap;
}
.tabs-card-full .row > [class*='col-'] {
  display: flex;
}
.tabs-card-full .row .card {
  flex: 1 1 auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.stutas-card label.form-check-label {
    margin-top: -24px;
}

.display-setting-card label.form-check-label {
    margin-top: -24px;
}

.spin-setting-card label.form-check-label {
    margin-top: -24px;
}

.wsww-general-tab .card-body {
    padding: 18px 20px;
}

.wsww-general-tab .wsww-card-title {
    margin-bottom: 12px !important;
    font-size: var(--wsww-font-size-section);
    line-height: var(--wsww-line-height-ui);
    font-weight: 600;
    color: #111827;
}

.wsww-general-tab .wsww-card-subtitle {
    margin-top: 6px;
    margin-bottom: 10px !important;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
    font-size: var(--wsww-font-size-subsection);
    line-height: var(--wsww-line-height-ui);
    font-weight: 600;
    color: #1f2937;
}

.wsww-general-tab .wsww-form-row {
    margin-bottom: var(--wsww-space-row) !important;
}

.wsww-general-tab fieldset.wsww-form-row,
.wsww-general-tab fieldset.wsww-status-section {
    border: 0;
    padding: 0;
    margin: 0 0 var(--wsww-space-row);
    min-inline-size: 0;
}

.wsww-general-tab .form-label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: var(--wsww-font-size-control);
    line-height: var(--wsww-line-height-ui);
    font-weight: 600;
    color: #374151;
}

.wsww-general-tab .form-control,
.wsww-general-tab .input-group-text,
.wsww-general-tab .form-select {
    min-height: 36px;
    font-size: var(--wsww-font-size-control);
    line-height: var(--wsww-line-height-ui);
}

.wsww-general-tab .input-group-text {
    color: #6b7280;
    background: #f9fafb;
}

.wsww-status-section .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 0;
}

.wsww-status-section .form-check .form-check-input {
    position: static;
    float: none;
    margin: 0;
}

.wsww-status-section .form-check .form-check-label {
    margin: 0;
}

.wsww-sync-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    min-height: 22px;
}

.wsww-sync-toggle .wsww-sync-checkbox {
    margin: 0 !important;
    margin-top: 0 !important;
    flex: 0 0 auto;
    vertical-align: middle;
}

.wsww-sync-toggle .wsww-sync-label {
    margin: 0 !important;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.wsww-sync-note {
    margin-top: 10px;
    padding: 9px 11px;
    border: 1px solid #cfe2ff;
    border-left: 4px solid #0d6efd;
    background: #eef5ff;
    border-radius: 6px;
}

.wsww-sync-note-title {
    margin: 0 0 4px;
    font-size: var(--wsww-font-size-meta);
    font-weight: 600;
    color: #0b3d91;
}

.wsww-sync-note-text {
    margin: 0;
    font-size: var(--wsww-font-size-meta);
    line-height: var(--wsww-line-height-meta);
    color: #1f2d3d;
}

.wsww-sync-note-link {
    margin-left: 6px;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.spin-setting-card{
    width: 100%;
}

.tabs-card-full .card {
    min-width: 100%;
}

.wsww-select{
    width: 100%;
}


/* Item Tab CSS Start Here  */

     .form-switch .form-check-input {
            width: 3rem;
            height: 1.5rem;
        }
        .form-switch .form-check-input:checked {
            background-color: #007bff;
            border-color: #007bff;
        }
        .btn-delete {
            border: none;
            background: none;
            color: #6c757d;
            font-size: 1.1rem;
        }
        .btn-delete:hover {
            color: #dc3545;
        }
        .wsww-item-tabs .table-responsive {
            margin-top: 10px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            background: #fff;
            overflow: hidden;
        }
        .wsww-item-tabs .wsww-spin-table {
            border: 0 !important;
            margin: 0;
        }
        .wsww-item-tabs .wsww-spin-table > thead > tr > th {
            border-left: 0;
            border-top: 0;
            border-bottom: 1px solid #d4e0f8;
            background: #e7f1ff;
            color: #1f2937 !important;
            font-size: var(--wsww-font-size-control);
            font-weight: 600;
            letter-spacing: 0.02em;
            padding: 12px 10px;
            line-height: var(--wsww-line-height-ui);
        }
        .wsww-item-tabs .wsww-color-col-header {
            white-space: nowrap;
            min-width: 84px;
            width: 84px !important;
        }
        .wsww-item-tabs .wsww-spin-table > tbody > tr > td {
            padding: 12px 10px;
            line-height: var(--wsww-line-height-ui);
            vertical-align: middle;
        }
        .wsww-item-tabs .wsww-color-col-cell {
            min-width: 84px;
            width: 84px !important;
        }
        .wsww-item-tabs .wsww-action-col-header,
        .wsww-item-tabs .wsww-action-col-cell {
            min-width: 62px;
            width: 62px !important;
            white-space: nowrap;
        }
        .wsww-item-tabs .wsww-spin-table > tbody > tr > td {
            border-left: 0;
            border-top: 0;
            border-bottom: 1px solid #eef2f7;
        }
        .wsww-item-tabs .wsww-spin-table > tbody > tr:last-child > td {
            border-bottom: 0;
        }
        .wsww-item-tabs .wsww-spin-table tfoot td {
            border-left: 0;
            border-top: 1px solid #e5e7eb;
            border-bottom: 0;
            background: #fff;
        }
        .wsww-item-tabs .wsww-probability-summary {
            display: inline-flex;
            align-items: baseline;
            gap: 8px;
            font-size: var(--wsww-font-size-control);
            color: #334155;
            float: right;
            margin-top: 10px;
        }
        .wsww-item-tabs .wsww-probability-label {
            font-weight: 600;
            color: #1f2937;
        }
        .wsww-item-tabs .wsww-probability-value {
            font-weight: 700;
            color: #0f172a;
        }
        .wsww-item-tabs .wsww-probability-meter {
            margin-top: 8px;
            min-width: 260px;
            max-width: 320px;
        }
        .wsww-item-tabs .wsww-probability-progress-track {
            height: 10px;
            border-radius: 999px;
            background: #e2e8f0;
            overflow: hidden;
            position: relative;
        }
        .wsww-item-tabs .wsww-probability-progress-fill {
            height: 100%;
            width: 0;
            border-radius: 999px;
            background: #94a3b8;
            transition: width 0.25s ease, background-color 0.25s ease;
        }
        .wsww-item-tabs .wsww-probability-progress-message {
            display: inline-block;
            margin-top: 6px;
            font-size: var(--wsww-font-size-meta);
            font-weight: 600;
            color: #475569;
        }
        .wsww-item-tabs .wsww-probability-perfect .wsww-probability-progress-fill {
            background: #22c55e;
        }
        .wsww-item-tabs .wsww-probability-perfect .wsww-probability-progress-message {
            color: #15803d;
        }
        .wsww-item-tabs .wsww-probability-low .wsww-probability-progress-fill {
            background: #f59e0b;
        }
        .wsww-item-tabs .wsww-probability-low .wsww-probability-progress-message {
            color: #b45309;
        }
        .wsww-item-tabs .wsww-probability-high .wsww-probability-progress-fill {
            background: #ef4444;
        }
        .wsww-item-tabs .wsww-probability-high .wsww-probability-progress-message {
            color: #b91c1c;
        }
        .wsww-item-tabs .wsww-items-action-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            padding: 12px 14px;
            border-top: 1px solid #e5e7eb;
            background: #f9fafb;
        }
        .wsww-item-tabs .wsww-template-picker {
            display: inline-flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }
        .wsww-item-tabs .wsww-template-picker-label {
            font-size: var(--wsww-font-size-control);
            color: #374151;
            font-weight: 600;
            margin-right: 4px;
        }
        .wsww-item-tabs .wsww-theme-swatch {
            width: 36px;
            min-width: 36px;
            height: 28px;
            border-radius: 6px;
            border: 1px solid rgba(15, 23, 42, 0.12);
            padding: 0;
        }
        .wsww-item-tabs .wsww-theme-swatch:hover {
            border-color: rgba(15, 23, 42, 0.3);
        }
        .wsww-item-tabs .wsww-theme-swatch-1 { background-color: #dd6773; }
        .wsww-item-tabs .wsww-theme-swatch-2 { background-color: #009883; }
        .wsww-item-tabs .wsww-theme-swatch-3 { background-color: #009fe0; }
        .wsww-item-tabs .wsww-theme-swatch-4 { background-color: #ff714b; }
        .wsww-item-tabs .wsww-theme-swatch-5 { background-color: #c71e64; }
        .wsww-item-tabs .wsww-theme-swatch-6 { background-color: #8263ff; }
        .wsww-item-tabs .wsww-theme-swatch-7 { background-color: #00a991; }
        .wsww-item-tabs .wsww-theme-swatch-8 { background-color: #00376e; }
        .wsww-item-tabs .btn-add-spin-row.disabled {
            opacity: 0.55;
            pointer-events: none;
        }
        .wsww-item-tabs .btn-delete {
            border: 1px solid #f5c2c7;
            background: #fff5f5;
            color: #b42318;
            width: 30px;
            height: 30px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }
        .wsww-item-tabs .btn-delete .dashicons {
            font-size: 14px;
            width: 14px;
            height: 14px;
            line-height: 14px;
        }
        .wsww-item-tabs .btn-delete:hover {
            background: #fee4e2;
            border-color: #fda29b;
            color: #912018;
        }
        .section-continer .table > tbody > tr > td {
            vertical-align: middle;
            padding: 0.75rem;
        }
        .section-continer .form-control:disabled {
            background-color: #f8f9fa;
        }
        .info-icon {
            color: #6c757d;
            cursor: help;
        }

        /*design setting*/

        .nav-desing-setting,
        .nav-design-setting{
            width: 100%;
            max-height: none;
            overflow-y: visible;
        }

        .buttom-continer{
            display: flex;
            justify-content: flex-end;
            flex-direction: column;
        }

        .template-option {
            cursor: pointer;
            display: block;
            border: 2px solid transparent;
            border-radius: 8px;
            overflow: hidden;
            transition: border-color 0.3s ease;
        }

        .template-option input:checked + img {
            border: 3px solid #007bff; /* highlight color */
            border-radius: 8px;
        }


        .wsww-finish-tabs .card {
            min-width: 100%;
        }

        .wsww-design-tabs .form-label,
        .wsww-finish-tabs .form-label {
            margin-bottom: 6px;
            font-size: var(--wsww-font-size-control);
            line-height: var(--wsww-line-height-ui);
            font-weight: 600;
            color: #374151;
        }

        .wsww-design-tabs .form-control,
        .wsww-design-tabs .form-select,
        .wsww-design-tabs .input-group-text,
        .wsww-finish-tabs .form-control,
        .wsww-finish-tabs .form-select,
        .wsww-finish-tabs .input-group-text {
            min-height: 36px;
            font-size: var(--wsww-font-size-control);
            line-height: var(--wsww-line-height-ui);
        }

        .wsww-design-tabs .accordion-button {
            font-size: var(--wsww-font-size-subsection);
            font-weight: 600;
            line-height: var(--wsww-line-height-ui);
        }

        .wsww-design-tabs .accordion-body {
            padding: 16px;
        }

        .wsww-design-tabs {
            margin-top: 10px;
        }

        .wsww-design-tabs .wsww-design-preview {
            width: 100%;
            max-width: none;
            min-height: 400px;
            border: 2px dashed #dee2e6;
            border-radius: 8px;
            overflow: hidden;
        }

        @media (min-width: 1200px) {
            .wsww-design-tabs #design_preview {
                padding: 20px 24px;
            }

            .wsww-design-tabs #design_preview > .wsww-preview-container {
                width: min(980px, 100%);
                margin: 20px auto !important;
            }

            .wsww-design-tabs #design_preview > .wsww-preview-template-spin-on-right .preview_inner {
                display: flex !important;
                flex-direction: row !important;
                align-items: center;
                justify-content: center;
                gap: 32px !important;
            }

            .wsww-design-tabs #design_preview > .wsww-preview-template-spin-on-right .content_section {
                width: 400px !important;
                max-width: 400px;
                flex: 0 0 400px;
            }

            .wsww-design-tabs #design_preview > .wsww-preview-template-spin-on-right .spin_section {
                width: 480px !important;
                max-width: 480px;
                margin: 0 !important;
                flex: 0 0 480px;
            }

            .wsww-design-tabs #design_preview > .wsww-preview-template-spin-on-left .preview_inner {
                display: flex !important;
                flex-direction: row-reverse !important;
                align-items: center;
                justify-content: center;
                gap: 32px !important;
            }

            .wsww-design-tabs #design_preview > .wsww-preview-template-spin-on-left .spin_section {
                width: 480px !important;
                max-width: 480px;
                margin: 0 !important;
                flex: 0 0 480px;
            }

            .wsww-design-tabs #design_preview > .wsww-preview-template-spin-on-left .content_section {
                width: 400px !important;
                max-width: 400px;
                flex: 0 0 400px;
            }

            /* Admin preview DOM: [form, wheel]. Canonical semantics:
               spin-on-top    => wheel TOP,    form BELOW => column-reverse
               spin-on-bottom => wheel BOTTOM, form ABOVE => column */
            .wsww-design-tabs #design_preview > .wsww-preview-template-spin-on-top .preview_inner {
                display: flex !important;
                flex-direction: column-reverse !important;
                align-items: center;
                justify-content: center;
                gap: 24px !important;
            }

            .wsww-design-tabs #design_preview > .wsww-preview-template-spin-on-bottom .preview_inner {
                display: flex !important;
                flex-direction: column !important;
                align-items: center;
                justify-content: center;
                gap: 24px !important;
            }

            .wsww-design-tabs #design_preview > .wsww-preview-template-spin-on-top .content_section,
            .wsww-design-tabs #design_preview > .wsww-preview-template-spin-on-bottom .content_section {
                width: min(400px, 100%) !important;
                max-width: 400px;
                margin: 0 auto;
            }

            .wsww-design-tabs #design_preview > .wsww-preview-template-spin-on-top .spin_section,
            .wsww-design-tabs #design_preview > .wsww-preview-template-spin-on-bottom .spin_section {
                width: min(480px, 100%) !important;
                max-width: 480px;
                margin: 0 !important;
            }
        }

        @media (max-width: 1199.98px) {
            .wsww-design-tabs #design_preview .preview_inner {
                display: flex !important;
                flex-direction: column !important;
                gap: 24px !important;
            }

            .wsww-design-tabs #design_preview .content_section,
            .wsww-design-tabs #design_preview .spin_section {
                width: 100% !important;
                max-width: 100%;
            }
        }

        .wsww-finish-tabs .card-body {
            padding: 18px 20px;
        }

        .wsww-finish-tabs .wsww-card-title {
            margin-bottom: 12px !important;
            font-size: var(--wsww-font-size-section);
            line-height: var(--wsww-line-height-ui);
            font-weight: 600;
            color: #111827;
        }

        .wsww-finish-tabs .wsww-helper-text {
            margin: 0;
            font-size: var(--wsww-font-size-meta);
            line-height: var(--wsww-line-height-meta);
            color: #4b5563;
        }

        .wsww-design-tabs .mb-3,
        .wsww-finish-tabs .mb-3 {
            margin-bottom: var(--wsww-space-row) !important;
        }

        .wsww-finish-tabs p,
        .wsww-design-tabs small,
        .wsww-design-tabs .text-muted,
        .wsww-finish-tabs .text-muted {
            font-size: var(--wsww-font-size-meta);
            line-height: var(--wsww-line-height-meta);
        }

        .wsww-tab-secondary-btn {
            min-height: 34px;
            font-size: var(--wsww-font-size-control);
            font-weight: 600;
            line-height: 1.2;
            border-radius: 6px;
            padding: 5px 12px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .wsww-tab-secondary-btn i {
            font-size: 12px;
            line-height: 1;
        }

        .wsww-tab-secondary-btn:disabled,
        .wsww-tab-secondary-btn.disabled {
            opacity: 0.55;
            pointer-events: none;
        }