@import 'alertifyjs/build/css/alertify.min.css';
/* fontawsome setting */
@import '@fortawesome/fontawesome-free/css/all.css';
@import 'dropzone/dist/dropzone.css';

/* tailwind setting */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Dana custom font setting */
@font-face {
    font-family: 'Dana';
    src: url('/public/fonts/dana/woff2/Dana-Regular.woff2') format('woff2'),
    url('/public/fonts/dana/woff/Dana-Regular.woff') format('woff'),
    url('/public/fonts/dana/FarsiNumerals/DanaFaNum-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dana';
    src: url('/public/fonts/dana/woff2/Dana-Medium.woff2') format('woff2'),
    url('/public/fonts/dana/woff/Dana-Medium.woff') format('woff'),
    url('/public/fonts/dana/FarsiNumerals/DanaFaNum-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dana';
    src: url('/public/fonts/dana/woff2/Dana-DemiBold.woff2') format('woff2'),
    url('/public/fonts/dana/woff/Dana-DemiBold.woff') format('woff'),
    url('/public/fonts/dana/FarsiNumerals/DanaFaNum-DemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dana';
    src: url('/public/fonts/dana/woff2/Dana-Bold.woff2') format('woff2'),
    url('/public/fonts/dana/woff/Dana-Bold.woff') format('woff'),
    url('/public/fonts/dana/FarsiNumerals/DanaFaNum-Bold.ttf') format('ttf');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dana';
    src: url('/public/fonts/dana/woff2/Dana-Black.woff2') format('woff2'),
    url('/public/fonts/dana/woff/Dana-Black.woff') format('woff'),
    url('/public/fonts/dana/FarsiNumerals/DanaFaNum-Black.ttf') format('ttf');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* adding Dana font to all elements */
* {
    font-family: 'Dana', sans-serif;
}

/* custom classes created using apply tailwind directive */
.primary-btn {
    @apply bg-secondary-color/80 block text-white font-medium py-1 px-4 rounded shadow hover:bg-secondary-color transition duration-300;
}

.secondary-btn {
    @apply bg-secondary-color px-4 py-1 rounded shadow hover:bg-secondary-color/80 transition duration-300 text-white;
}

.primary-border-btn {
    @apply bg-white px-4 py-1 rounded shadow hover:bg-primary-color hover:text-white transition duration-300 text-primary-color border border-primary-color;
}
.secondary-border-btn
 {
    @apply bg-white px-4 py-1 rounded shadow hover:bg-secondary-color hover:text-white transition duration-300 text-secondary-color border border-secondary-color;
}

.red-btn {
    @apply py-2 px-8 inline-block rounded-xl bg-primary-color/80 text-white shadow hover:bg-primary-color transition duration-300;
}

.dropzone .dz-preview {
    margin: 15px !important;
}

.white-btn {
    box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.5);
    @apply bg-white block font-medium py-2 px-8 rounded-xl shadow-white hover:bg-secondary-color transition duration-300;
}

.shadow-custom {
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.alertify-notifier .ajs-message.ajs-error {
    color: #ef4444;
    background-color: #fee2e2;
    border-radius: 10px;
}

.ajs-success {
    color: #166534 !important;
    background-color: #bbf7d0 !important;
    border-radius: 10px;
}

@keyframes l9 {
    0%, 12.5% {
        background-position: 0% 0%, 0 0
    }
    12.6%, 37.5% {
        background-position: 100% 0%, 0 0
    }
    37.6%, 62.5% {
        background-position: 100% 100%, 0 0
    }
    62.6%, 87.5% {
        background-position: 0% 100%, 0 0
    }
    87.6%, 100% {
        background-position: 0% 0%, 0 0
    }
}

.pagination {
    @apply flex lg:justify-end justify-start
}

ul.pagination a {
    @apply hover:bg-primary-color hover:text-white duration-300 transition-all cursor-pointer me-2 rounded-lg
}

::selection {
    @apply bg-primary-color text-white
}

/* For Firefox */
::-moz-selection {
    @apply bg-primary-color text-white
}

.dropzone .dz-message {
    margin: 1em 0;
}

.dz-button {
    color: #9ca3af !important;
    font-weight: 400 !important;
    font-size: 14px !important;
}

th {
    color: white !important;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

/* For Firefox (optional) */
* {
    scrollbar-width: thin;
    scrollbar-color: #eb4334 transparent;
}


.dz-image {
    width: 100px !important;
    height: 100px !important;
}

@keyframes upDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

.animated-image {

    animation: upDown 1s ease-in-out infinite; /* Infinite animation */
}


.dt-ordering-asc::before{
    bottom: 50%;
    content: "▲";
    /*content: "▲"/""*/
}

.dt-ordering-desc::before{
    bottom: 50%;

    content: "▼";
    /*content: "▼"/""*/
}
