﻿@font-face {
    font-family: "Vazirmatn";
    src: local("Vazirmatn"), url("/Content/fonts/Vazirmatn/Vazirmatn-Regular.woff2") format("woff2"), url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: local("Vazirmatn Bold"), url("/Content/fonts/Vazirmatn/Vazirmatn-Bold.woff2") format("woff2"), url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: local("Vazirmatn Bold"), url("/Content/fonts/Vazirmatn/Vazirmatn-Bold.woff2") format("woff2"), url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: local("Vazirmatn Bold"), url("/Content/fonts/Vazirmatn/Vazirmatn-Bold.woff2") format("woff2"), url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --api-bg: #f5f7fb;
    --api-card: #ffffff;
    --api-text: #0f172a;
    --api-muted: #64748b;
    --api-border: rgba(15, 23, 42, .09);
    --api-primary: #0ea5a4;
    --api-blue: #2563eb;
    --api-orange: #fb923c;
    --api-danger: #ef4444;
    --api-code: #101828;
    --api-sidebar: 360px;
    --api-header: 76px;
    --api-shadow: 0 18px 44px rgba(15, 23, 42, .07);
    --api-font-fa: "Vazirmatn", "IRANSans", "estedad", Tahoma, Arial, sans-serif;
    --api-font-en: "Segoe UI", Arial, Helvetica, sans-serif;
    --api-font-code: Consolas, Monaco, "Courier New", monospace;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
    margin: 0;
    direction: rtl;
    color: var(--api-text);
    background: radial-gradient(circle at 12% 0%, rgba(14, 165, 164, .12), transparent 30%), radial-gradient(circle at 86% 8%, rgba(37, 99, 235, .10), transparent 30%), var(--api-bg);
    font-family: var(--api-font-fa);
}

:lang(en),
[dir="ltr"],
.api-brand-mark,
.api-brand-subtitle,
.api-hero-stat strong {
    font-family: var(--api-font-en);
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

a {
    color: inherit;
}

.api-shell {
    min-height: 100vh;
}

.api-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 40;
    height: var(--api-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 28px;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid var(--api-border);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .05);
    backdrop-filter: blur(16px);
}

.api-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none !important;
}

.api-brand-mark {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--api-primary), var(--api-blue));
    box-shadow: 0 14px 28px rgba(14, 165, 164, .22);
    font-size: 18px;
    font-weight: 900;
    direction: ltr;
}

.api-brand-title {
    display: block;
    color: var(--api-text);
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
}

.api-brand-subtitle {
    display: block;
    color: var(--api-muted);
    font-size: 11px;
    font-weight: 700;
    margin-top: 2px;
    white-space: nowrap;
}

.api-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 8px;
    border: 1px solid var(--api-border);
    color: #334155 !important;
    background: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
    transition: .2s ease;
    white-space: nowrap;
}

.api-action-primary {
    color: #fff !important;
    border-color: transparent;
    background: linear-gradient(135deg, var(--api-primary), var(--api-blue));
    box-shadow: 0 14px 26px rgba(14, 165, 164, .20);
}

.api-action:hover {
    transform: translateY(-1px);
    border-color: rgba(14, 165, 164, .28);
}

.api-menu-button {
    display: none;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 1px solid var(--api-border);
    border-radius: 8px;
    background: #fff;
    color: var(--api-text);
    cursor: pointer;
}

.api-layout {
    width: min(1880px, 100%);
    margin: 0 auto;
    padding: calc(var(--api-header) + 26px) 18px 40px;
    display: grid;
    grid-template-columns: var(--api-sidebar) minmax(0, 1fr);
    gap: 22px;
}

.api-sidebar {
    position: sticky;
    top: calc(var(--api-header) + 20px);
    height: calc(100vh - var(--api-header) - 40px);
    overflow: hidden;
    border: 1px solid var(--api-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--api-shadow);
    backdrop-filter: blur(14px);
}

.api-sidebar-inner {
    height: 100%;
    overflow-y: auto;
    padding: 22px;
    scrollbar-width: thin;
    scrollbar-color: var(--api-primary) transparent;
}

.api-sidebar-title {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(14, 165, 164, .10), rgba(37, 99, 235, .07));
    border: 1px solid rgba(14, 165, 164, .16);
}

    .api-sidebar-title strong {
        display: block;
        color: var(--api-text);
        font-size: 15px;
        font-weight: 900;
    }

    .api-sidebar-title span {
        display: block;
        margin-top: 5px;
        color: var(--api-muted);
        font-size: 13px;
        line-height: 1.8;
    }

.api-nav-group {
    margin-bottom: 20px;
}

.api-nav-label {
    display: block;
    margin: 0 6px 10px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
}

.api-nav {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

    .api-nav a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 11px;
        min-height: 48px;
        padding: 0 16px;
        border-radius: 8px;
        color: #475569 !important;
        text-decoration: none !important;
        font-size: 14px;
        font-weight: 900;
        border: 1px solid transparent;
        transition: .2s ease;
    }

        .api-nav a:before {
            content: "";
            width: 7px;
            height: 7px;
            min-width: 7px;
            border-radius: 999px;
            background: #cbd5e1;
            transition: .2s ease;
        }

        .api-nav a:hover,
        .api-nav a.is-active {
            color: var(--api-text) !important;
            background: #f8fafc;
            border-color: var(--api-border);
        }

            .api-nav a:hover:before,
            .api-nav a.is-active:before {
                background: var(--api-primary);
                box-shadow: 0 0 0 5px rgba(14, 165, 164, .12);
            }

.api-support {
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #164e63);
    overflow: hidden;
}

    .api-support strong {
        display: block;
        font-size: 14px;
        font-weight: 900;
        margin-bottom: 6px;
    }

    .api-support span {
        display: block;
        color: rgba(255, 255, 255, .78);
        font-size: 12px;
        line-height: 1.9;
    }

.api-main {
    min-width: 0;
}

.api-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 18px;
}

.api-hero-card,
.api-hero-stat {
    border: 1px solid var(--api-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--api-shadow);
}

.api-hero-card {
    padding: 28px;
}

.api-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    color: #0f766e;
    background: rgba(14, 165, 164, .10);
    border: 1px solid rgba(14, 165, 164, .18);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 12px;
}

.api-hero h1 {
    margin: 0 0 8px;
    color: var(--api-text);
    font-size: 27px;
    line-height: 1.65;
    font-weight: 900;
    letter-spacing: 0;
}

.api-hero p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 2.05;
    max-width: 820px;
}

.api-hero-stat {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

    .api-hero-stat span {
        color: var(--api-muted);
        font-size: 12px;
        font-weight: 800;
    }

    .api-hero-stat strong {
        color: var(--api-text);
        font-size: 22px;
        line-height: 1.5;
        font-weight: 900;
    }

.api-body-card {
    border: 1px solid var(--api-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--api-shadow);
    padding: 28px;
    min-width: 0;
}

    .api-body-card main {
        display: block;
    }

.page-content {
    max-width: 100%;
}

.page-title {
    margin: 0 0 8px !important;
    color: var(--api-text) !important;
    font-size: 28px !important;
    line-height: 1.7 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.page-date {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #0f766e;
    background: rgba(14, 165, 164, .10);
    border: 1px solid rgba(14, 165, 164, .16);
    font-size: 12px;
    font-weight: 900;
}

.page-content-inner {
    display: grid;
    gap: 16px;
}

.vc_row.section,
.vc_row {
    margin: 0 0 16px !important;
    padding: 0 !important;
}

.vc_column-inner,
.wpb_wrapper,
.row-inner-holder,
.row-outer-holder {
    padding: 0 !important;
}

.wpb_text_column {
    margin-bottom: 12px !important;
}

    .wpb_text_column h2,
    .page-content h2 {
        margin: 0 0 8px !important;
        color: var(--api-text) !important;
        font-size: 21px !important;
        line-height: 1.75 !important;
        font-weight: 900 !important;
        letter-spacing: 0 !important;
    }

        .page-content h2:before {
            content: "";
            display: inline-block;
            width: 9px;
            height: 9px;
            margin-left: 8px;
            border-radius: 999px;
            background: var(--api-orange);
            box-shadow: 0 0 0 5px rgba(251, 146, 60, .14);
            vertical-align: middle;
        }

.page-content h3 {
    margin: 0 0 12px !important;
    color: #334155 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    font-weight: 900 !important;
}

.page-content p {
    color: #475569;
    font-size: 14px;
    line-height: 2;
    margin: 0 0 12px;
}

.api-address {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
    text-align: left;
    width: 100%;
    overflow-x: auto;
    margin: 12px 0 16px !important;
    padding: 14px 15px 14px 110px !important;
    border-radius: 8px;
    color: #e2e8f0 !important;
    background: var(--api-code);
    border: 1px solid rgba(255, 255, 255, .08);
    font-family: var(--api-font-code);
    font-size: 13px;
    line-height: 1.8;
    white-space: nowrap;
}

    .api-address span {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        padding: 0 10px;
        margin-right: 10px;
        border-radius: 999px;
        color: #99f6e4;
        background: rgba(20, 184, 166, .14);
        border: 1px solid rgba(45, 212, 191, .22);
        font-family: var(--api-font-fa);
        font-size: 11px;
        font-weight: 900;
        direction: rtl;
        white-space: nowrap;
    }

.api-copy-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    font-family: var(--api-font-fa);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.kt-api-table {
    margin: 16px 0 !important;
    padding: 18px !important;
    border: 1px solid var(--api-border);
    border-radius: 8px;
    background: #fff;
}

.kt-api-input-table {
    border-top: 3px solid var(--api-primary);
}

.kt-api-output-table {
    border-top: 3px solid var(--api-blue);
    background: #fbfdff;
}

.kt-responsive-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .kt-responsive-table table {
        width: 100%;
        min-width: 660px;
        border-collapse: collapse;
        border-spacing: 0;
        overflow: hidden;
        border-radius: 8px;
        border: 1px solid var(--api-border);
        background: #fff;
    }

    .kt-responsive-table th,
    .kt-responsive-table td {
        padding: 12px 13px;
        border-bottom: 1px solid rgba(15, 23, 42, .07);
        color: #334155;
        font-size: 13px;
        line-height: 1.9;
        text-align: right;
        vertical-align: top;
    }

    .kt-responsive-table th {
        color: #0f172a;
        background: #f8fafc;
        font-weight: 900;
        white-space: nowrap;
    }

    .kt-responsive-table tr:last-child td {
        border-bottom: 0;
    }

pre {
    margin: 0 !important;
    max-width: 100%;
    overflow: auto;
    border-radius: 8px;
    background: var(--api-code) !important;
    color: #e2e8f0 !important;
    direction: ltr;
    text-align: left;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}

    pre code {
        display: block;
        padding: 18px !important;
        color: #e2e8f0 !important;
        font-family: var(--api-font-code);
        font-size: 13px;
        line-height: 1.8;
        white-space: pre;
    }

.button,
.button-default,
.button-aqua,
.more-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px !important;
    border-radius: 8px !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--api-primary), var(--api-blue)) !important;
    border: 0 !important;
    box-shadow: 0 12px 24px rgba(14, 165, 164, .18);
    font-size: 13px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    transition: .2s ease;
}

    .button:hover,
    .more-link:hover {
        color: #fff !important;
        transform: translateY(-1px);
    }

.api-index-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    margin-bottom: 18px;
}

.api-index-intro,
.api-index-quick {
    border: 1px solid var(--api-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--api-shadow);
    padding: 24px;
}

    .api-index-intro h1 {
        margin: 0 0 10px;
        color: var(--api-text);
        font-size: 28px;
        line-height: 1.7;
        font-weight: 900;
    }

    .api-index-intro p {
        margin: 0;
        color: #475569;
        font-size: 14px;
        line-height: 2.05;
    }

.api-index-quick {
    display: grid;
    align-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0f172a, #164e63);
    color: #fff;
}

    .api-index-quick span {
        color: rgba(255, 255, 255, .72);
        font-size: 12px;
        font-weight: 800;
    }

    .api-index-quick strong {
        font-size: 22px;
        line-height: 1.6;
        font-weight: 900;
    }

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid var(--api-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--api-shadow);
    transition: .2s ease;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 22px 46px rgba(15, 23, 42, .09);
        border-color: rgba(14, 165, 164, .25);
    }

    .card h4 {
        margin: 0 0 12px;
        color: var(--api-text);
        font-size: 18px;
        line-height: 1.7;
        font-weight: 900;
    }

    .card ul {
        display: grid;
        gap: 7px;
        padding: 0;
        margin: 0 0 16px;
        list-style: none;
    }

    .card li {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        color: #475569;
        font-size: 13px;
        line-height: 1.8;
    }

        .card li:before {
            content: "";
            width: 7px;
            height: 7px;
            min-width: 7px;
            margin-top: 10px;
            border-radius: 999px;
            background: var(--api-primary);
        }

.api-footer {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--api-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    color: var(--api-muted);
    font-size: 12px;
    line-height: 1.9;
    text-align: center;
}

.api-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 44;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(4px);
}

@@media (max-width: 1180px) {
    .api-layout {
        grid-template-columns: 320px minmax(0, 1fr);
    }
}

@@media (max-width: 992px) {
    .api-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .api-topbar {
        padding: 0 14px;
    }

    .api-top-actions .api-action:not(.api-action-primary) {
        display: none;
    }

    .api-layout {
        display: block;
        padding: calc(var(--api-header) + 16px) 18px 30px;
    }

    .api-sidebar {
        position: fixed;
        z-index: 45;
        top: 0;
        right: 0;
        width: min(94vw, 390px);
        height: 100vh;
        border-radius: 0;
        transform: translateX(105%);
        transition: .24s ease;
    }

    body.api-menu-open .api-sidebar {
        transform: translateX(0);
    }

    body.api-menu-open .api-overlay {
        display: block;
    }

    .api-hero,
    .api-index-hero,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .api-body-card {
        padding: 22px;
    }
}

@@media (max-width: 640px) {
    :root {
        --api-header: 68px;
    }

    .api-brand-subtitle {
        display: none;
    }

    .api-brand-title {
        font-size: 15px;
    }

    .api-brand-mark {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 15px;
    }

    .api-action-primary {
        min-height: 38px;
        padding: 0 11px;
        font-size: 12px;
    }

    .api-hero-card,
    .api-hero-stat,
    .api-index-intro,
    .api-index-quick,
    .card {
        padding: 17px;
    }

        .api-hero h1,
        .api-index-intro h1,
        .page-title {
            font-size: 23px !important;
        }

    .api-address {
        padding-left: 15px !important;
        padding-bottom: 48px !important;
    }

    .api-copy-btn {
        top: auto;
        bottom: 10px;
    }
}
