@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
    font-family: YekanBakhFaNum;
    font-style: normal;
    font-weight: 100;
    src: url('../fonts/yekanbakh/YekanBakhFaNum-thin.woff2') format('woff2');
}

@font-face {
    font-family: YekanBakhFaNum;
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/yekanbakh/YekanBakhFaNum-Light.woff2') format('woff2');
}

@font-face {
    font-family: YekanBakhFaNum;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/yekanbakh/YekanBakhFaNum-Regular.woff2') format('woff2');
}

@font-face {
    font-family: YekanBakhFaNum;
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/yekanbakh/YekanBakhFaNum-Medium.woff2') format('woff2');
}

@font-face {
    font-family: YekanBakhFaNum;
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/yekanbakh/YekanBakhFaNum-SemiBold.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: YekanBakhFaNum;
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/yekanbakh/YekanBakhFaNum-Bold.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: YekanBakhFaNum;
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/yekanbakh/YekanBakhFaNum-Black.woff2') format('woff2');
}

body, html {
    background-color: #F9FBFE;
}

.woo-report-container{
  scroll-behavior: smooth;
  direction: rtl;
  font-weight: 500;
  background-color: #F9FBFE;
  letter-spacing: -.025em;
}

.woo-report-container *{
  font-family: 'YekanBakhFaNum', 'Vazirmatn', serif !important;
}

/* Global Styles */
a, button {
    @apply duration-300
}

a {
    outline: 0 !important;
    @apply transition duration-300 inline-block;
}

[x-cloak] { display: none !important; }

.notice{
    display: none !important;
}

input, textarea {
    outline: none;
    background-color: transparent;

    &:focus-visible {
        outline: none;
    }

    &:focus {
        border-color: #2271b1;
        box-shadow: 0 0 0 1px #2271b1;
        outline: 2px solid transparent;
    }

}

textarea{
    display: block;
}

.custom-scrollbar {
    &::-webkit-scrollbar-track {
        border-radius: 10px;
        background-color: transparent;
    }

    &::-webkit-scrollbar {
        width: 5px;
        height: 5px;
        background-color: transparent;
    }

    &::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background-color: #cccccc;
    }
}

.hidden-scrollbar {
    &::-webkit-scrollbar {
        display: none;
    }

    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.skeleton {
    background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.draggable-source--is-dragging{
    opacity: 0.3;
}

.draggable-mirror{
    @apply bg-gray-100 shadow;
}

canvas{
    font-family: inherit !important;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #0065D1;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.rotation-animation{
    display: block;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.datepicker-container-inline{

    *{
        font-family: 'YekanBakhFaNum', 'Vazirmatn', serif !important;
    }

    .datepicker-plot-area .datepicker-day-view .table-days td.selected span, .datepicker-plot-area .datepicker-year-view .year-item.selected, .datepicker-plot-area .datepicker-month-view .month-item.selected{
        background-color: #004FA3 !important;
    }

    .datepicker-plot-area .datepicker-day-view .table-days td{
        padding: 1px;
    }

    .datepicker-plot-area .datepicker-day-view .table-days td.today span{
        background-color: rgba(0, 79, 163, 0.3);
    }

    .pwt-btn-next, .pwt-btn-prev{
        color: transparent !important;
        position: relative;

        &::after {
            content: "";
            display: block;
            background-image: url('../images/icons/chevron-left.svg');
            background-size: 100%;
            background-position: center;
            height: 20px;
            width: 20px;
            position: absolute;
            top: 50%;
            left: 50%;
            margin-top: -10px;
            margin-left: -10px;
        }

    }

    .pwt-btn-prev{

        &::after {
            transform: rotate(180deg);
        }

    }

    .datepicker-plot-area .datepicker-day-view .table-days td span{
        border-radius: 5px !important;
    }

    .datepicker-navigator{
        direction: ltr !important;
        font-size: 14px;
    }

    .datepicker-plot-area{
        box-shadow: none !important;
        border: none !important
    }

}

.tippy-box[data-theme~='tomato'] {
    background-color: #101828;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 12px;
    line-height: 150%;
    text-align: center;
    padding: 6px;
    border-radius: 8px;
}

.notyf{
    z-index: 999999 !important;
    font-family: 'YekanBakhFaNum', 'Vazirmatn', serif !important;
}

.notyf__wrapper{
    @apply sm:min-w-[250px];

    .notyf__dismiss{
        width: 30px !important;
    }

}

.gateway-row{

    &.active{

        .status{
            background-color: #004fa3 !important;

            .status-circle{
                right: 2px !important;
            }

        }

    }

}