/* ===============================================
   استایل‌های ویزارد پنل فروشندگان
   =============================================== */

/* نوار پیشرفت ویزارد */
.wizard-progress {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.wizard-step {
    text-align: center;
    position: relative;
    padding: 10px;
}

/* خط رابط بین مراحل */
.wizard-step::before {
    content: '';
    position: absolute;
    top: 25px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: #dee2e6;
    z-index: 0;
}

.wizard-step:first-child::before {
    display: none;
}

.wizard-step.completed::before {
    background: #28a745;
}

.wizard-step.active::before {
    background: linear-gradient(to left, var(--accent-color) 50%, #dee2e6 50%);
}

/* دایره شماره مرحله */
.wizard-step .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    border: 3px solid #f8f9fa;
    transition: all 0.3s ease;
}

.wizard-step.completed .step-number {
    background: #28a745;
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    animation: pulse 2s infinite;
}

.wizard-step.active .step-number {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px rgba(160, 0, 66, 0.3);
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* عنوان مرحله */
.wizard-step .step-title {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    transition: color 0.3s;
}

.wizard-step.active .step-title {
    color: var(--accent-color);
    font-weight: 700;
}

.wizard-step.completed .step-title {
    color: #28a745;
    font-weight: 600;
}

/* جعبه گروه فرم */
.form-group-box {
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.form-group-box:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-group-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
}

.form-group-title i {
    margin-left: 10px;
    color: var(--accent-color);
}

/* چک‌باکس لیست */
.category-checkbox-list,
.feature-checkbox-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.category-checkbox-list label,
.feature-checkbox-list label {
    display: block;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.category-checkbox-list label:hover,
.feature-checkbox-list label:hover {
    background: white;
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.category-checkbox-list input:checked + label,
.feature-checkbox-list input:checked + label {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
}

/* فیلدهای ویژگی */
.attribute-input-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.attribute-input-group:hover {
    border-color: var(--accent-color);
    background: white;
}

.attribute-label {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 15px;
}

.attribute-unit {
    font-size: 12px;
    color: #6c757d;
    margin-right: 8px;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
}

.variant-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 8px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

/* آیتم تنوع */
.variant-item {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s;
    overflow: hidden;
}

.variant-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.variant-item .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    padding: 15px 20px;
}

.variant-item .card-body {
    padding: 20px;
}

.variant-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.variant-option-badge {
    background: var(--accent-color);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(160, 0, 66, 0.2);
}

.remove-variant {
    transition: all 0.2s;
}

.remove-variant:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* دکمه‌ها */
.btn {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: #8a0037;
    border-color: #8a0037;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(160, 0, 66, 0.3);
}

.btn-success {
    background: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* کارت‌ها */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none;
    padding: 20px 25px;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--heading-color) 0%, var(--accent-color) 100%) !important;
}

/* آلرت‌ها */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

.alert i {
    margin-left: 10px;
}

.alert-info {
    background: #e3f2fd;
    color: #0d47a1;
}

.alert-warning {
    background: #fff3e0;
    color: #e65100;
}

.alert-success {
    background: #e8f5e9;
    color: #1b5e20;
}

.alert-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

/* اسکرول‌بار سفارشی */
.category-checkbox-list::-webkit-scrollbar,
.feature-checkbox-list::-webkit-scrollbar {
    width: 8px;
}

.category-checkbox-list::-webkit-scrollbar-track,
.feature-checkbox-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.category-checkbox-list::-webkit-scrollbar-thumb,
.feature-checkbox-list::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.category-checkbox-list::-webkit-scrollbar-thumb:hover,
.feature-checkbox-list::-webkit-scrollbar-thumb:hover {
    background: #8a0037;
}

/* حالت خالی */
#variantsContainer:empty::after {
    content: 'هنوز تنوعی اضافه نشده است.';
    display: block;
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-style: italic;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* بج شمارنده */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .wizard-progress {
        padding: 20px 10px;
    }

    .wizard-step .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .wizard-step .step-title {
        font-size: 12px;
    }

    .form-group-box {
        padding: 15px;
    }

    .form-group-title {
        font-size: 16px;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* انیمیشن ورود */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.variant-item {
    animation: fadeInUp 0.3s ease;
}