﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */
/*@font-face {
    font-family: "Goran";
    src: url(../fonts/KGoran.eot);
    src: url(../fonts/KGoran.eot?#iefix) format("embedded-opentype"), url(../fonts/KGoran.woff) format("woff"), url(../fonts/KGoran.ttf) format("truetype"), url(../fonts/KGoran.svg#BYekan) format("svg");
    font-weight: normal;
    font-style: normal;
}*/

.header {
    height: 100px; 
    background-color: #2487ce;
}
.header-title {
    font-size: 3rem;
    color: white;
    text-decoration: none !important;
    cursor: pointer;
}
    .header-title:hover {
        color: inherit !important;
    }
@media screen and (max-width: 768px) {
    .header {
        height: 60px;
    }

    .header-title {
        font-size: 1.4rem;
    }

    .hide-on-mobile {
        display: none !important;
    }
}
/* حذف فضای بالانس و تنظیم عرض برابر */
.header1 > div {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}
.disabled-container {
    pointer-events: none; /* جلوگیری از تعامل کاربر */
}
    .disabled-container input,
    .disabled-container select,
    .disabled-container button {
        background-color: #e9ecef !important;
        cursor: not-allowed; 
    }
/*  Bootstrap   */
.form-control:disabled, .form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}
.form-control, .form-select, .input-group-text {
    border-color: #9ab0d1 !important;
}
.control-label {
    font-size: 1.13rem;
}
.modal-header {
    background-color: lightsteelblue;
}
.modal-footer {
    background-color: lightsteelblue;
}
.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {
    background-color: #dfe7f2;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background-color: lightsteelblue;
}
/*:root {
    --bs-body-font-size: .8rem;
}
body {
    font-size: var(--bs-body-font-size) !important;
}
.form-control {
    font-size: var(--bs-body-font-size) !important;
}
.form-select {
    font-size: var(--bs-body-font-size) !important;
}
.input-group-text {
    font-size: var(--bs-body-font-size) !important;
}
.dropdown-menu {
    font-size: var(--bs-body-font-size) !important;
}*/
    /*
.navbar .navbar-nav .nav-link:hover {
    color: #808080;
    border-bottom-width:1px !important;
    border-bottom:solid;
    border-bottom-color: #0bb3d5;
}
.navbar .nav-item.active {
    color: #808080;
    border-bottom-width: 1px !important;
    border-bottom: solid;
}*/
    .carousel-caption {
    top: 50%;
}
a {
    text-decoration: none 
}
.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
    padding: 5px;
}

.table-hover tbody tr:hover td {
    background-color: lightblue;
}


/*Hide Arrows From Input Number- bootstrap
-------------------------------------------------*/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.modal.fade .modal-dialog {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.modal.fade.show .modal-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Sticky footer styles
-------------------------------------------------- */
.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
    font-family: Tahoma,'Segoe UI', Verdana, sans-serif !important;
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

.border-left-primary {
    border-left: .35rem solid #4e73df !important;
}

.border-right-info {
    border-right: .35rem solid #36b9cc !important;
}
.border-left-info {
    border-left: .35rem solid #36b9cc !important;
}
/*font awesome
 ----------------------------------------------*/
.fa {
    margin-left: 4px !important;
}
/*  my grid  */
thead {
    font-weight: bold;
}
tfoot{
    font-weight: bold;
}
/*Datatable*/
table.dataTable th, table.dataTable td{
    text-align: center !important;
}
.ltr-cell {
    direction: ltr !important;
    text-align: left !important;
}

/* تنظیمات عمومی برای هر دو نوع توست */
.custom-toast {
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6); /* سایه نرم برای حس شناور بودن */
    color: black;
}

/* استایل برای توست موفقیت */
.toast-success {
    background-color: #e8f5e9 !important; /* سبز خیلی ملایم */
    border-right: 8px solid #4caf50 !important; /* نوار رنگی در کنار */
}

/* استایل برای توست خطا */
.toast-error {
    background-color: #ffebee !important; /* قرمز خیلی ملایم */
    border-right: 8px solid #f44336 !important; /* نوار رنگی در کنار */
}

/*upload box*/
.upload-box.single-mode {
    width: 100%;
}

    .upload-box.single-mode .image-item {
        width: 100%;
        aspect-ratio: 3 / 4;
        position: relative;
        border: 1px dashed #bbb;
        border-radius: 10px;
        overflow: hidden;
        cursor: pointer;
    }

    .upload-box.single-mode img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .upload-box.single-mode .add-icon {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        color: #999;
    }
    .upload-box.single-mode .image-item:not(.empty) .add-icon {
        display: none;
    }
    .upload-box.single-mode .remove-file {
        position: absolute;
        right: 6px;
        bottom: 6px;
        width: 28px;
        height: 28px;
        border: 0;
        border-radius: 50%;
        background: rgba(220,53,69,.9);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 5;
    }
/*show datatable record as Card*/
#myTable.dt-card thead {
    display: none;
}
#myTable.dt-card {
    border-collapse: separate;
}
    #myTable.dt-card tbody {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }
        #myTable.dt-card tbody tr {
            width: 23.5%;
            display: block;
        }
        #myTable.dt-card tbody td {
            display: block;
            padding: 0;
        }
.product-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    position: relative;
}
.card-img {
    aspect-ratio: 1;
}
    .card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
.card-body {
    padding: 12px;
}
@media(max-width:992px) {
    #myTable.dt-card tbody tr {
        width: 33.33%;
    }
}
@media(max-width:768px) {
    #myTable.dt-card tbody tr {
        width: 50%;
    }
}
@media(max-width:576px) {
    #myTable.dt-card tbody tr {
        width: 100%;
    }
}
/*badge new*/
.badge-new {
    position: absolute;
    top: 12px;
    left: -8px;
    background: #18a957;
    color: #fff;
    padding: 8px 18px;
    font-size: .8rem;
    font-weight: 700;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 4px 12px rgba(24,169,87,.25);
    z-index: 10;
}
    .badge-new::before {
        content: '';
        position: absolute;
        left: 0;
        bottom: -8px;
        border-top: 8px solid #0d7a3b;
        border-left: 8px solid transparent;
    }