@tailwind base;
@tailwind components;
@tailwind utilities;

/* font */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/static/font/vazirmatn/Vazirmatn[wght].woff2') format('woff2 supports variations'),
    url('/static/font/vazirmatn/Vazirmatn[wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn RD';
    src: url('/static/font/vazirmatn/vazirmatn/Vazirmatn-RD[wght].woff2') format('woff2 supports variations'),
    url('/static/font/vazirmatn/Vazirmatn-RD[wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* general */
* {
    font-family: 'Vazirmatn', 'Vazirmatn RD', 'themify', 'FontAwesome', sans-serif !important;
    user-select: none !important;
}

body {
    background-color: #f8f8f8;
}

main {
    margin-bottom: 3.0rem;
}

h1, h2, h3, h4, h5 {
    font-family: 'Vazirmatn', 'Vazirmatn RD', sans-serif !important;
}

/* notifiy setting */
.notification {
    transition: all .25s ease;
}

.notification.read {
    background: #f3f4f6;
}

.notification.read .icon {
    color: #9ca3af;
}

.notification.read .title,
.notification.read .message {
    color: #6b7280;
}

.notification.read .status {
    color: #9ca3af;
}

.notification:active {
    transform: scale(.97);
}

/* btn setting */
.native-tap {
    transition: transform 0.15s ease;
    touch-action: manipulation;
}

.native-tap.tap-active {
    transform: scale(0.93);
}

#gold-chart :first-child {
    border-radius: 1rem;
}

.switch-field input[type="checkbox"] {
    appearance: none;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #e5e7eb;
    position: relative;
    cursor: pointer;
    transition: 0.2s;
    vertical-align: middle;
}

.switch-field input[type="checkbox"]::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: white;
    position: absolute;
    top: 2px;
    right: 2px;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch-field input[type="checkbox"]:checked {
    background: #d6a21d;
}

.switch-field input[type="checkbox"]:checked::after {
    right: 18px;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: flex;
}