﻿@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff2') format('woff2'); /* مسیر دقیق فایل را چک کنید */
    font-weight: normal;
    font-style: normal;
}
.mud-typography {
    font-family: 'Vazir', sans-serif !important;
}
html, body {
    font-family: Vazir,'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEz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eat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.Myoverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Difumina el fondo */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Asegura que el overlay esté por encima de otros elementos */
}

.dot-spinner {
    --uib-size: 6.0rem;
    --uib-speed: .9s;
    --uib-color: #8538F7;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: var(--uib-size);
    width: var(--uib-size);
}

.dot-spinner__dot {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
}

    .dot-spinner__dot::before {
        content: '';
        height: 20%;
        width: 20%;
        border-radius: 50%;
        background-color: var(--uib-color);
        transform: scale(0);
        opacity: 0.5;
        animation: pulse0112 calc(var(--uib-speed) * 1.111) ease-in-out infinite;
        box-shadow: 0 0 20px rgba(18, 31, 53, 0.3);
    }

    .dot-spinner__dot:nth-child(2) {
        transform: rotate(45deg);
    }

        .dot-spinner__dot:nth-child(2)::before {
            animation-delay: calc(var(--uib-speed) * -0.875);
        }

    .dot-spinner__dot:nth-child(3) {
        transform: rotate(90deg);
    }

        .dot-spinner__dot:nth-child(3)::before {
            animation-delay: calc(var(--uib-speed) * -0.75);
        }

    .dot-spinner__dot:nth-child(4) {
        transform: rotate(135deg);
    }

        .dot-spinner__dot:nth-child(4)::before {
            animation-delay: calc(var(--uib-speed) * -0.625);
        }

    .dot-spinner__dot:nth-child(5) {
        transform: rotate(180deg);
    }

        .dot-spinner__dot:nth-child(5)::before {
            animation-delay: calc(var(--uib-speed) * -0.5);
        }

    .dot-spinner__dot:nth-child(6) {
        transform: rotate(225deg);
    }

        .dot-spinner__dot:nth-child(6)::before {
            animation-delay: calc(var(--uib-speed) * -0.375);
        }

    .dot-spinner__dot:nth-child(7) {
        transform: rotate(270deg);
    }

        .dot-spinner__dot:nth-child(7)::before {
            animation-delay: calc(var(--uib-speed) * -0.25);
        }

    .dot-spinner__dot:nth-child(8) {
        transform: rotate(315deg);
    }

        .dot-spinner__dot:nth-child(8)::before {
            animation-delay: calc(var(--uib-speed) * -0.125);
        }

@keyframes pulse0112 {
    0%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}
.custom-icon-width .mud-list-item-icon {
    min-width: 30px;
}

.mx11 {
    margin-left: 4rem;
    margin-right: 4rem;
}

.bgtransparent {
    background-color: transparent !important;
}

.textstart {
    text-align: start !important;
}

.m2 {
    margin: 4px !important;
}
.px4.content {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}


.iran-license-plate {
    direction: rtl;
    font-family: 'B Titr', 'B Nazanin', Tahoma, sans-serif;
    margin: 20px 0;
}

.plate-body {
    width: 100%;
    max-width: 520px;
    height: 120px;
    background: white;
    border: 5px solid #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    display: flex;
    margin: 0 auto;
}

.plate-flag {
    width: 90px;
    background: linear-gradient(to bottom, #239f40 33%, white 33%, white 66%, #da0000 66%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #003893;
    font-weight: bold;
    font-size: 20px;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.flag-text {
    background: white;
    padding: 8px 4px;
    border-radius: 4px;
    margin: 10px 0;
}

.plate-numbers {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
}

.plate-input {
    width: 80px !important;
    height: 80px !important;
    text-align: center;
    font-size: 38px !important;
    font-weight: bold;
    border-radius: 10px !important;
    background: white !important;
}

.plate-part1 {
    width: 90px !important;
}

.plate-part2 {
    width: 120px !important;
}

.plate-province {
    background: #0066cc !important;
    color: white !important;
}

.plate-select {
    width: 90px !important;
    height: 80px !important;
}

    .plate-select .mud-select-input {
        font-size: 42px !important;
        font-weight: bold;
        text-align: center;
        padding: 0 !important;
    }

.plate-dash {
    font-size: 48px;
    font-weight: bold;
    margin: 0 12px;
}
.iran-plate-grid {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 3px solid #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    font-family: 'B Yekan', Tahoma;
    font-weight: bold;
    height: 46px;
    direction: ltr;
}

    .iran-plate-grid .flag {
        background: linear-gradient(to bottom, #23a545 33%, white 33%, white 66%, #da251d 66%);
        color: #002395;
        font-size: 13px;
        width: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        writing-mode: vertical-lr;
        text-orientation: upright;
        letter-spacing: -3px;
    }

    .iran-plate-grid .numbers {
        display: flex;
        align-items: center;
        gap: 3px;
        padding: 0 8px;
        font-size: 17px;
    }

    .iran-plate-grid .num {
        background: white;
        border: 2px solid #222;
        border-radius: 6px;
        padding: 2px 6px;
        min-width: 26px;
        text-align: center;
    }

    .iran-plate-grid .letter {
        font-size: 20px;
        margin: 0 3px;
    }

    .iran-plate-grid .wide {
        min-width: 48px;
    }

    .iran-plate-grid .dash {
        font-size: 22px;
        margin: 0 5px;
    }

    .iran-plate-grid .province {
        background: #0066cc;
        color: white;
        padding: 2px 8px;
        border-radius: 6px;
    }
/* موبایل */
@media (max-width: 600px) {
    .plate-body {
        height: 100px;
    }

    .plate-input, .plate-select {
        height: 65px !important;
        font-size: 32px !important;
    }

    .plate-part2 {
        width: 100px !important;
    }

    .plate-dash {
        font-size: 36px;
    }
}