* {
    box-sizing: border-box;
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: sans-serif;
    background: #141414;
    color: #fafafa;
}

h2 {
    font-size: 2rem;
    font-weight: 100;
    margin: 0;
}
h3 {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0;
    margin-bottom: 0.5em;
}
* + h3 {
    margin-top: 1em;
}

#app {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

#chat {
    flex: 1;
    padding: 1rem;
    overflow: auto;
}

.simulator {
    position: relative;
    padding: 1rem;
    background: #343434;
    border-top: 1px solid #d6d6d6;
    box-shadow: 0 0 10px rgba(255,255,255,0.25);
}
.simulator-toggle {
    display: flex;
    position: absolute;
    top: 15px;
    right: 2.5rem;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border: 1px #d6d6d6 solid;
    border-radius: 50%;
    font-size: 26px;
    font-weight: 900;
    cursor: pointer;
}
.simulator-content {
    display: flex;
    height: 290px;
    gap: 2rem;
    margin-top: 16px;
}
.simulator-content.hidden {
    display: none;
}
.simulator-general {
    flex: 1;
}
.simulator-configurator {
    width: 932px;
    padding-left: 2rem;
    border-left: 1px solid #d6d6d6;
}

.simulator-chunks-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: .5rem;
}
.simulator-chunks-nav button {
    padding: 0.5em 1rem;
}
.simulator-chunks-nav button.active {
    background: rgba(255,255,255,0.25);
}

.simulator-chunks-content {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

#log {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #555;
    padding: 0.5em;
    background: #000;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25em 1em;
    margin-bottom: 1em;
}
.input-group label {
    width: 150px;
}
.input-group input,
.input-group textarea {
    flex: 1;
    padding: 0.5em;
    background: transparent;
    border: 1px #d6d6d6 solid;
    color: #fafafa;
}
textarea {
    height: 56px;
}
button {
    padding: 0.5em;
    background: transparent;
    border: 1px #d6d6d6 solid;
    color: #d6d6d6;
    cursor: pointer;
    border-radius: 5px;
}

#message {
    flex: 1;
    padding: 0.5em;
}


.chunk {
    display: flex;
    flex-direction: column;
    margin: 16px 0;
    border-radius: 8px;
    background: #222;
    padding: 16px;
    gap: 16px;
}
.chunk-header-content {
    display: inline-block;
    opacity: .75;
    margin-right: 16px;
    text-decoration: underline;
}

.chunk-editor label {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    margin-bottom: 6px;
    border-radius: 8px;
}
.chunk-editor span {
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
}
.chunk-editor input {
    flex: 1;
    background: transparent;
    color: inherit;
    /*border: 1px #d6d6d6 solid;*/
    border: none;
    outline: none;
}
.chunk-value {
    display: block;
    height: 150px;
}

.chunk-visualizer {
}
.chunk-visualizer span {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin: 0 -1px -1px 0;
    border: 1px solid #646464;
    text-align: center;
}
.chunk-value {
    padding-top: 1rem;
    word-wrap: break-word;
    width: 570px;
}

.chunk-validated {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 16px;
}
.chunk-validated em {
    margin-right: 8px;
}
.chunk-validated.ok {
    background: #4CAF50;
}
.chunk-validated.ko {
    background: #F44336;
}

.chunk-editor .tryCount,    .chunk-visualizer .tryCount    { background: #B71C1C; } /* Red 900 */
.chunk-editor .chunkNumber, .chunk-visualizer .chunkNumber { background: #0D47A1; } /* Blue 900 */
.chunk-editor .totalChunks, .chunk-visualizer .totalChunks { background: #1976D2; } /* Blue 700 */
.chunk-editor .chunkLength, .chunk-visualizer .chunkLength { background: #1B5E20; } /* Green 900 */
.chunk-editor .totalLength, .chunk-visualizer .totalLength { background: #388E3C; } /* Green 700 */
.chunk-editor .messageId,   .chunk-visualizer .messageId   { background: #880E4F; } /* Pink 900 */
.chunk-editor .messageType, .chunk-visualizer .messageType { background: #006064; } /* Cyan 900 */
.chunk-editor .signature,   .chunk-visualizer .signature   { background: #4A148C; } /* Purple 900 */