/* Persian Numerals CSS - فونت وزیر با اعداد فارسی */

/* Convert English numerals to Persian numerals */
body {
    /* Enable Persian numerals by default */
    font-feature-settings: "ss01" 1;
}

/* Specific classes for Persian numerals */
.persian-numerals,
.fa-num {
    font-feature-settings: "ss01" 1;
}

/* Apply Persian numerals to common numeric elements */
.price,
.amount,
.total,
.balance,
.number,
.numeric,
.invoice-number,
.order-number,
.ticket-number,
.domain-price,
.product-price,
.total-amount,
.due-date,
.invoice-date,
.pagination .page-link,
.page-numbers,
input[type="number"],
input[type="tel"],
.form-control[type="number"] {
    font-feature-settings: "ss01" 1;
}

/* Table cells with numeric content */
table td,
table th,
.table td,
.table th {
    font-feature-settings: "ss01" 1;
}

/* WHMCS specific elements */
.pricing-amount,
.pricing-price,
.invoice-total,
.invoice-amount,
.domain-pricing,
.product-pricing,
.cart-total,
.order-total,
.payment-amount,
.credit-balance,
.account-balance {
    font-feature-settings: "ss01" 1;
}

/* Dashboard and statistics */
.stats-number,
.counter,
.metric-value,
.dashboard-stat,
.widget-number {
    font-feature-settings: "ss01" 1;
}

/* Date and time elements */
.date,
.time,
.datetime,
.timestamp,
.created-date,
.due-date,
.expiry-date {
    font-feature-settings: "ss01" 1;
}

/* Form inputs that might contain numbers */
input.numeric,
input.price,
input.amount,
.form-control.numeric {
    font-feature-settings: "ss01" 1;
}

/* Buttons with numeric content */
.btn .badge,
.button .badge,
.nav-link .badge {
    font-feature-settings: "ss01" 1;
}

/* Pagination and page numbers */
.pagination .page-item .page-link,
.pager .page-link,
.page-numbers a,
.page-numbers span {
    font-feature-settings: "ss01" 1;
}

/* Shopping cart and order elements */
.cart-quantity,
.order-quantity,
.item-quantity,
.product-quantity {
    font-feature-settings: "ss01" 1;
}

/* Override for elements that should NOT use Persian numerals */
.english-numerals,
.en-num,
code,
pre,
.code,
.version-number,
.ip-address,
.port-number {
    font-feature-settings: normal;
}

/* Ensure proper RTL support */
[dir="rtl"] .persian-numerals,
.rtl .persian-numerals {
    direction: rtl;
    text-align: right;
}

/* Additional styling for better Persian text rendering */
body[lang="fa"],
body[lang="fa-IR"],
.lang-fa,
.persian-text {
    font-feature-settings: "ss01" 1;
    direction: rtl;
    text-align: right;
}

/* Specific WHMCS template elements */
.clientarea-stats .stat-value,
.invoice-items .amount,
.domain-list .price,
.product-list .price,
.service-overview .value,
.billing-overview .amount {
    font-feature-settings: "ss01" 1;
}