﻿@import url('bootstrap-icons/bootstrap-icons.css');

@font-face {
    font-family: 'iran_sansregular';
    src: url('fonts/iran_sans.woff2') format('woff2'), url('fonts/iran_sans.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html, body {
    font-family: 'iran_sansregular', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-size: 14px;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Admin Modal */

.app-actiondialog { position: absolute; }

.app-admin-modal .modal {
    position: fixed; /* Stay in place */
    /*z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    display: block;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background: rgba(0, 0, 0, 0.3); /* Dim background */
}

.app-admin-modal .modal-dialog {
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    max-width: none; /* Override default of 500px */
}

.app-admin-modal .modal-content {
    margin: 5% auto; /* 5% from the top and centered */
    width: 80%; /* Could be more or less, depending on screen size */
}

/* Action Dialog */

.app-actiondialog { display: inline; }

.app-actiondialog .modal {
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    display: block;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background: rgba(0, 0, 0, 0.3); /* Dim background */
}

.app-actiondialog .modal-dialog {
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    max-width: none; /* Override default of 500px */
}

.app-actiondialog .modal-content {
    margin: 15% auto; /* 15% from the top and centered */
    width: 40%; /* Could be more or less, depending on screen size */
}

/* Admin Pane */

.app-pane-admin-border {
    width: 100%;
    border-width: 1px;
    border-style: dashed;
    border-color: gray;
}

.app-pane-admin-title {
    width: 100%;
    text-align: center;
    color: gray;
}

.app-moduleactions .dropdown-submenu { position: relative; }

html:dir(ltr) .app-moduleactions .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0px;
    margin-left: 0px;
}

html:dir(rtl) .app-moduleactions .dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;
    margin-top: 0px;
    margin-left: 0px;
}

.app-progress-indicator {
    background: rgba(0, 0, 0, 0.2) url('../loading.gif') no-repeat 50% 50%;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999; /* Sit on top */
}

.app-rule {
    width: 100%;
    color: gray;
    height: 1px;
    background-color: gray;
    margin: 0.5rem;
}

.app-link-unstyled, .app-link-unstyled:visited, .app-link-unstyled:hover, .app-link-unstyled:active, .app-link-unstyled:focus, .app-link-unstyled:active:hover {
    font-style: inherit;
    color: inherit;
    background-color: transparent;
    font-size: inherit;
    text-decoration: none;
    font-variant: inherit;
    font-weight: inherit;
    line-height: inherit;
    font-family: inherit;
    border-radius: inherit;
    border: inherit;
    outline: inherit;
    box-shadow: inherit;
    padding: inherit;
    vertical-align: inherit;
}

.app-alert {
    padding: 20px;
    background-color: #f44336; /* red */
    color: white;
    margin-bottom: 15px;
}

.app-moduletitle a { scroll-margin-top: 7rem; }

/* Tooltips */

.app-tooltip {
    cursor: help;
    position: relative;
}

.app-tooltip::before,
.app-tooltip::after {
    right: 25%;
    opacity: 0;
    position: absolute;
    z-index: -100;
}

.app-tooltip:hover::before,
.app-tooltip:focus::before,
.app-tooltip:hover::after,
.app-tooltip:focus::after {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 100;
}

.app-tooltip::before {
    border-style: solid;
    border-width: 1em 0.75em 0 0.75em;
    border-color: #3E474F transparent transparent transparent;
    bottom: 100%;
    content: "";
    margin-right: -0.5em;
    transition: all .65s cubic-bezier(.84, -0.18, .31, 1.26), opacity .65s .5s;
    transform: scale(.6) translateY(-90%);
}

.app-tooltip:hover::before,
.app-tooltip:focus::before { transition: all .65s cubic-bezier(.84, -0.18, .31, 1.26) .2s; }

.app-tooltip::after {
    background: #3E474F;
    border-radius: .25em;
    bottom: 140%;
    color: #EDEFF0;
    content: attr(data-tip);
    margin-right: -8.75em;
    padding: 1em;
    transition: all .65s cubic-bezier(.84, -0.18, .31, 1.26) .2s;
    transform: scale(.6) translateY(50%);
    width: 17.5em;
}

.app-tooltip:hover::after,
.app-tooltip:focus::after { transition: all .65s cubic-bezier(.84, -0.18, .31, 1.26); }

@media (max-width: 760px) {
    .app-tooltip::after {
        font-size: .75em;
        margin-right: -5em;
        width: 10em;
    }
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* PalizPortal.Blazor Conrol Styles */

/* Pager */

.app-pager-pointer { cursor: pointer; }

.app-sort-th { cursor: pointer; }

.app-fas { margin-left: 5px; }

.app-form-inline { display: inline; }

.app-search {
    display: inline-block;
    position: relative;
}

.app-search input + button {
    background: none;
    border: none;
    position: absolute;
    right: 0;
    top: 0;
}

.app-search input + button .oi { top: 0; }

.app-search-noinput {
    display: inline-block;
    position: relative;
}

.app-search-noinput button {
    background: none;
    border: none;
    color: var(--bs-heading-color);
}

.app-search-noinput button:hover { color: var(--bs-heading-color); }

/* Text Editor */

.text-area-editor > textarea {
    width: 100%;
    min-height: 250px;
}

.app-logo .navbar-brand { padding: 5px 20px 5px 20px; }

/* Captcha */

.validation-message {
    display: inline;
    margin: 0 5px;
    color: var(--bs-danger);
}

.divCaptcha {
    display: flex;
    flex-wrap: nowrap;
}

.btn-refresh {
    border: none;
    height: 30px;
    align-self: center;
    margin-left: 3px;
    border-radius: 4px;
    cursor: pointer;
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8Zz48Zz48ZyBpZD0icmVmcmVzaCI+PHBhdGggZD0iTTg0MywxNTdDNzU3LjIsNjUuMSw2MzQuNywxMCw1MDAsMTBDMjMwLjUsMTAsMTAsMjMwLjUsMTAsNTAwYzAsMjY5LjUsMjIwLjUsNDkwLDQ5MCw0OTBjMjI2LjYsMCw0MTYuNS0xNTkuMyw0NzEuNi0zNjcuNUg4NDNjLTQ5LDE0MC45LTE4My44LDI0NS0zNDMsMjQ1Yy0yMDIuMSwwLTM2Ny41LTE2NS40LTM2Ny41LTM2Ny41YzAtMjAyLjEsMTY1LjQtMzY3LjUsMzY3LjUtMzY3LjVjMTA0LjEsMCwxODkuOSw0Mi45LDI1Ny4yLDExMC4ybC0xOTYsMTk2SDk5MFYxMEw4NDMsMTU3eiIvPjwvZz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PC9nPg0KPC9zdmc+) no-repeat, #cacaca;
    background-position-y: center;
    background-position-x: center;
    background-size: 70%;
    width: 30px;
}