﻿

:root{
    --sidebar-padding: 24px;

    --content-padding: 30px;
}

html{
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    overflow: hidden;
    line-height: normal;
    height: 100%;
    letter-spacing: -0.02em;
}

body{
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}

.wrapper{
    display: flex;
    height: 100%;
    width: 100%;
}



.sidebar {
    color: white;
    background: #252525;
    position: relative;
    top: 0;
    height: calc(100vh - 20px);
    width: 20%;
    display: flex;
    flex-direction: column;
    padding-left: var(--sidebar-padding);
    padding-right: var(--sidebar-padding);
    padding-bottom: 20px;
}

.sidebar .footer{
    margin-top: auto;
}

.sidebar .menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar .menu .menu-item {
    height: 52px;
    display: flex;
    align-items: center;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    margin-left: calc(var(--sidebar-padding) * -1);
    margin-right: calc(var(--sidebar-padding) * -1);
    padding-left: var(--sidebar-padding);
    padding-right: var(--sidebar-padding);
    text-decoration: none;
    color: white;
}

.sidebar .menu .menu-item:hover{
    background: #EF7800;
}

.sidebar .menu .menu-item span {
    position: relative;
}

.sidebar .menu .menu-item span:after {
    content: attr(data-count);
    position: absolute;
    color: #E0E0E0;
    font-size: 10px;
    font-weight: 700;
    margin-left: 5px;
}

.sidebar .menu .menu-item.active {
    background: #EF7800;
}



.logo {
    min-height: 60px;
    display: flex;
    align-items: center;
}

.footer .footer-header {
    color: #BDBDBD;

    font-size: 12px;
    font-weight: 700;

}

.footer .footer-description{
    color: #797979;
    margin-top: 10px;

    font-size: 12px;
    font-weight: 500;
}

.menu-footer .menu-footer-header {
    color: #BDBDBD;

    font-size: 12px;
    font-weight: 700;

}

.menu-footer .menu-footer-description{
    color: #797979;
    margin-top: 10px;

    font-size: 12px;
    font-weight: 500;
}

.content {
    overflow: auto;
    background: #f0eded;
    padding-left: var(--content-padding);
    padding-right: var(--content-padding);
}
.content .content-header{
    font-size: 46px;
    font-weight: 800;
    margin-top: 30px;
}

/*TODO: rename content-blocks, content-block*/
.content .content-blocks{
    margin-top: 30px;
}

.content-blocks .content-block:first-child{
    margin-top: 0;
}

.content-blocks .content-block{
    margin-top: 30px;
    background: white;
    margin-left: calc(var(--content-padding) * -1);
    margin-right: calc(var(--content-padding) * -1);
}

.content-block .content-block-description {
    padding: 32px 32px 40px 32px;
    border-bottom: #f0eded 1px solid;
}

.content-block .content-block-description h1 {
    font-size: 30px;
    font-weight: 800;

}

.content-block .content-block-description p{
    color: #5C5C5C;
    font-size: 18px;
    font-weight: 500;
}


.content-block .content-block-header .share-icon{
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 20px;
}

.share-icon .share-icon-text {
    font-size: 12px;
    visibility: hidden;
    width: 100px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    bottom: 110%;
    left: 90%;
    margin-left: -75px;
    opacity: 0;
    transition: opacity 0.3s;
}

.share-icon .share-icon-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.share-icon:hover .share-icon-text {
    visibility: visible;
    opacity: 1;
}

.content-block .content-block-header{
    display: flex;
    justify-content: space-between;
}

.content-block .content-block-header .share-icon:hover .circle{
    fill: #EF7800;
    stroke: #EF7800;
}

.content-block .content-block-header .share-icon:hover .share{
    stroke: white;
}

.meta-info{
    display: flex;
    justify-content: center;
    align-items: center;
}

.categories{
    display: flex;
}

.category{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
    max-width: 200px;
    border-radius: 8px;
    padding: 4px 10px 4px 10px;
    background: #EDEDED;
    color: #686A6C;
    font-size: 12px;
    font-weight: 600;
}

.form{
    display: flex;
}

.request, .result {
    width: 50%;
    padding: 32px;
}

.request textarea{
    resize: vertical;
    width: 100%;
    height: 120px;
    padding: 0;
    border: 0;
    font-size: 15px;
}

.request textarea:focus-visible {
    outline: 0;
}

.button {
    position: relative;
}

.button-validation-text {
    font-size: 12px;
    visibility: hidden;
    width: 100%;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    bottom: 110%;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.button-validation-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.request .button button {
    width:  100%;
    height: 48px;
    padding: 0;
    border: 0;
    background: #252525;
    border-radius: 4px;
    color: white;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.17em;
    cursor: pointer;
}

.request .button button:hover {
    background: #EF7800;
}

.examples-list div {
    cursor: pointer;
}


.request .button{
    margin-top: 20px;
}

.request button:disabled {
    opacity: 50%;
    cursor: not-allowed;
}


.form-content{
    margin-top: 20px;
}

.request .form-content {
    padding-bottom: 20px;
    border-bottom: #f0eded 1px solid;
}

.form-header {
    display: flex;
    justify-content: space-between;
}

.form-header h3 {
    margin: 0;
    color: #252525;
    font-size: 18px;
    font-weight: 700;
}

.form-header span{
    font-size: 14px;
    font-weight: 500;
    color: #BDBDBD;
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 4px;
}

.examples{
    margin-top: 20px;
}

.examples .examples-header{
    color: #5C5C5C;
    font-size: 14px;
    font-weight: 500;
}

.examples .examples-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 20px;
}

.examples .examples-list div {
    color: #252525;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline dotted #5C5C5C;
    text-underline-offset: 3px
}

input[type=file]{
    display: none;
}

.file-upload-description{
    font-size: 14px;
    font-weight: 500;
}

.execution-time {
    margin-top: 10px;
}

.execution-time span{
    font-size: 14px;
    font-weight: 500;
    color: #BDBDBD;
}

.custom-file-upload {
    width: 132px;
    height: 48px;
    background: white;
    border: 1px solid black;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-transform: uppercase;
    color: #252525;
    font-size: 10px;
    font-weight: 700;

}

.file-controls{
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.preview-url{
    position: relative;
    width: 100%;
    display: inline-block;
    height: 60px;
}

.preview-url input[type=text]{
    margin-left: 10px;
    padding-left: 10px;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    height: 45px;
}

.preview-button{
    position: absolute;
    bottom: 2px;
    right: 5px;
    float: right;
    cursor: pointer;
}

.selected-file{
    padding-top: 20px;
    font-size: 14px;
    font-weight: 700;
}

.result-wrapper .jsontree_node .jsontree_value-wrapper {
    overflow: visible;
}

.result-wrapper {
    overflow: auto;
}

.result-wrapper li {
    list-style-type: none;
}

.jsontree_tree{
    margin: 0;
    padding: 0;
}

.jsontree_child-nodes {
    padding-inline-start: 0;
}

.sidebar .menu-button{
    display: none;
}



.menu-footer{
    display: none;
    padding: 0 20px 20px 20px;
}