:root {
    /* Text */
    --color-text: #fff;
    --color-text-secondary: #FFFFFF80;

    /* Backgrounds */
    --color-bg-code: #121212;
    --color-bg-card: #181818;
    --color-bg-card-hover: #242424;
    --color-bg-overlay: #FFFFFF1A;

    /* Borders */
    --color-border: #3f3f46;
    --color-separator: #FFFFFFAB;

    /* Code */
    --color-code-name: #7dd3fc;
    --color-code-value: #f9a826;
    --color-code-inline: #22c55e;
    --color-code-inline-bg: rgba(34, 197, 94, 0.12);

    /* Status */
    --color-error: #F87171;
    --color-error-bg: #F871711A;
    --color-success: #16a34a;

    /* Controls */
    --color-copy-hover: #4b5563;
}

.docs-page{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
}
.docs-header{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
h2{
    font-size: 28px;
}
h3{
    font-size: 20px;
}
.docs-header h2{
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.docs-header p{
    font-family: Montserrat;
    font-size: 16px;
    color: var(--color-text-secondary);
    font-size: 14px;
}
.docs-card p{
    color: var(--color-text-secondary);
    font-size: 14px;
}
.separator{
    background-color: var(--color-separator);
    align-self: stretch;
    width: 1px;
}
.separator-horizontal{
    background-color: var(--color-separator);
    height: 1px;
    width: 100%;
}
.naw{
    margin-inline: 40px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 250px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}
.naw-fix{
    position: static;
}
.naw-button{
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 12px;
    padding: 10px 17px;
    width: 100%;
    color: var(--color-text);
    text-decoration: none;
}
.naw-button.active{
    background-color: var(--color-bg-overlay);
}
.ico-bg{
    background-color: var(--color-bg-overlay);
    height: 44px;
    width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.active .ico-bg{
    background-color: #181818;
}
.page-content{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.static-content{
    display: grid;
    gap: 80px;
}
.static-content section{
    gap: 30px;
    display: grid;
    justify-items: center;
}
.content-columns{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.content-columns > * {
    min-width: 0;
}
pre{
    box-sizing: border-box;
    background-color: var(--color-bg-code);
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
    color: var(--color-text) !important;
    justify-content: space-between;
    align-items: flex-start;
}
.code-name {
    color: var(--color-code-name);
    font-weight: 600;
}
.code-value {
    color: var(--color-code-value);
}
.code-error{
    background-color: var(--color-error-bg);
    color: var(--color-error);
    padding: 4px 8px;
    border-radius: 4px;
}
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
    border-spacing: 0;

    border-radius: 10px;
    overflow: hidden;
}

table th,
table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

table thead {
    background: var(--color-bg-card-hover);
}

table th {
    font-weight: 600;
    color: var(--color-text);
}

table tbody tr:hover {
    background: var(--color-bg-card-hover);
    transition: background 0.2s;
}
td img{
    height: 45px;
}
.hljs{
    background: unset !important;
}
.docs-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    width: 100%;
}

.docs-list li {
    padding: 14px 0;
    line-height: 1.6;
    border-bottom: 1px solid var(--color-border);
    min-width: 0;
}

.docs-list li:last-child {
    border-bottom: none;
}

.docs-list li::before {
    content: "→";
    color: #ef4444;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 5px;
}

.docs-list code {
    color: var(--color-code-inline);
    background: var(--color-code-inline-bg);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    line-height: 1.2;
}
.copy-btn {
    top: 10px;
    right: 10px;

    padding: 6px 10px;
    border: none;
    border-radius: 6px;

    color: var(--color-text);
    cursor: pointer;
    background: unset;
    transition: .2s;
}

.copy-btn:hover {
    background: var(--color-copy-hover);
}

.copy-btn.copied {
    background: var(--color-success);
}

.text{
    display: flex;
    align-items: center;
    gap: 1rem;
}
.text img{
    max-width: 17px;
}
.sample-title{
    padding:16px 20px;
    font-weight:600;
    border-bottom:1px solid var(--color-border);
    background: var(--color-bg-card-hover);
    font-family: Orbitron;
}

.sample-item{
    border-bottom:1px solid var(--color-border);
    font-family: Geist Mono;
}

.sample-item:last-child{
    border-bottom:none;
}

.sample-header{
    padding:16px 20px;
    display:flex;
    justify-content:space-between;
    align-items: center;
    cursor:pointer;
}

.arrow{
    transition: transform .2s ease;
}

.sample-item.active .arrow{
    transform: rotate(180deg);
}

#sample-code{
    display:none;
    margin: 10px 30px;
}
@media (max-width: 450px) {
    .naw{
        display: none;
    }
    .separator{
        display:none
    }
    h2, h3{
        font-size: 15px;
    }
    .docs-card p, .docs-header p, .docs-list{
        font-size: 10px;
    }
    .ico-bg{
        height: 25px;
        width: 25px;
        border-radius: 6px;
    }
    .ico-bg img{
        max-width: 15px;
    }
    .content-columns{
        grid-template-columns: 1fr;
    }
    div, section{
        max-width: 300px;
    }
    pre, button{
        font-size: 9px;
    }
    .static-content{
        margin-inline: 30px;
        gap: 30px;
        width: 100%;
    }
    .table{
        font-size: 10px;
    }
    td img {
        height: 30px;
    }
    .exemple{
        display: none;
    }
}
