/* پس‌زمینه کلی فقط برای ناحیه محاسبه‌گر */
.ws-calculator {
    background: #121b2f;
    font-family: 'Vazirmatn', sans-serif !important;
    color: #e6ecf2;
    direction: rtl;
    unicode-bidi: plaintext;
    padding: 20px 0;
}

/* کارت‌های مراحل */
.ws-calculator .step {
    background: #1c2742;
    padding: 22px;
    border-radius: 14px;
    margin-bottom: 24px;
    border: 1px solid #2d3c5a;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* لیبل‌ها */
.ws-calculator label {
    color: #d8e2ee;
    font-size: 15px;
    margin-bottom: 5px;
}

/* فیلدهای ورودی */
.ws-calculator input,
.ws-calculator select {
    background: #1a2742 !important;
    border: 1px solid #2f4164 !important;
    color: #ffffff !important;
    font-size: 16px;
    font-family: 'Vazirmatn', sans-serif !important;
    unicode-bidi: plaintext;
    font-feature-settings: "tnum" 0 !important;
}

.ws-calculator input:focus,
.ws-calculator select:focus {
    background: #203050 !important;
    border-color: #38f3ff !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0,255,255,0.25);
}

/* placeholder */
.ws-calculator input::placeholder,
.ws-calculator select::placeholder {
    color: #b8c4d6 !important;
    opacity: 1;
}

/* Progress Circle */
.ws-calculator .progress-container {
    width: 150px;
    margin: 25px auto;
    position: relative;
}

.ws-calculator .progress-ring__circle {
    transition: 0.35s stroke-dashoffset;
    transform-origin: 50% 50%;
    stroke: #34eaff !important;
}

.ws-calculator #progressText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    color: #34eaff;
    font-weight: bold;
}

/* دکمه‌ها */
.ws-calculator button.btn-primary {
    background: #28b9ff;
    border-color: #28b9ff;
}
.ws-calculator button.btn-primary:hover {
    background: #1fa8e8;
}

.ws-calculator button.btn-secondary {
    background: #374a6d;
    border-color: #4a5f89;
}
.ws-calculator button.btn-secondary:hover {
    background: #43577d;
}

.ws-calculator button.btn-success {
    background: #00ddaa;
    border-color: #00ddaa;
}
.ws-calculator button.btn-success:hover {
    background: #00c497;
}

/* ناحیه نتایج (در افزونه: #ws-results) */
.ws-calculator #ws-results {
    background: #172136;
    border-radius: 14px;
    margin-top: 30px;
    border: 1px solid #2a3a57;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    padding: 25px;
}

/* دو ستونه کردن نتایج (اگر خواستی بعداً چارت اضافه کنی) */
.ws-calculator .result-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-top: 25px;
    align-items: center;
}

@media (max-width: 768px) {
    .ws-calculator .result-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* نمودار (اگر دوباره Chart.js را اضافه کردی) */
.ws-calculator #usageChart {
    max-width: 320px !important;
    max-height: 320px !important;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: block;
}

/* متن نتیجه */
.ws-calculator #ws-results p {
    font-size: 16px;
}

.ws-calculator h3 {
    color: #6de0ff;
}

.ws-calculator .text-info {
    color: #66e0ff !important;
}

#ws-results p { font-size: 16px; margin: 5px 0; }
/*.ws-product-card:hover { background: #f7f7f7; }*/

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}



/* کارت محصول */
.ws-product-card {
    direction: rtl;
}


.ws-product-title:hover {
    text-decoration: underline;
}


/* فونت واحد برای باکس پیشنهاد محصولات و مجموع صرفه‌جویی */
.ws-calculator #ws-product-suggestions,
.ws-calculator #ws-product-suggestions *,
.ws-calculator .ws-total-saving-text,
.ws-calculator .ws-total-saving-text * {
    font-family: 'Vazirmatn', sans-serif !important;
}

/* کارت محصول */
.ws-product-card {
    direction: rtl;
}

/* عنوان محصول لینک‌دار */
.ws-product-title {
    display: block;
    font-weight: 700;
    text-decoration: none;
}

.ws-product-title:hover {
    text-decoration: underline;
}

/* متن صرفه‌جویی زیر عنوان */
.ws-product-saving {
    font-size: 13px;
    opacity: 0.9;
}

.ws-product-qty {
    margin-top: 6px;
    font-size: 13px;
}
.ws-product-qty-input {
    background: #1a2742;
    border: 1px solid #2f4164;
    color: #fff;
    text-align: center;
}
