﻿


html, body {
    /*فونت ها باید اینجا رفرنس بخورن*/
    font-family: 'IranSans', 'SGK_Light', 'Shabnam', 'SGK_Regular','SGK_SemiBold';
}

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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwy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    }

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

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}



/* فونت‌ها */
/*@font-face {
    font-family: 'SGK_Light';
    src: url('/fonts/SGKara-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SGK_Regular';
    src: url('/fonts/SGKara-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SGK_SemiBold';
    src: url('/fonts/SGKara-SemiBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Shabnam';
    src: url('/fonts/Shabnam.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'IranSans';
    src: url('/fonts/Iranian-Sans.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}*/
/*-----------------Font ---------------------*/
@font-face {
    font-family: 'IranSans';
    src: url('/fonts/Iranian-Sans.woff2') format('woff2'), url('/fonts/Iranian-Sans.woff') format('woff'), url('/fonts/Iranian-Sans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SGK_Light';
    src: url('/fonts/SGKara-Light.woff2') format('woff2'), url('/fonts/SGKara-Light.woff') format('woff'), url('/fonts/SGKara-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Shabnam';
    src: url('/fonts/Shabnam.woff2') format('woff2'), url('/fonts/Shabnam.woff') format('woff'), url('/fonts/Shabnam.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SGK_Regular';
    src: url('/fonts/SGKara-Regular.woff2') format('woff2'), url('/fonts/SGKara-Regular.woff') format('woff'), url('/fonts/SGKara-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SGK_SemiBold';
    src: url('/fonts/SGKara-SemiBold.woff2') format('woff2'), url('/fonts/SGKara-SemiBold.woff') format('woff'), url('/fonts/SGKara-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



/*card class*/




/* Card Container */
.card {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    background-color: #fff;
    margin: 5px;
    font-family: 'SGK_Light';
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-direction: column;
  
    min-height: 0; /* بدون این، گرید overflow می‌کند */
}







/*بابت مولتی لاین ها */
.multi-line-textarea textarea {
    height: 120px !important; /* auto ,  یا مقدار دلخواه مثل 150px، 200px و ... */
    direction: ltr;
    text-align: left;
}

/*برای toast*/
.CSS-toast .e-toast {
    border-radius: 12px; /* مقدار دلخواه: 8px، 12px، 1rem و ... */
    font-family: 'SGK_Light' !important;
}



/*------------------------------------دیالوگ های کانفرم و خطا و غیره  -------------------------------*/

.DialogcustomClass {
    margin: auto;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-family: 'SGK_Light' !important;
    padding: 1.5rem !important;
    color: #333 !important;
    /*animation: pulse-border 2s infinite;*/
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px); /* فقط اگر بخوای افکت شیشه‌ای باشه */
}

    .DialogcustomClass .e-dlg-header {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 1rem;
        text-align: center;
        color: #1976d2;
    }

    .DialogcustomClass .e-dlg-content {
        font-size: 1rem;
        text-align: center;
        line-height: 1.6;
    }

    .DialogcustomClass .e-footer-content {
        background-color: transparent !important;
        border-top: none !important;
        display: flex !important;
        justify-content: center !important;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .DialogcustomClass .e-btn {
        border-radius: 8px !important;
        padding: 0.4rem 1.2rem !important;
        font-size: 0.95rem !important;
        border: none !important;
    }

    .DialogcustomClass .e-primary {
        background-color: #1976d2 !important;
        color: white !important;
    }

        .DialogcustomClass .e-primary:hover {
             *background-color: #1565c0 !important; 
        }

    .DialogcustomClass .e-btn:not(.e-primary):hover {
        background-color: #f2f2f2 !important;
    }



@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(25, 118, 210, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0);
    }
}





/* ستون‌های گرید با CustomAttributes */
.e-textbox {
    font-family: 'SGK_Regular';
}

.e-attr {
    font-family: 'SGK_Regular';
    color: black;
    font-size: 14px;
    text-align: center;
}
/*مخفی کرد آیکون تاریخ در آیتم های دیتا فرم*/
/* مخفی کردن آیکون انتخاب تاریخ (calendar icon) */
.no-calendar-icon .e-input-group-icon.e-date-icon {
    display: none !important;
}
/* مخفی کردن آیکون کشویی DropDownList */
.no-dropdown-icon .e-input-group-icon.e-ddl-icon {
    display: none !important;
}


/* مخفی کردن SpinButton در NumericTextBox */
.hide-spin .e-input-group-icon.e-spin-up,
.hide-spin .e-input-group-icon.e-spin-down {
    display: none !important;
}

/*ها SfToolbar تنظیم فونت برای تمام  */
.e-toolbar {
    font-family: 'SGK_Light', 'IranSans', 'Shabnam' !important;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}


    .e-toolbar .e-toolbar-item {
        font-family: 'SGK_Light', 'IranSans', 'Shabnam' !important;
    }
        /*تنظیم فونت*/
        .e-toolbar .e-toolbar-item .e-tbar-btn .e-tbar-btn-text {
            font-family: 'SGK_Light', 'IranSans', 'Shabnam', Tahoma !important;
            color: #333 !important;
            font-size: 14px !important;
            font-weight: 500;
        }





/*sfMessage*/
.msg-default-section {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    max-width: 650px;
    pointer-events: none;
    font-family: 'SGK_Light', 'IranSans', 'Shabnam' !important;
}

    .msg-default-section .content-section {
        margin: 0 auto;
        padding-top: 0;
    }

    .msg-default-section .e-message {
        margin: 0;
        pointer-events: auto;
        opacity: 0;
        transform: translateY(-20px); /* کمی بالاتر شروع میشه */
        animation: fadeInSlide 0.4s ease-out forwards;
    }

        .msg-default-section .e-message.hide {
            animation: fadeOutSlide 0.4s ease-in forwards;
        }

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutSlide {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}
















/*بابت انیمیشن و اسنیپر لوگوی چابک*/



/* پوشش نیمه‌شفاف کل صفحه */
.custom-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4); /* پس‌زمینه محو */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px); /* فقط اگر بخوای افکت شیشه‌ای باشه */
}

/* محتوای لوگو و متن */
.custom-spinner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* انیمیشن پالس برای لوگو */
.pulse-logo {
    width: 80px;
    height: 80px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.custom-spinner-content p {
    margin-top: 12px;
    font-size: 16px;
    color: white;
}




/* لود اطلاعات در فهرست ها */
.loading-dots-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 6px;
    padding: 20px;
    font-family: 'Vazir', sans-serif;
    color: #1976d2;
    flex-wrap: wrap;
    background-color: transparent;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #1976d2;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

    .dot:nth-child(1) {
        animation-delay: -0.32s;
    }

    .dot:nth-child(2) {
        animation-delay: -0.16s;
    }

    .dot:nth-child(3) {
        animation-delay: 0;
    }


.loading-text {
    margin-inline-start: 12px;
    font-size: 14px;
    animation: fade 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@keyframes fade {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}





.big-checkbox {
    width: 24px;
    height: 24px;
    transform: scale(0.9); /* بزرگ‌تر کردن */
    accent-color: #0078d7; /* رنگ تیک (در مرورگرهای جدید پشتیبانی میشه) */
    cursor: default; /* چون Disabled هست */
}



/*رنگ آیکون فولدر بابت باز کردن از فهرست*/
.e-folder-open::before {
    color: orange; /* رنگ دلخواه،  */
}
.e-trash::before {
    color: red; /* رنگ دلخواه،  */
}
.e-save::before {
    color: green; /* رنگ دلخواه،  */
}
.e-save::before {
    color: green; /* رنگ دلخواه،  */
}
.e-circle-add::before {
    color: dodgerblue; /* رنگ دلخواه،  */
}



/**/



/* تغییر فونت کل wrapper رادیوباتن */



.sgk-radio .e-label {
    font-family: 'SGK_Light', sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
}


.maturity-numberbox .e-input,
.maturity-numberbox .e-numeric.e-input-group input {
    font-size: 16px !important; /* سایز موردنظر */
    font-weight: bold !important; /* اگر نیاز داری */
    color: #008000 !important; /* رنگ: قرمز تیره نمونه */
    font-family: SGK_Light !important;
    font-size: 1.5rem !important;
    font-weight: bold;
    text-align: center !important;
    background-color: #fdf6e3 !important;
    border: 2px solid #87CEEB !important;
    border-radius: 0px !important;
    padding: 4px 10px !important;
}