@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");

/* =========================================================
   ARTHIQPAY API DOCUMENTATION
========================================================= */

:root {
    --arthiq-primary: #0a4c92;
    --arthiq-primary-dark: #062d63;
    --arthiq-primary-deep: #031f43;

    --arthiq-green: #00d18b;
    --arthiq-green-dark: #00aa9e;

    --arthiq-bg: #f4f8fc;
    --arthiq-white: #ffffff;
    --arthiq-soft: #eef5fb;

    --arthiq-text: #24364d;
    --arthiq-muted: #6f8197;
    --arthiq-border: #dce7f1;

    --arthiq-code: #081a2d;
    --arthiq-code-light: #0d2944;

    --sidebar-width: 310px;

    --shadow-small: 0 8px 24px rgba(3, 31, 67, 0.08);
    --shadow-medium: 0 18px 45px rgba(3, 31, 67, 0.13);
}

/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;

    color: var(--arthiq-text);

    background:
        radial-gradient(
            circle at top right,
            rgba(0, 209, 139, 0.07),
            transparent 30%
        ),
        var(--arthiq-bg);

    font-family: "Inter", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: var(--arthiq-primary);
    text-decoration: none;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

a:hover {
    color: var(--arthiq-green-dark);
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

::selection {
    color: #ffffff;
    background: var(--arthiq-primary);
}

/* =========================================================
   SCROLLBAR
========================================================= */

* {
    scrollbar-width: thin;
    scrollbar-color: var(--arthiq-primary) #dce7f1;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #dce7f1;
}

*::-webkit-scrollbar-thumb {
    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            var(--arthiq-primary),
            var(--arthiq-green-dark)
        );
}

/* =========================================================
   LEFT SIDEBAR
========================================================= */

.left-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;

    z-index: 1000;

    width: var(--sidebar-width);
    min-height: 100vh;

    overflow: hidden;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(0, 209, 139, 0.15),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            var(--arthiq-primary-deep) 0%,
            var(--arthiq-primary-dark) 55%,
            var(--arthiq-primary) 100%
        );

    box-shadow: 18px 0 50px rgba(3, 31, 67, 0.16);
}

.left-menu::after {
    content: "";

    position: absolute;
    right: -90px;
    bottom: -90px;

    width: 240px;
    height: 240px;

    border-radius: 50%;

    background: rgba(0, 209, 139, 0.08);

    pointer-events: none;
}

/* =========================================================
   SIDEBAR LOGO
========================================================= */

.content-logo {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 105px;
    padding: 18px 22px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);

    background: rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.content-logo .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-logo .logo img {
    display: block;

    width: 115px !important;
    max-height: 70px;

    object-fit: contain;

    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

/* =========================================================
   MOBILE BURGER BUTTON
========================================================= */

.burger-menu-icon {
    display: none;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.08);
}

.burger-menu-icon svg {
    width: 29px;
    height: 29px;
}

.burger-menu-icon .line {
    fill: none;
    stroke: currentColor;
    stroke-width: 5.5;
    stroke-linecap: round;

    transition:
        stroke-dasharray 0.5s,
        stroke-dashoffset 0.5s;
}

/* =========================================================
   SIDEBAR CONTENT
========================================================= */

.content-menu {
    position: relative;
    z-index: 2;

    height: calc(100vh - 105px);

    overflow-y: auto;

    padding: 22px 16px 35px;
}

/* =========================================================
   DOCUMENT INFORMATION
========================================================= */

.content-infos {
    margin-bottom: 20px;
    padding: 17px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.07);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.content-infos br {
    display: block;
    content: "";

    margin-top: 8px;
}

.content-infos .info {
    color: rgba(255, 255, 255, 0.8);

    font-size: 12px;
    line-height: 1.65;
}

.content-infos .info + .info {
    margin-top: 4px;
}

.content-infos .info b {
    color: #ffffff;
    font-weight: 700;
}

.content-infos .info a {
    color: var(--arthiq-green);

    font-size: 12px;
    font-weight: 700;
}

.content-infos .info a:hover {
    color: #ffffff;
}

/* =========================================================
   SIDEBAR MENU
========================================================= */

.content-menu > ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.content-menu > ul > li {
    position: relative;

    margin: 5px 0;

    overflow: hidden;

    border-radius: 12px;
}

.content-menu > ul > li > a {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 46px;

    padding: 11px 14px 11px 39px;

    color: rgba(255, 255, 255, 0.76);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.45px;

    cursor: pointer;
}

.content-menu > ul > li > a::before {
    content: "";

    position: absolute;
    left: 15px;

    width: 9px;
    height: 9px;

    border: 2px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;

    transition: all 0.25s ease;
}

.content-menu > ul > li:hover > a {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.08);
}

.content-menu > ul > li:hover > a::before {
    border-color: var(--arthiq-green);

    background: var(--arthiq-green);

    box-shadow: 0 0 0 5px rgba(0, 209, 139, 0.12);
}

.content-menu > ul > li.active > a {
    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            rgba(0, 209, 139, 0.2),
            rgba(255, 255, 255, 0.08)
        );

    box-shadow: inset 3px 0 0 var(--arthiq-green);
}

.content-menu > ul > li.active > a::before {
    border-color: var(--arthiq-green);

    background: var(--arthiq-green);

    box-shadow: 0 0 0 5px rgba(0, 209, 139, 0.15);
}

/* =========================================================
   MOBILE OVERLAY
========================================================= */

.mobile-menu-closer {
    display: none;
}

/* =========================================================
   MAIN CONTENT PAGE
========================================================= */

.content-page {
    position: relative;

    min-height: 100vh;

    margin-left: var(--sidebar-width);
}

.content-code {
    position: fixed;
    top: 0;
    right: 0;

    z-index: -1;

    width: 38%;
    height: 100vh;

    opacity: 0.7;

    background:
        linear-gradient(
            180deg,
            rgba(6, 45, 99, 0.04),
            rgba(0, 209, 139, 0.02)
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 39px,
            rgba(10, 76, 146, 0.03) 40px
        );

    pointer-events: none;
}

.content {
    width: min(1120px, calc(100% - 64px));

    margin: 0 auto;

    padding: 34px 0 80px;
}

/* =========================================================
   DOCUMENT SECTION CARD
========================================================= */

.content-section {
    position: relative;

    margin-bottom: 27px;
    padding: 35px 38px;

    overflow: visible !important;

    border: 1px solid var(--arthiq-border);
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.97);

    box-shadow: var(--shadow-small);

    transition:
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.content-section::before {
    content: "";

    position: absolute;
    top: 0;
    left: 30px;

    width: 75px;
    height: 4px;

    border-radius: 0 0 8px 8px;

    background:
        linear-gradient(
            90deg,
            var(--arthiq-primary),
            var(--arthiq-green)
        );
}

.content-section:hover {
    border-color: rgba(10, 76, 146, 0.24);

    box-shadow: var(--shadow-medium);
}

/* =========================================================
   HEADINGS
========================================================= */

.content-section h1,
.content-section h2,
.content-section h3,
.content-section h4,
.content-section h5,
.content-section h6 {
    color: var(--arthiq-primary-dark);

    font-family: "Inter", Arial, sans-serif;
    line-height: 1.3;
}

.content-section h1 {
    margin: 0 0 24px;

    color: var(--arthiq-primary-dark);

    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1px;
}

.content-section h2 {
    margin: 0 0 22px;
    padding-bottom: 13px;

    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;

    border-bottom: 1px solid var(--arthiq-border);
}

.content-section h3 {
    margin: 28px 0 14px;

    font-size: 23px;
    font-weight: 700;
}

.content-section h4 {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin: 28px 0 14px;
    padding: 8px 13px;

    color: var(--arthiq-primary-dark);

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.55px;

    border: 1px solid rgba(10, 76, 146, 0.12);
    border-radius: 8px;

    background: var(--arthiq-soft);
}

.content-section h4::before {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--arthiq-green);
}

/* =========================================================
   PARAGRAPH AND TEXT
========================================================= */

.content-section p {
    margin: 0 0 17px;

    color: var(--arthiq-text);

    font-size: 15px;
    line-height: 1.85;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section strong,
.content-section b {
    color: var(--arthiq-primary-dark);
}

.content-section ul,
.content-section ol {
    margin: 16px 0 20px;
    padding-left: 23px;
}

.content-section li {
    margin: 7px 0;
}

.content-section a {
    font-weight: 600;

    text-decoration: underline;
    text-decoration-color: rgba(10, 76, 146, 0.25);
    text-underline-offset: 3px;
}

.content-section a:hover {
    text-decoration-color: var(--arthiq-green);
}

/* =========================================================
   CODE BLOCK
========================================================= */

pre {
    position: relative;

    max-width: 100%;

    margin: 19px 0 24px;
    padding: 24px 25px;

    overflow: auto;

    color: #dbeafe;

    border: 1px solid rgba(0, 209, 139, 0.16);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            var(--arthiq-code),
            var(--arthiq-code-light)
        );

    box-shadow: 0 18px 38px rgba(3, 31, 67, 0.16);

    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 13px;
    line-height: 1.75;

    white-space: pre;
    tab-size: 4;
}

pre::before {
    content: "";

    position: sticky;
    left: 0;

    display: block;

    width: 10px;
    height: 10px;

    margin-bottom: 17px;

    border-radius: 50%;

    background: #ff6b6b;

    box-shadow:
        18px 0 #ffd166,
        36px 0 var(--arthiq-green);
}

pre code {
    display: block;

    min-width: max-content;
    padding: 0;

    color: inherit;

    background: transparent;

    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

code {
    padding: 3px 7px;

    color: var(--arthiq-primary-dark);

    border-radius: 6px;

    background: #eaf3fb;

    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.88em;
}

.higlighted,
.highlighted {
    color: var(--arthiq-primary-dark);

    border: 1px solid rgba(10, 76, 146, 0.12);

    background: rgba(0, 209, 139, 0.1);
}

.break-word {
    word-break: break-all;
}

/* =========================================================
   SYNTAX HIGHLIGHTING
========================================================= */

.hljs {
    color: #dbeafe;
    background: transparent;
}

.hljs-comment,
.hljs-quote {
    color: #7e92a8;
    font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-section,
.hljs-link {
    color: #63e6be;
}

.hljs-string,
.hljs-title,
.hljs-name,
.hljs-type,
.hljs-attribute,
.hljs-symbol,
.hljs-bullet,
.hljs-addition,
.hljs-variable,
.hljs-template-tag,
.hljs-template-variable {
    color: #9ecbff;
}

.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-params {
    color: #ffd166;
}

.hljs-function,
.hljs-title.function_ {
    color: #7dd3fc;
}

.hljs-deletion {
    color: #ff8a8a;
}

/* =========================================================
   TABLE
========================================================= */

.central-overflow-x {
    display: table;

    width: 100%;
    min-width: 720px;

    margin: 18px 0 26px;

    overflow: hidden;

    border-collapse: separate;
    border-spacing: 0;

    border: 1px solid var(--arthiq-border);
    border-radius: 16px;

    background: var(--arthiq-white);

    box-shadow: var(--shadow-small);
}

.content-section:has(.central-overflow-x) {
    overflow-x: auto !important;
}

.central-overflow-x thead th {
    padding: 15px 17px;

    color: #ffffff;

    text-align: left;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;

    background:
        linear-gradient(
            100deg,
            var(--arthiq-primary-dark),
            var(--arthiq-primary)
        );
}

.central-overflow-x tbody td {
    padding: 14px 17px;

    color: var(--arthiq-text);

    vertical-align: top;

    font-size: 14px;

    border-bottom: 1px solid var(--arthiq-border);

    background: #ffffff;

    transition: background 0.2s ease;
}

.central-overflow-x tbody tr:last-child td {
    border-bottom: 0;
}

.central-overflow-x tbody tr:nth-child(even) td {
    background: #f8fbfe;
}

.central-overflow-x tbody tr:hover td {
    background: rgba(0, 209, 139, 0.07);
}

.central-overflow-x td:first-child {
    color: var(--arthiq-primary-dark);

    font-family: "JetBrains Mono", Consolas, monospace;
    font-weight: 700;
}

.central-overflow-x td:nth-child(2) {
    color: var(--arthiq-green-dark);
    font-weight: 700;
}

/* =========================================================
   INPUTS
========================================================= */

input,
textarea,
select {
    width: 100%;

    padding: 12px 14px;

    color: var(--arthiq-text);

    border: 1px solid var(--arthiq-border);
    border-radius: 10px;

    outline: none;

    background: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--arthiq-primary);

    box-shadow: 0 0 0 4px rgba(10, 76, 146, 0.1);
}

/* =========================================================
   OPTIONAL ALERT CLASSES
========================================================= */

.alert,
.note,
.warning,
.success,
.error {
    margin: 18px 0;
    padding: 16px 18px;

    border-radius: 10px;
    border-left: 4px solid var(--arthiq-primary);

    background: #eef6fd;
}

.success {
    border-left-color: var(--arthiq-green);

    background: rgba(0, 209, 139, 0.09);
}

.warning {
    border-left-color: #f6a609;

    background: #fff8e8;
}

.error {
    border-left-color: #e74c3c;

    background: #fff0ee;
}

/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1199px) {

    :root {
        --sidebar-width: 280px;
    }

    .content {
        width: min(100% - 40px, 1040px);
    }

    .content-section {
        padding: 30px;
    }
}

/* =========================================================
   TABLET AND MOBILE SIDEBAR
========================================================= */

@media (max-width: 991.98px) {

    .left-menu {
        width: 300px;

        transform: translateX(-100%);

        transition: transform 0.32s ease;
    }

    body.menu-open .left-menu,
    .left-menu.open {
        transform: translateX(0);
    }

    .content-logo {
        min-height: 82px;
        padding: 13px 16px;
    }

    .content-logo .logo img {
        width: 95px !important;
        max-height: 57px;
    }

    .burger-menu-icon {
        display: flex;
    }

    .content-logo .burger-menu-icon {
        position: static;
    }

    .content-menu {
        height: calc(100vh - 82px);
    }

    .mobile-menu-closer {
        position: fixed;
        inset: 0;

        z-index: 999;

        display: block;

        visibility: hidden;
        opacity: 0;

        background: rgba(3, 20, 38, 0.55);

        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
    }

    body.menu-open .mobile-menu-closer,
    .mobile-menu-closer.show {
        visibility: visible;
        opacity: 1;
    }

    .content-page {
        margin-left: 0;
    }

    .content {
        width: calc(100% - 30px);

        padding-top: 30px;
    }

    .content-section {
        padding: 27px 24px;
    }

    .content-code {
        width: 100%;
        opacity: 0.45;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    body {
        font-size: 14px;
    }

    .left-menu {
        width: min(88vw, 310px);
    }

    .content {
        width: calc(100% - 20px);

        padding-top: 20px;
        padding-bottom: 45px;
    }

    .content-section {
        margin-bottom: 18px;
        padding: 24px 18px;

        border-radius: 17px;
    }

    .content-section::before {
        left: 18px;
    }

    .content-section h1 {
        margin-bottom: 19px;

        font-size: 31px;
    }

    .content-section h2 {
        font-size: 25px;
    }

    .content-section h4 {
        font-size: 12px;
    }

    .content-section p {
        font-size: 14px;
        line-height: 1.75;
    }

    pre {
        margin-right: -4px;
        margin-left: -4px;

        padding: 19px 17px;

        border-radius: 13px;

        font-size: 12px;
        line-height: 1.65;
    }

    .central-overflow-x {
        min-width: 640px;
    }

    .central-overflow-x thead th,
    .central-overflow-x tbody td {
        padding: 12px 13px;

        font-size: 12px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .content {
        width: calc(100% - 14px);
    }

    .content-section {
        padding: 21px 14px;

        border-radius: 14px;
    }

    .content-section h1 {
        font-size: 27px;
    }

    .content-section h2 {
        font-size: 22px;
    }

    .content-section h3 {
        font-size: 19px;
    }

    pre {
        padding: 17px 14px;

        font-size: 11.5px;
    }
}

/* =========================================================
   PRINT
========================================================= */

@media print {

    .left-menu,
    .burger-menu-icon,
    .mobile-menu-closer,
    .content-code {
        display: none !important;
    }

    .content-page {
        margin-left: 0;
    }

    .content {
        width: 100%;
        padding: 0;
    }

    .content-section {
        break-inside: avoid;

        box-shadow: none;
    }

    pre {
        white-space: pre-wrap;
        word-break: break-word;

        box-shadow: none;
    }
}




/* =========================================================
   SIDEBAR SMOOTH SCROLL SUPPORT
========================================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

/*
 * Sidebar click ke baad section screen ke bilkul edge par
 * chipakne ke bajay thoda gap chhodkar open hoga.
 */
.content-section {
    scroll-margin-top: 24px;
}

/*
 * Sidebar menu item properly clickable rahe.
 */
.scroll-to-link {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.scroll-to-link > a {
    width: 100%;
    cursor: pointer;
}

/*
 * Active section ko optional subtle highlight.
 */
.content-section.section-active {
    border-color: rgba(0, 209, 139, 0.45);
    box-shadow:
        0 18px 45px rgba(3, 31, 67, 0.13),
        0 0 0 3px rgba(0, 209, 139, 0.08);
}

/*
 * Reduced motion preference wale users ke liye.
 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .content-section {
        scroll-margin-top: 16px;
    }
}