/* Fonts */
@font-face {
    font-family: 'Inter';
    font-weight: 400;
    font-style: normal;
    src: url('https://rsms.me/inter/font-files/Inter-Regular.woff2?v=3.7') format('woff2'),
    url('https://rsms.me/inter/font-files/Inter-Regular.woff?v=3.7') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-weight: 500;
    font-style: normal;
    src: url('https://rsms.me/inter/font-files/Inter-Medium.woff2?v=3.7') format('woff2'),
    url('https://rsms.me/inter/font-files/Inter-Medium.woff2?v=3.7') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-weight: 600;
    font-style: normal;
    src: url('https://rsms.me/inter/font-files/Inter-SemiBold.woff2?v=3.7') format('woff2'),
    url('https://rsms.me/inter/font-files/Inter-SemiBold.woff2?v=3.7') format('woff');
}

.lds-ring,
.lds-ring div {
    box-sizing: border-box;
}
.lds-ring {
    display: inline-block;
    position: relative;
    width: 24px;
    height: 24px;
}
.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid currentColor;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: currentColor transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.progress-bar > span {
    border-radius: 2px;
    height            : 100%;
    display           : block;
    overflow          : hidden;
    position          : relative;
    background-color  : #0080C5;
    transition        : 500ms linear;
    -webkit-transition: 500ms linear;
    width: 0px;
}

.progress-bar > span:after {
    content          : "";
    top              : 0;
    left             : 0;
    right            : 0;
    bottom           : 0;
    z-index          : 1;
    position         : absolute;
    background-size  : 25px 25px;
    overflow         : hidden;
    animation        : stripes-move 1s linear infinite;
    -webkit-animation: stripes-move 1s linear infinite;
    background-image : -webkit-linear-gradient(135deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
    background-image : linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
}

.progress-bar.success > span{
    background-color  : #7bd91f;
}
.progress-bar.error > span{
    background-color  : #ff0078;
}
.progress-bar.finished > span:after {
    animation: none;
}

@-webkit-keyframes stripes-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

@keyframes stripes-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.progress-bar > span:after {
    animation        : stripes-move 2s linear infinite;
}
.progress-bar.finished > span:after {
    animation        : none;
}

body{
    position: relative;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    color: #fff;
    margin: 0;
    padding: 0;
    background-color: #2C2C2C;
    min-height: 100%;
}

.page{
    display: flex;
    height: 100%;
    flex-direction: column;
}
.page header{
    padding: 2em;
    background-color: #000;
}
.page header h1{
    margin: 0;
}
.page main{
    flex: 1;
    padding: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}
.page main > *{
    width: calc(50% - 1em);
    display: flex;
    flex-direction: column;
    background: #111;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
    font-family: "Courier New";
}
.page main > * header{
    text-transform: uppercase;
    color: #fff;
    padding: 5px;
    background: #000;
    display: flex;
    align-items: center;
    gap: 1em;
}
.page main header h2{
    flex: 1;
}

iframe{
    background: #ddd;
}

.scrollbar{
    overflow-x: hidden;
    overflow-y: auto;
    height: 40vh;
    border: 1px solid transparent;
    padding: 0.5em;
}
.scrollbar > *{
    //text-overflow: ellipsis;
    //overflow: hidden;
    //border-bottom: 1px dotted #555;
    //white-space: nowrap;
    //padding: 0.25em 0;
}

.loading .filename-wrapper{
    background: rgba(255,255,255,0.2);
}
.error .filename-wrapper{
    background: #b30668;
}
.success .filename-wrapper{
    background: #568800;
}

.status-success,
.status-error{
    display: none;
}
.status-success img,
.status-error img{
    width: 16px;
    height: 16px;
}

.filename-wrapper{
    display: flex;
    align-items: center;
    border-bottom: 1px solid #555;
    gap: 0.5em;
    font-size: 13px;
}

.filename {
    margin-right: auto;
    padding: 5px;
}
.filename .label {
    color: #fff;
    font-weight: bold;
    max-width: 400px;
    word-break: break-word;
}
.filename .path {
    color: #aaa;
    font-family: "Courier New";
}
.filename .total_call {
    width: 60px;
    opacity: 0;
}
.filename .loading-status {
    width: 40px;
}
.filename .loading-status {
    width: 200px;
}

.filename .loading{
    display: none;
}

.output-files{

}

.output-toast{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    padding: 20px;
    background: #0080C5;
    font-family: "Courier New";
    color: #fff;
    text-align: center;
    box-shadow: 0px 0px 20px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 600px;
    border-radius: 6px;
}

.output-wrapper{
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.actions{
    display: flex;
    gap: 0.25em;
}

.button-stop{
    padding: 0 2em;
    border: 0;
    background: red;
    line-height: 2.4em;
    text-transform: uppercase;
    color: #fff;
}

.button-compress{
    padding: 0 2em;
    border: 0;
    background: blue;
    line-height: 2.4em;
    text-transform: uppercase;
    color: #fff;
    display: none;
}

.output{
    display: none;
    background: #111;
    color: #fff;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}
.console{
    margin-bottom: 5px;
    font-family: "Courier New";
}
.progress-bar{
    height : 10px;
    box-shadow: 0px 0px 4px rgba(0,0,0,0.8);
    background: rgba(255,255,255,0.3);
    width: 50%;
}





.link{
    color: var(--purple);
}
.link:hover{
    text-decoration: underline;
}

.excel-upload{
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
}
.excel-upload .icon{
    width: 48px;
}
.excel-upload .icon img{
    width: 100%;
}
.excel-upload .content{

}
.excel-upload .content p{

}


.box {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    cursor: default;
    user-select: none;
    padding: 0 0 12px 0;
}
.highlight {
    color: #FF006B;
}
.desc {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .01em;
    line-height: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    cursor: default;
    user-select: none;
    padding: 0 0 8px 0;
    color: rgba(255,255,255,0.75);
}
.field {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .01em;
    line-height: 11px;
    position: relative;
    display: flex;
    overflow: visible;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 8px;
    color: rgba(255,255,255,1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
    background-color: #2c2c2c;
}
.radio {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 16px;
    padding: 0.25em 0 0 0.5em;
    width: 100%;
    color: rgba(255,255,255,0.75);
}
.radio-list {
    display: flex;
    padding: 0.25em 0;
    align-items: center;
    vertical-align:middle;
}
.radio-list input {
    display: inline;
}
.field:placeholder {
    color: rgba(255,255,255,1);
    border: 1px solid rgba(255,255,255,0.5);
}
.field:hover {
    color: rgba(255,255,255,1);
    border: 1px solid rgba(255,255,255,0.5);
}

.button{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    border-radius: 3px;
    border: 1px solid #1bc47d;
    text-transform: uppercase;
    font-size: 12px;
    color: #1bc47d;
    background: none;
}
.button.primary{
    background: #1bc47d;
    color: #fff;
}

.form-fields{
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    padding: 1em;
}
.form-fields > h2{
    width: 100%;
    margin: 0;
    font-size: 18px;
}
.form-fields > p{
    font-size: 13px;
    width: 100%;
    margin: 0;
    margin-bottom: 1em;
}

.form-buttons{
    display: flex;
    justify-content: center;
    gap: 1em;
}

.form-field{
    display: flex;
    gap: 0.5em;
    flex-direction: column;
    width: calc(50% - 1em);
    //background: rgba(0,0,0,0.1);
    //padding: 1em;
}
.form-field .form-label{
    font-size: 11px;
    text-transform: uppercase;
    color: #ccc;
    letter-spacing: 0.05em;
}
.form-field .form-input{
    position: relative;
    border: 1px solid #aaa;
    background: rgba(0,0,0,0.5);
    height: 40px;
    color: #fff;
    border-radius: 3px;
}
.form-field .form-checkboxes{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em;
    flex-direction: column;
    padding-top: 0.5em;
}
.form-field .form-checkboxes label{
    position: relative;
    white-space: nowrap;
    font-size: 13px;
}
.form-field .form-checkboxes label input{
    position: absolute;
    top: 50%;
    left: 1em;
    transform: translateY(-50%);
}
.form-field .form-checkboxes label div{
    background: rgba(0,0,0,0.5);
    border-radius: 3px;
    padding: 0.75em;
    padding-left: 3em;
    opacity: 0.3;
}
.form-field .form-checkboxes label input:checked ~ div{
    opacity: 1;
}
.form-field .form-input select{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    line-height: 40px;
    padding: 0 1em;
}
.form-field .form-input input{
    background: none;
    border: none;
    color: #fff;
    line-height: 40px;
    padding: 0 1em;
    width: 100%;
}