/* IMPORT GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;700;900&display=swap');

/* BLUE THEME */
:root {
    --c0: #080b11; 
    --c1: #182034; 
    --c2: #293657; 
    --c3: #394b79; 
    --c4: #49609c; 
    --c5: #637ab6; 
    --c6: #8697c6; 
    --c7: #a8b5d6; 
    --c8: #cbd3e7; 
    --c9: #eef0f7; 
}

/* DEFAULT CSS */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--c8);
    color: black;
    overflow: hidden;
}
* {
    box-sizing: border-box;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    background-color: transparent;
    color: black;
}

table {
    border: none;
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
}
table tr td { padding: 5px; }

::-webkit-scrollbar {
    width: 5px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    height: 20px;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* CONTROLS CSS */

/* BLOCK */
#block {
    position: absolute;
    display: none;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: black;
    opacity: 0.5;
    overflow: hidden;
    z-index: 100;
}
#block.show {
    display: block;
}

/* ALERT */
#alert {
    position: absolute;
    display: grid;
    grid-auto-flow: row;
    grid-template-rows: 35px 1fr 45px;
    visibility: hidden;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 0; height: 0;
    background-color: var(--c8);
    border-radius: 8px;
    transition: visibility 0.1s ease-in-out, width 0.3s ease-in-out, height 0.3s ease-in-out;
    z-index: 101;
}
#alert.mobileMode {
    top: 20px;
    transform: translateX(-50%);
}
#alert .header {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: 35px 1fr;
    width: 100%; height: 100%;
    overflow: hidden;
    background-color: var(--c1);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
#alert .header .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
#alert .header .icon img {
    max-width: 25px; max-height: 25px;
    user-select: none;
}
#alert .header .label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 700;
    font-size: 10pt;
    color: white;
    padding-left: 5px; padding-right: 10px;
    text-transform: uppercase;
    user-select: none;
}
#alert .buttons {
    border-top: 1px solid var(--c7);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
#alert .buttons.hide { visibility: hidden; }
#alert .buttons button {
    min-width: 120px;
    border: 0;
    padding: 5px;
    background-color: var(--c2);
    color: white;
    font-weight: 300;
    font-size: 10pt;
    border-radius: 5px;
    margin-right: 5px;
    user-select: none;
}
#alert .buttons button:hover {
    background-color: var(--c3);
    cursor: pointer;
}
#alert .buttons button:active {
    background-color: var(--c1);
}
#alert .body {
    display: block;
    width: 100%; height: 100%;
    padding: 10px;
    font-size: 10pt;
    overflow-y: auto;
    overflow-x: hidden;
}
#alert.show {
    visibility: visible;
}
#alert .body .login-form.hide {
    visibility: hidden;
}
#alert .body .login-error {
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    height: 0;
    background-color: var(--c1);
    color: white;
    font-size: 8pt;
    font-weight: 700;
    border-radius: 5px;
    transition: height 0.3s ease-in-out;
}
#alert .body .login-error.show {
    visibility: visible;
    height: 25px;
}

/* LOADER */
#loader {
    position: absolute;
    display: grid;
    grid-auto-flow: row;
    grid-template-rows: 35px 1fr;
    visibility: hidden;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 0; height: 0;
    background-color: var(--c8);
    border-radius: 8px;
    transition: visibility 0.1s ease-in-out, width 0.3s ease-in-out, height 0.3s ease-in-out;
    z-index: 101;
}
#loader.show {
    visibility: visible;
}
#loader .header {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: 35px 1fr;
    width: 100%; height: 100%;
    overflow: hidden;
    background-color: var(--c1);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
#loader .header .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
#loader .header .icon img {
    max-width: 25px; max-height: 25px;
    user-select: none;
}
#loader .header .label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 700;
    font-size: 10pt;
    color: white;
    padding-left: 5px; padding-right: 10px;
    text-transform: uppercase;
    user-select: none;
}
#loader .body {
    display: flex;
    align-items: center;
    justify-content: center;
}
#loader .body img {
    width: 50%;
}
#loader .body .spinner {
    display: none;
}
#loader .body .spinner.show {
    display: block;
}
#loader .body .progress-container {
    position: relative;
    display: none;
    width: calc(100% - 50px); height: 25px;
    background-color: white;
}
#loader .body .progress-container .progress {
    position: absolute;
    top: 0; left: 0;
    height: 100%; width: 0%;
    background-color: var(--c5);
    transition: width 0.3s ease-in-out;
    z-index: 1;
}

#loader .body .progress-container.show {
    display: block;
}

/* c0d3-r */
c0d3-r[mode='tabs'], c0d3-r[mode='layout']{
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
c0d3-r[mode='input'], c0d3-r[mode='bar']{
    position: relative;
    display: block;
    width: auto; height: auto;
    overflow: hidden;
    z-index: 0;
}
c0d3-r[mode='input'].topMost {
    overflow: visible;
    z-index: 100;
}
c0d3-r[mode='input']:not(:last-child), c0d3-r[mode='bar']:not(:last-child){
    margin-bottom: 5px;
}
c0d3-r[mode='tabs'] * { visibility: hidden; }