﻿
@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/IRANSansX-Bold.woff'), url('../fonts/IRANSansX-Bold.woff2') format('woff2'), url('../fonts/IRANSansX-Bold.ttf') format('ttf'), url('../fonts/IRANSansX-Bold.otf') format('otf');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/IRANSansX-Regular.woff') format('woff'), url('../fonts/IRANSansX-Regular.woff2') format('woff2'), url('../fonts/IRANSansX-Regular.ttf') format('ttf');
}



@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/IRANYekanX-Bold.woff'), url('../fonts/IRANYekanX-Bold.woff2') format('woff2'), url('../fonts/IRANYekanX-Bold.ttf') format('ttf');
}

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/IRANYekanX-Regular.woff') format('woff'), url('../fonts/IRANYekanX-Regular.woff2') format('woff2'), url('../fonts/IRANYekanX-Regular.ttf') format('ttf'), url('../fonts/IRANYekanX-Regular.otf') format('otf');
}

@font-face {
    font-family: Vazir;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/Vazir-Medium-FD-WOL.woff') format('woff'), url('../fonts/Vazir-Medium-FD-WOL.woff2') format('woff2'), url('../fonts/Vazir-Medium-FD-WOL.ttf') format('ttf'), url('../fonts/Vazir-Medium-FD-WOL.eot') format('eot');
}


html, body, .mud-typography, .mud-button, .mud-input, .mud-select, .mud-table, .mud-chip, .mud-dialog {
    font-family: 'IRANYekanX' !important;
}


.mobile-ltr {
    direction: ltr;
    text-align: right;
}


/* Fix RTL notch for MudTextField Outlined + tel */
.mud-input-root.mud-input-outlined {
    direction: rtl;
}

    .mud-input-root.mud-input-outlined legend {
        text-align: right !important;
        margin-right: 0 !important;
        margin-left: auto !important;
        transform-origin: right center !important;
    }

    .mud-input-root.mud-input-outlined .mud-input-label {
        right: 0 !important;
        left: auto !important;
        transform-origin: top right !important;
    }


/* برای راست‌چین کردن لیبل در حالت Outlined */
.mud-rtl-input .mud-input-label {
    right: 1.7rem !important;
    left: auto !important;
    transform-origin: right top !important;
    text-align: right !important;
    direction: rtl !important;
}

/* برای راست‌چین کردن کل فیلد و متن ورودی */
.mud-rtl-input .mud-input-root {
    direction: rtl !important;
    text-align: right !important;
}


.category-header {
    padding: 12px 16px;
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 10px;
    background-color: aliceblue;
    transition: background-color 0.25s ease;
}

.category-header-text{
    font-weight:600;
    color:black;

}
.category-header-text:hover {
    font-weight: 600;
    color: white;
}

.category-header:hover {
    background-color: lightgray;
    color:aliceblue;
}




.service-card {
    cursor: pointer;
    padding: 10px 6px; /* قبلاً احتمالاً بزرگ‌تر بوده */
    min-height: 140px; /* کوچکتر از قبل */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.2s ease;
}

    .service-card:hover {
        transform: translateY(-2px);
    }


/* بخش آیکون */
.icon-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f7fa;
}

    .icon-area img {
        width: 48px; /* قبلاً احتمالاً 64 یا بیشتر */
        height: 48px;
        object-fit: contain;
        margin-bottom: 6px;
    }


.service-card:hover .icon-area img {
    transform: scale(1.1);
}

/* بخش عنوان */
.icon-area img {
    width: 48px; /* قبلاً احتمالاً 64 یا بیشتر */
    height: 48px;
    object-fit: contain;
    margin-bottom: 6px;
}

.category-header{
    background-color: #F3F5F7;
}
/* حالت پیش‌فرض */
.responsive-paper {
    height: 100%; /* حالت پیش‌فرض برای بزرگ‌تر از md */
}

/* موبایل: xs */
@media (max-width: 600px) {
    .responsive-paper {
        height: 200px !important;
    }
}

/* تبلت: sm */
@media (min-width: 601px) and (max-width: 959px) {
    .responsive-paper {
        height: 200px !important; /* مثلاً کمی بلندتر از موبایل */
    }
}

/* دسکتاپ کوچیک و بزرگ: md به بالا */
@media (min-width: 960px) {
    .responsive-paper {
        height: 100% !important;
    }
}


.rtl-navmenu {
    direction: rtl; /* راست به چپ */
    text-align: right; /* متن راست‌چین */
}
/* فایل site.css یا wwwroot/css/app.css */
#nav-drawer .mud-nav-menu {
    direction: rtl; /* راست به چپ */
    text-align: right; /* متن راست‌چین */
}

.app-title {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}

    .app-title:hover {
        text-decoration: none !important;
        opacity: 0.8; /* فقط کمی تغییر برای حس تعامل */
    }




.border-error {
    border: 1.5px solid red !important;
    transition: all 0.3s ease-in-out;
}

.shake {
    animation: shake 0.3s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0);
    }
}



.bg-grey-light {
    background-color: rgba(200,200,200,0.1);
}



.notification-wrapper {
    position: relative;
    display: inline-block;
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background-color: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.5);
    animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


.birthdate-container {
    position: relative;
    padding: 16px 12px 12px;
    border-radius: 8px;
}

.birthdate-title {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--mud-palette-surface);
    padding: 0 8px;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}




.plate-serial {
    position: relative;
    top: 4px;
}

.iran-plate {
    position: relative;
    width: 100%;
    max-width: 180px;
    aspect-ratio: 612 / 129;
    /*margin: 8px auto;*/
}

    .iran-plate .plate-bg {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 4px;
        margin:0px;
    }

    .iran-plate .plate-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.3rem; /* desktop default */
        font-weight: bold;
        color: black;
        white-space: pre;
        direction: rtl;
    }






/* در حالت موبایل ورودی‌ها زیر هم می‌رن */
@media (max-width: 768px) {
    .plate-inputs {
        flex-wrap: wrap;
    }

        .plate-inputs > * {
            flex: 1 1 100%;
        }
}

/* در حالت دسکتاپ همه در یک خط متناسب */
@media (min-width: 769px) {
    .plate-inputs > * {
        flex: 1;
    }
}


/* 🔹 حذف نوار زیر تب (Indicator) */
.custom-tabs .mud-tabs-slider,
.custom-tabs .mud-tab-slider-horizontal {
    display: none !important;
}

/* 🔹 ظاهر عمومی تب‌ها */
.custom-tabs .mud-tab {
    color: var(--mud-palette-text-secondary);
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

    /* 🔹 تب فعال — رنگ و پس‌زمینه مشخص */
    .custom-tabs .mud-tab.mud-tab-active {
        background-color: var(--mud-palette-primary);
        color: var(--mud-palette-primary-text);
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    /* 🔹 افکت hover */
    .custom-tabs .mud-tab:hover:not(.mud-tab-active) {
        background-color: rgba(var(--mud-palette-primary-rgb), 0.08);
        color: var(--mud-palette-primary);
    }

/* 🔹 فاصله بین تب‌ها */
.custom-tabs .mud-tab {
    margin: 0 6px;
    padding: 6px 12px;
}

/* 🔹 در حالت dark theme */
body.mud-theme-dark .custom-tabs .mud-tab.mud-tab-active {
    background-color: var(--mud-palette-primary-light);
    color: var(--mud-palette-dark-text-primary);
}



/* 1️⃣ راست‌چین کردن تب‌ها */ .rtl-tabs .mud-tabs-toolbar {
    direction: rtl; /* justify-content: flex-end;*/
    visibility:hidden
}


.bg-blue-50 {
    background-color: #e3f2fd !important;
}

/* تبلت */
@media (max-width: 768px) {
    .iran-plate {
        max-width: 160px;
    }

        .iran-plate .plate-text {
            font-size: 1.1rem;
        }

    .plate-serial {
        top: 3px;
    }
}

@media (max-width: 576px) {
    .iran-plate {
        max-width: 130px;
    }

        .iran-plate .plate-text {
            font-size: 0.9rem;
        }

    .plate-serial {
        top: 2px;
    }
}


html[dir="rtl"] .mud-tab-slider-horizontal {
    left: auto !important;
    right: 0 !important;
}




.iran-plate {
    position: relative;
    width: 100%;
    max-width: 180px; /* اندازه نهایی روی کارت */
    aspect-ratio: 612 / 129;
    margin: auto;
}

    .iran-plate .plate-bg {
        width: 100%;
        height: 100%;
        object-fit: contain;
        margin: 0px;
    }

    .iran-plate span {
        position: absolute;
        font-weight: bold;
        font-family: IRANYekanX;
        font-size: 1.2rem;
    }

/* نسبت‌ها = مقدار / 612 × 100% */

/* LEFT (شروع + عرض 120px) */
.p-left {
    font-family: Vazir !important;
    left: calc(65 / 612 * 100%);
    width: calc(130 / 612 * 100%);
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #1e1e1e;
}

/* MIDDLE: شروع 177 و عرض 137px */
.p-middle {
    font-family: Vazir !important;
    left: calc(175 / 612 * 100%);
    width: calc(145 / 612 * 100%);
    top: 40%;
    transform: translateY(-50%);
    text-align: center;
    color: #1e1e1e;
}

/* RIGHT: شروع 314 و عرض 164px */
.p-right {
    font-family: Vazir !important;
    left: calc(300 / 612 * 100%);
    width: calc(164 / 612 * 100%);
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #1e1e1e;
}

/* SERIAL: شروع 478px و عرض 140px + پایین بودن 30px */
.p-serial {
    font-family: Vazir !important;
    left: calc(478 / 612 * 100%);
    width: calc(140 / 612 * 100%);
    top: calc((129 - 55) / 129 * 100%); /* 30px پایین‌تر */
    transform: translateY(-50%);
    text-align: center;
    color: #1e1e1e;
}


/* صفحه‌های کوچک → دکمه کوچک شود */
@media (max-width: 600px) {
    .car-btn {
        --mud-button-height: 32px !important; /* معادل Size.Small */
        font-size: 0.75rem !important;
        padding: 0 8px !important;
    }
}


.selected-car {
    border: 3px solid #13ed07;
    box-shadow: 0 0 10px rgba(25,118,210,0.5);

}


/*=============================================================*/



/* ProgressBar RTL */
.rtl-progress {
    transform: scaleX(-1); /* کل نوار رو برعکس کن */
}

    .rtl-progress .mud-progress-linear-bar {
        transform: scaleX(-1); /* دوباره برعکس کن تا متن و رنگ درست بشه */
    }



/*-------------------------------------------------*/

@media (max-width: 600px) {
    .mud-stepper-step .mud-stepper-step-label,
    .mud-stepper-step .mud-stepper-step-secondary-text {
        display: none;
    }
}



/*========================================================*/




.selected-row {
    border-left: 4px solid #4caf50; /* خط سبز سمت چپ */
    background-color: rgba(76, 175, 80, 0.1); /* سبز خیلی کم رنگ */
    transition: background-color 0.3s, border-left 0.3s;
}
    .selected-row:hover {
        background-color: rgba(76, 175, 80, 0.15); /* کمی پررنگ‌تر از ردیف معمول */
    }







.fault-card {
    border-radius: 14px;
    transition: 0.2s ease;
}

    .fault-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    }




.selected-card {
    border: 2px solid #2ecc71 !important;
    background-color: #eafaf1 !important;
    transition: 0.2s;
}

.unselected-card {
    border: 1px solid #ccc !important;
    transition: 0.2s;
}

    .selected-card:hover,
    .unselected-card:hover {
        box-shadow: 0px 0px 8px rgba(0,0,0,0.2);
    }

.service-card-square {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    max-width: 200px;
    width: 100%;
    background-color: var(--mud-palette-surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 1 / 1; /* کارت همیشه مربع */
}

    .service-card-square:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    }

/* تصویر به صورت انعطاف‌پذیر */
.card-image {
    flex: 0 0 50%; /* حدود 70٪ ارتفاع کارت برای تصویر */
    width: 100%;
    background-color: #f3f5f7;
    overflow: hidden;
    padding: 35px 6px 0px 6px;
    box-sizing: border-box;
}

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* عنوان کارت با ارتفاع بیشتر */
.card-title {
    flex: 0 0 50%; /* حدود 30٪ ارتفاع کارت برای عنوان */
    display: flex;
    align-items: center;
    justify-content: center; /* راست‌چین */
    padding: 0 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    background-color: #f3f5f7;
    color: black;
}

@media (max-width: 600px) {
    .card-image {
        padding: 2px;
    }

    .card-title {
        font-size: 0.68rem;
        padding: 4px;
    }
}


.two-line-text {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* همیشه ۲ خط */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5em;
    min-height: 3em; /* 2 × line-height */
}

.service-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

    .service-card:hover {
        transform: translateY(-2px);
    }

    .service-card.selected {
        border: 2px solid #2e7d32;
        background-color: #f1f8f4;
    }

.card-label {
    color: #d32f2f;
    font-size: 0.85rem;
}

.card-value {
    font-weight: 600;
}





.car-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 2; /* مربع */
    /*max-height: 140px; /* سقف اندازه (مهم 👈) */
    background-color: white;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 👈 این خط کلیدیه */
}


.rtl-progress {
    transform: scaleX(-1);
}

    .rtl-progress .mud-progress-linear-bar {
        transform: scaleX(-1);
    }



.full-width-card {
    width: 100% !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.full-width-card-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
}



.selectedinsurence {
    border: 3px solid #13ed07;
    box-shadow: 0 0 10px rgba(25,118,210,0.5);
    background-color: #eeffe8;
}




.dealer-card-disabled {
    opacity: 0.6;
    filter: grayscale(100%);
    background-color: #f5f5f5;
    border: 1px dashed #d32f2f;
    position: relative;
    padding-top: 22px; /* فضا برای نوشته بالا */
}

    .dealer-card-disabled::after {
        content: "غیرفعال";
        position: absolute;
        top: 4px;
        left: 50%;
        transform: translateX(-50%);
        color: #d32f2f;
        font-size: 30px;
        font-weight: 700;
        background: none;
    }

