body {
    min-height: 100%;
    background-color: #e6e6e6;
    /* background:linear-gradient(to right, #f0c267, #bd8a26); */
}
h1{
    margin-bottom: 5px !important;
}
@media(max-width: 1024px){
    .md-text-sm{
        font-size: .8em;
    }
    h1{
        margin-bottom: 0 !important;
        font-size: 1.3em !important;
    }
    .fs-5{
        margin-bottom: 0 !important;
        font-size: 1em !important;
    }
}
body,
.popover-body{
    font-family: 'Vazir', sans-serif;
}
.card{
    border-radius: 8px;
    box-shadow: none;
    padding: 15px;
    background-color: rgba(255,255,255,1);
    border: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
@media(max-width: 1024px){
    .card{
        padding: 8px;
    }
}
h1{
    font-size: 1.4em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.form-control{
    border-color: #c3c3c3;
    box-shadow: none;
    outline: none;
}
.form-control:focus{
    border-color: #d6b500;
    box-shadow: none;
    outline: none;
}

.nav-tabs {
    justify-content: center;
    margin-bottom: 30px;
}
.nav-tabs .nav-link {
    color: #333333;
    background-color: #fff;
    font-size: 1rem;
    padding: 7px 15px;
    border-radius: 25px;
    margin: 0 5px;
    border: 2px solid #333333;
}
@media(max-width: 1024px){
    .nav-tabs{
        /* display: block; */
    }
    .nav-tabs .nav-link{
        /* display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 5px; */
        margin: 0 1px;
        font-size: .8em;
        padding: 5px 8px;
    }
}
.nav-tabs .nav-link:hover{
    background-color: rgba(1,1,1,.1);
    border-color: #333333;
}
.nav-tabs .nav-link.active {
    background-color: #333333;
    color: #FFD700;
    border-color: #FFD700;
}

/**
** Switch
**/
.switch {
    position: relative;
    display: inline-block;
    width: 150px;
    height: 34px;
}
.switch input {
    display: none;
}
.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #DC3545;
    -webkit-transition: .4s;
    transition: .4s;
}
.switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
.switch input:checked + .slider {
    background-color: #198754;
}
.switch input:focus + .slider {
    box-shadow: 0 0 1px #be9a68;
}
.switch input:checked + .slider:before {
    -webkit-transform: translateX(116px);
    -ms-transform: translateX(116px);
    transform: translateX(116px);
}
.switch .on {
    display: none;
}
.switch .on,  
.switch  .off {
    color: white;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 48%;
    left: 50%;
    font-size: 10px;
    user-select:none;
    font-weight: bold;
}
.switch input:checked + .slider .on {
    display: block;
}
.switch input:checked + .slider .off {
    display: none;
}
.switch .slider.round {
    border-radius: 34px;
}
.switch .slider.round:before {
    border-radius: 50%;
}

/**
** Loader
**/
#loader{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    background-color: rgba(1,1,1,.4);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}
#loader.show{
    opacity: 1;
    visibility: visible;
}
.lds-grid {
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-grid div {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    animation: lds-grid 1.2s linear infinite;
}
.lds-grid div:nth-child(1) {
    top: 8px;
    left: 8px;
    animation-delay: 0s;
}
.lds-grid div:nth-child(2) {
    top: 8px;
    left: 32px;
    animation-delay: -0.4s;
}
.lds-grid div:nth-child(3) {
    top: 8px;
    left: 56px;
    animation-delay: -0.8s;
}
.lds-grid div:nth-child(4) {
    top: 32px;
    left: 8px;
    animation-delay: -0.4s;
}
.lds-grid div:nth-child(5) {
    top: 32px;
    left: 32px;
    animation-delay: -0.8s;
}
.lds-grid div:nth-child(6) {
    top: 32px;
    left: 56px;
    animation-delay: -1.2s;
}
.lds-grid div:nth-child(7) {
    top: 56px;
    left: 8px;
    animation-delay: -0.8s;
}
.lds-grid div:nth-child(8) {
    top: 56px;
    left: 32px;
    animation-delay: -1.2s;
}
.lds-grid div:nth-child(9) {
    top: 56px;
    left: 56px;
    animation-delay: -1.6s;
}
@keyframes lds-grid {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}


/**
** Images Container
**/
.image-container {
    position: relative;
    height: 150px;
    margin-bottom: 20px;
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    background-color: #f7f7f7;
}
.delete-button {
    position: absolute;
    top: -5px;
    right: 5px;
    background-color: #DC3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px 0 0 0;
}

/**
** Files Container
**/
.file-container {
    position: relative;
    margin-bottom: 20px;
}
.file-container a {
    width: 100%;
    height: 100%;
    display: block;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    background-color: #f7f7f7;
}


.btn-primary{
    background-color: #BF953F !important;
    border-color: #ab8332 !important;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus{
    background-color: #ab8332 !important;
}

.swal2-html-container{
    font-size: 16px;
}