*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    min-height: 100dvh;
    line-height: 1.5;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
    border-color: transparent;
}

textarea {
    line-height: 1.5;
}

button {
    cursor: pointer;
}

button {
    background: transparent;
    border: none;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

a:hover {
    text-decoration: none;
}

ul,
ol {
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 600;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

:focus {
    outline: none;
}

::selection {
    background: #000f9f;
    color: #ffffff;
}

[v-cloak] {
    display: none;
}

* {
    scrollbar-width: none;
    &::-webkit-scrollbar {
        display: none;
    }
}

:root {
    --primary-navy-blue: #13294b;
    --primary-gold: #d4af37;
    --bg-light: #fff;
    --light-gray: #f3f5f7;
    --text-success: #16a34a;
    --text-error: #dc2626;
}

body {
    direction: rtl;
    color: #323232;
    background: #f7f7f7;
    font-family: "Modam", sans-serif;
    position: relative;
}

#wrapper {
    position: relative;
}

img {
    pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.pointer {
    cursor: pointer;
}
.d-none {
    display: none !important;
}

.leaflet-bottom.leaflet-right,
.leaflet-top.leaflet-left {
    display: none !important;
}
.rtl {
    direction: rtl;
}

.ltr {
    direction: ltr;
}

.custom-toast {
    overflow: hidden !important;
    direction: rtl;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 300;
}
/* نوار پیشرفت زمان */
.custom-toast::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--toast-progress-color, #36c5f0);
    transform-origin: right center;
    animation: toast-progress 3s linear forwards;
}

.toastify {
    display: flex !important;
    align-items: center;
    font-size: 16px !important;
    justify-content: space-between;
    padding: 16px 20px !important;
}

@media (max-width: 768px) {
    .toastify {
        font-size: 13px !important;
    }
}

/* رنگ نوار بر اساس نوع پیام */
.custom-toast-success {
    --toast-progress-color: #80c900;
}

.custom-toast-warning {
    --toast-progress-color: #36c5f0;
}

.custom-toast-error {
    --toast-progress-color: #ff1a1a;
}

/* دکمه بستن */
.custom-toast .toast-close {
    color: #333;
    font-size: 0;
    opacity: 1;
    padding: 0;
    margin-right: 20px;
    margin-left: 0;
    order: 2;
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

/* آیکون ضربدر */
.custom-toast .toast-close::before,
.custom-toast .toast-close::after {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 24px;
    height: 1px;
    background: #333;
}

.custom-toast .toast-close::before {
    transform: rotate(45deg);
}

.custom-toast .toast-close::after {
    transform: rotate(-45deg);
}

/* حرکت نوار از راست به چپ */
@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}
