﻿/*
    BELT POWER - GENERAL
*/
.bp-css-divider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.bp-css-divider hr {
    width: 50%;
    border: 1px solid #999;
}

.bp-css-divider span {
    color: #999;
    font-size: 0.9rem;
    padding: 0 16px;
}

.bp-css-break-words th, .bp-css-break-words td {
    word-wrap: break-word;
    table-layout: fixed;
}

.bp-css-loading-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 4rem;
    margin-top: 16px;
}

.bp-css-still-loading {
    margin-top: 16px;
    text-align: center;
    font-size: 1.2rem;
    height: 3.5rem;
    max-height: 3.5rem;
    overflow-y: hidden;
}

.bp-css-loading-screen > i {
    margin-right: 16px;
    animation-name: loading_animation;
    animation-direction: normal;
    animation-fill-mode: forwards;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes loading_animation {
    0% {
        transform: rotate(-45deg);
    }
    100% {
        transform: rotate(315deg);
    }
}

/*
    BELT POWER - PILL STYLING
*/
.bp-css-pill-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.bp-css-pill-header {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

.bp-css-pill-header-button, a.bp-css-pill-header-button:link {
    width: 100%;
    padding: 8px 0;
    margin: 0 4px;
    background: none;
    text-decoration: none;
    color: #1E355E;
    border: none;
    border-radius: 12px;
    transition: 0.2s;
}

.bp-css-pill-header-button:first-child {
    margin-left: 0;
}

.bp-css-pill-header-button:last-child {
    margin-right: 0;
}

a.bp-css-pill-header-button:visited {
    color: #1E355E;
}

.bp-css-pill-header-button:hover, a.bp-css-pill-header-button:hover {
    color: white;
    background: #1E355E;
}

.bp-css-pill-active.bp-css-pill-header-button {
    color: white;
    background: #1E355E;
}

.bp-css-pill-content {
    width: 100%;
    padding: 16px;
    margin-top: 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
}

.bp-css-pill-content:not(.bp-css-pill-active) {
    display: none !important;
}

/*
    BELT POWER - SELECT PICKER
*/
.bp-css-selectpicker-label {
    cursor: default;
    display: block;
}

.bp-css-selectpicker-loading {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    margin-top: 4px;
}

.bp-css-selectpicker {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.bp-css-selectpicker-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 4px;
    padding: 6px 16px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.bp-css-selectpicker-compact .bp-css-selectpicker-selected {
    padding: 1px 6px;
    font-size: 1rem;
}

.bp-css-selectpicker-selected:hover {
    background: #f8f8f8;
}

.bp-css-selectpicker-none-selected {
    color: #999;
    font-style: italic;
}

.bp-css-selectpicker-selected-span {
    font-size: 1rem;
    color: black;
}

.bp-css-selectpicker-caret > i {
    font-size: 1.3rem;
    margin-top: 4px;
}

.bp-css-selectpicker-dropdown {
    position: absolute;
    z-index: 100;
    display: none;
    flex-direction: column;
    padding-top: 12px;
    background: white;
    border-radius: 6px;
    margin-top: 48px;
    border: 1px solid #ccc;
    box-shadow: 0 0 12px #00000012;
    overflow: hidden;
}

.bp-css-selectpicker-compact .bp-css-selectpicker-dropdown {
    margin-top: 38px;
    padding-top: 8px;
}

.bp-css-selectpicker:focus-within > .bp-css-selectpicker-dropdown {
    display: flex;
}

.bp-css-selectpicker-search-wrapper {
    border-bottom: 1px solid #ccc;
    padding: 0 16px;
}

.bp-css-selectpicker-search-wrapper.bp-css-selectpicker-not-searchable {
    display: none;
}

.bp-css-selectpicker-compact .bp-css-selectpicker-search-wrapper {
    padding: 0 8px;
}

.bp-css-selectpicker-search {
    width: 100%;
    background: white;
    border: 1px solid #bbb;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    transition: 0.1s linear;
}

.bp-css-selectpicker-search:focus {
    outline: 4px solid #1afa;
}

.bp-css-selectpicker-compact .bp-css-selectpicker-search {
    padding: 1px 6px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.bp-css-selectpicker-dropdown-items-wrapper {
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    max-height: calc(100vh - 356px);
}

.bp-css-selectpicker-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: white;
    border: none;
    text-align: left;
    padding: 4px 16px;
    transition: background 0.1s;
}

.bp-css-selectpicker-compact .bp-css-selectpicker-button {
    padding: 2px 4px;
    font-size: 1rem;
}

.bp-css-selectpicker-compact .bp-css-selectpicker-not-searchable + .bp-css-selectpicker-dropdown-items-wrapper .bp-css-selectpicker-button {
    padding: 2px 32px 2px 12px !important;
}

.bp-css-selectpicker-dropdown:has(.bp-css-selectpicker-not-searchable) {
    padding-top: 0 !important;
}

bp-css-selectpicker:not(.bp-css-selectpicker-compact) .bp-css-selectpicker-not-searchable + .bp-css-selectpicker-dropdown-items-wrapper .bp-css-selectpicker-button {
    padding: 4px 32px 4px 12px !important;
}

.bp-css-selectpicker-button:disabled {
    cursor: not-allowed;
    background: #ccc;
    color: #555;
}

.bp-css-selectpicker-active > .bp-css-selectpicker-button {
    background: #1E355E;
    color: white;
}

li:not(.bp-css-selectpicker-active) > .bp-css-selectpicker-button:not(:disabled).bp-css-selectpicker-button:hover {
    background: #ddd;
}

.bp-css-selectpicker-no-items {
    display: block;
    width: 100%;
    padding: 12px 16px;
    color: black;
    font-weight: bold;
    text-align: center;
}

/*
    BELT POWER - TYPABLE SELECT PICKER
*/
.bp-css-typable-selectpicker-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.bp-css-typable-selectpicker-label {
    cursor: default;
    display: block;
}

.bp-css-typable-selectpicker-loading {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    margin-top: 4px;
}

.bp-css-typable-selectpicker-input {
    width: 100%;
    border: none;
    margin-top: 4px;
    outline: none;
}

.bp-css-typable-selectpicker-dropdown {
    position: absolute;
    z-index: 100;
    display: none;
    flex-direction: column;
    background: white;
    border-radius: 6px;
    margin-top: 48px;
    border: 1px solid #ccc;
    box-shadow: 0 0 12px #00000012;
    overflow: hidden;
}

.bp-css-typable-selectpicker-compact .bp-css-typable-selectpicker-dropdown {
    margin-top: 38px;
}

.bp-css-typable-selectpicker-wrapper:focus-within > .bp-css-typable-selectpicker-dropdown {
    display: flex;
}

.bp-css-typable-selectpicker-dropdown-items-wrapper {
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    max-height: calc(100vh - 356px);
}

.bp-css-typable-selectpicker-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: white;
    border: none;
    text-align: left;
    padding: 4px 16px;
    transition: background 0.1s;
}

.bp-css-typable-selectpicker-compact .bp-css-typable-selectpicker-button {
    padding: 2px 4px;
    font-size: 1rem;
}

.bp-css-typable-selectpicker-button:disabled {
    cursor: not-allowed;
    background: #ccc;
    color: #555;
}

.bp-css-typable-selectpicker-button:not(:disabled).bp-css-typable-selectpicker-button:hover {
    background: #ddd;
}

/*
    BELT POWER - CARD FLIPPING
*/
.bp-css-flippable-card-wrapper {
    position: relative;
    width: 100%;
    perspective: 4000px;
}

.bp-css-flippable-card-inner {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.bp-css-card {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 0 16px #0001;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.bp-css-card-front {
    background: white;
}

.bp-css-card-back {
    position: absolute;
    background: white;
    transform: rotateY(180deg);
}

.bp-css-flippable-card-inner.bp-css-flip-card {
    transform: rotateY(180deg);
}

/*
    BELT POWER - GROUP BOX
*/
.bp-css-groupbox {
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 100%;
    padding: 16px;
    margin-top: 0.65rem;
}

.bp-css-groupbox-title-section {
    display: flex;
    justify-content: space-between;
    position: absolute;
    left: 8px;
    width: calc(100% - 16px);
    z-index: 1;
    margin: 0;
    color: #444;
}

.bp-css-groupbox-title {
    background: #eee;
    padding: 0 8px;
}

.bp-css-groupbox-close-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-top: -2.5px;
    font-size: 1.4rem;
    width: 1.6rem;
    height: 1.5rem;
    background: #eee;
    border: none;
    color: #444;
    transition: 0.15s;
}

.bp-css-groupbox-close-button:hover {
    color: black;
}

.bp-css-groupbox-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media only screen and (min-width: 768px) {
    .bp-css-groupbox {
        margin-top: 0.65rem;
    }

    .bp-css-groupbox-title-section {
        font-size: 0.9rem;
        top: -0.65rem;
    }
}

@media only screen and (max-width: 768px) {
    .bp-css-groupbox {
        margin-top: 0.8rem;
    }

    .bp-css-groupbox-title-section {
        font-size: 1.05rem;
        top: -0.8rem;
    }
}

/*
    BELT POWER - CODE EDITOR PAGE
*/
.bp-css-code-container {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-width: 100%;
    min-width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: #333;
}

.bp-css-code-side {
    display: flex;
    flex-direction: column;
    width: 600px;
}

.bp-css-code-divider {
    cursor: ns-resize;
    height: 6px;
    width: 100%;
    border-top: 2px dashed #999;
    border-bottom: 2px dashed #999;
    user-select: none;
}

.bp-css-code-output {
    flex-grow: 1;
    height: 100%;
    overflow-y: hidden;
    overflow-x: auto;
    background: white;
}

.bp-css-code-output-divider {
    cursor: ew-resize;
    width: 6px;
    border-left: 2px solid #999;
    border-right: 2px solid #999;
    outline: none;
    user-select: none;
}

.bp-css-code-output > div {
    width: 100%;
    height: 100%;
}

.bp-css-code-side:has(.bp-css-code-divider:focus) ~ .bp-css-code-output iframe {
    pointer-events: none;
}

.bp-css-code-output-divider:focus + .bp-css-code-output iframe {
    pointer-events: none;
}

.bp-css-code-output iframe {
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}