@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn[wght].woff2') format('woff2-supports-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #0e1e38;
    --bg-color: #f5f6f7;
    --container-color: #ffffff;
    --title-color: rgb(37, 37, 37);
    --desc-color: rgba(0, 0, 0, 0.4);
    --font-main: 'Vazirmatn', sans-serif;
    --success-color: #16a34a;
    --error-color: #dc2626;
}

* {
    box-sizing: border-box;
    font-family: var(--font-main);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    direction: rtl;
    min-height: 100vh;
    color: var(--title-color);
}

.app-container {
    display: flex;
    flex-direction: row;
    -webkit-box-align: center;
    align-items: center;
    padding: 4px;
    gap: 8px;
    overflow: hidden;
    background-color: var(--container-color);
    border-radius: 12px;
}

.app-title {
    margin: 0px;
    font-family: inherit;
    font-weight: 500;
    white-space: nowrap;
    color: var(--title-color);
}

.app-desc {
    margin: 0px;
    font-family: inherit;
    font-weight: 500;
    white-space: pre-wrap;
    color: var(--desc-color);
}

.logo-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.desktop-restriction {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
    text-align: center;
}

.desktop-restriction-text {
    color: var(--primary-color);
}

.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000000;
    pointer-events: none;
}

.toast-message {
    width: 100%;
    background-color: #0e1e38;
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-120px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25), opacity 0.3s;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 22px !important;
}

.toast-message.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-message.hide {
    transform: translateY(-120px);
    opacity: 0;
}

.toast-success {
    border-right: 4px solid var(--success-color);
    background-color: #1c2e24;
    color: #e6f4ea;
}

.toast-error {
    border-right: 4px solid var(--error-color);
    background-color: #331c1c;
    color: #fce8e6;
}

@media (max-width: 768px) {
    .desktop-restriction {
        display: none;
    }
}

@media (min-width: 769px) {
    .login-card, 
    .panel-container, 
    .panel-layout {
        display: none !important;
    }
}