/* ==================== FONT FACE ==================== */@font-face {    font-family: 'IRANSans';    font-style: normal;    font-weight: normal;    src: url('iransans.woff2') format('woff2');    font-display: swap;} /* ==================== MAIN CALCULATOR ==================== */#tapin-calculator {    max-width: 900px;    margin: 30px auto;    padding: 30px;    background: #f8f9fa;    border-radius: 12px;    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);    font-family: 'IRANSans', Tahoma, Arial, sans-serif;    direction: rtl;    text-align: right;}/* ==================== FORM LAYOUT ==================== */.tapin-row {    display: flex;    flex-wrap: wrap;    margin-bottom: 25px;    gap: 25px;}.tapin-field {    flex: 1;    min-width: 300px;}.tapin-field label {    display: block;    margin-bottom: 10px;    font-weight: 600;    color: #333;    font-size: 14px;    font-family: 'IRANSans', Tahoma, Arial, sans-serif;}.tapin-field select,.tapin-field input {    width: 100%;    padding: 12px;    border: 2px solid #ddd;    border-radius: 6px;    font-size: 14px;    background: white;    transition: border-color 0.3s;    font-family: 'IRANSans', Tahoma, Arial, sans-serif;    text-align: right;    direction: rtl;}.tapin-field select:focus,.tapin-field input:focus {    outline: none;    border-color: #007bff;    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);}.tapin-field select[disabled] {    background-color: #f5f5f5;    cursor: not-allowed;    opacity: 0.7;}.tapin-field small {    display: block;    margin-top: 6px;    color: #6c757d;    font-size: 12px;    font-family: 'IRANSans', Tahoma, Arial, sans-serif;}/* ==================== BUTTONS ==================== */.tapin-button {    padding: 16px 32px;    border: none;    border-radius: 6px;    font-size: 16px;    font-weight: 600;    cursor: pointer;    transition: all 0.3s;    display: inline-flex;    align-items: center;    justify-content: center;    gap: 10px;    font-family: 'IRANSans', Tahoma, Arial, sans-serif;}.tapin-button.primary {    background: #007bff;    color: white;    min-width: 220px;}.tapin-button.primary:hover:not(:disabled) {    background: #0056b3;    transform: translateY(-2px);    box-shadow: 0 4px 12px rgba(0,123,255,0.3);}.tapin-button.secondary {    background: #6c757d;    color: white;    border: 2px solid transparent;}.tapin-button.secondary:hover {    background: #545b62;}.tapin-button:disabled {    background: #ccc;    cursor: not-allowed;    transform: none;    box-shadow: none;}/* ==================== LOADING STATES ==================== */.loading-info {    color: #007bff;    font-weight: 600;    font-size: 14px;    margin-right: 10px;    font-family: 'IRANSans', Tahoma, Arial, sans-serif;}.tapin-spinner {    display: inline-block;    width: 20px;    height: 20px;    border: 3px solid #f3f3f3;    border-top: 3px solid #007bff;    border-radius: 50%;    animation: spin 1s linear infinite;}@keyframes spin {    0% { transform: rotate(0deg); }    100% { transform: rotate(360deg); }}/* ==================== RESULTS SECTION ==================== */#tapin-result {    margin-top: 30px;    padding: 25px;    background: white;    border-radius: 10px;    border: 3px solid #28a745;    box-shadow: 0 4px 15px rgba(40,167,69,0.15);    font-family: 'IRANSans', Tahoma, Arial, sans-serif;}#tapin-result table {    width: 100%;    border-collapse: collapse;    margin: 15px 0;    font-size: 14px;    font-family: 'IRANSans', Tahoma, Arial, sans-serif;}#tapin-result table td {    padding: 12px 15px;    border: 1px solid #ddd;    text-align: center;    vertical-align: middle;    font-family: 'IRANSans', Tahoma, Arial, sans-serif;}#tapin-result table tr:nth-child(even) {    background-color: #f9f9f9;}/* رنگ‌های جدول */#tapin-result table tr:first-child td,#tapin-result table tr:nth-child(2) td {    background-color: #BDDE7A !important;}#tapin-result table tr:first-child td:nth-child(2),#tapin-result table tr:nth-child(2) td:nth-child(2) {    background-color: #DDEEBB !important;}#tapin-result table tr:nth-child(3) td,#tapin-result table tr:nth-child(4) td,#tapin-result table tr:nth-child(5) td {    background-color: #FFCC33 !important;}#tapin-result table tr:nth-child(3) td:nth-child(2),#tapin-result table tr:nth-child(4) td:nth-child(2),#tapin-result table tr:nth-child(5) td:nth-child(2) {    background-color: #FFECB0 !important;}#tapin-result table tr:nth-child(6) td,#tapin-result table tr:nth-child(7) td,#tapin-result table tr:nth-child(8) td,#tapin-result table tr:nth-child(9) td,#tapin-result table tr:nth-child(10) td,#tapin-result table tr:nth-child(11) td {    background-color: #D9EBFF !important;}#tapin-result table tr:nth-child(6) td:nth-child(2),#tapin-result table tr:nth-child(7) td:nth-child(2),#tapin-result table tr:nth-child(8) td:nth-child(2),#tapin-result table tr:nth-child(9) td:nth-child(2),#tapin-result table tr:nth-child(10) td:nth-child(2),#tapin-result table tr:nth-child(11) td:nth-child(2) {    background-color: #FBFDFF !important;}#tapin-result table tr:nth-child(12) td,#tapin-result table tr:nth-child(13) td {    background-color: #D2D2D2 !important;}#tapin-result table tr:nth-child(12) td:nth-child(2),#tapin-result table tr:nth-child(13) td:nth-child(2) {    background-color: #EBEBEB !important;}#tapin-result table tr:last-child td {    background-color: #AAD2FF !important;    font-weight: bold;}#tapin-result table tr:last-child td:nth-child(2) {    background-color: #DDEDFF !important;    font-size: 18px;    color: #007bff;}/* ==================== ERROR STATES ==================== */.tapin-error {    margin-top: 25px;    padding: 20px;    background: #f8d7da;    border: 2px solid #f5c6cb;    border-radius: 8px;    color: #721c24;    font-size: 15px;    line-height: 1.6;    font-family: 'IRANSans', Tahoma, Arial, sans-serif;}.tapin-error-field {    border-color: #dc3545 !important;    background-color: #fff8f8 !important;}/* ==================== SELECT OPTIONS ==================== */select option {    font-family: 'IRANSans', Tahoma, Arial, sans-serif;    text-align: right;    direction: rtl;}/* ==================== RESPONSIVE DESIGN ==================== */@media (max-width: 768px) {    .tapin-row {        flex-direction: column;        gap: 20px;    }        .tapin-field {        min-width: 100%;    }        #tapin-calculator {        padding: 20px;        margin: 20px 10px;    }        #tapin-result {        padding: 20px;    }        #tapin-result table {        font-size: 13px;    }        #tapin-result table td {        padding: 10px 8px;    }        .tapin-button {        width: 100%;        justify-content: center;    }        .tapin-button.primary {        min-width: auto;    }}@media (max-width: 480px) {    #tapin-calculator {        padding: 15px;    }        .tapin-button {        padding: 14px 20px;        font-size: 15px;    }        #tapin-result table {        font-size: 12px;    }}/* ==================== NUMBER FORMATTING ==================== *//* برای اعداد فارسی */.tapin-field input[type="number"],.tapin-field input[type="text"] {    font-feature-settings: "tnum";    -moz-font-feature-settings: "tnum";    -webkit-font-feature-settings: "tnum";}