:root {
    --plrb-color-primary: rgb(55 65 81);
    --plrb-color-primary-hover: #23272b;
    --plrb-color-primary-active: #1d2124;

    --plrb-status-tools-height: 4rem;
}

body {
    background-color: rgb(231, 233, 235);
    color: rgb(55 65 81);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

main {
    height: 100vh;
}

.plrb-pane-container {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    height: 100%;
}

.plrb-editor-status-group {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 50%;
}

.plrb-status-pane {
    display: flex;
    flex-direction: column;
    height: calc(var(--plrb-status-tools-height) - 1rem);
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.plrb-editor-tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 2rem;
    margin-bottom: 0.5rem;
}

.plrb-editor-tab-button {
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    border-width: 1px;
    border-color: rgb(118, 118, 118);
    background-color: #ffffff;
    color: rgb(55 65 81);
    font-size: 100%;
    font-family: inherit;
    font-weight: 600;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    flex: 1 1 0%;
}

.plrb-editor-tab-button:hover {
    background-color: #f2f2f2;
    cursor: pointer;
}

.plrb-editor-tab-button-active {
    background-color: var(--plrb-color-primary);
    color: #ffffff;
}

.plrb-editor-tab-button-active:hover {
    background-color: var(--plrb-color-primary-hover);
}

.plrb-editor-pane {
    flex: 1 1 0%;
}

.plrb-editor-file-header {
    background: rgba(173, 216, 230, 0.5);
}

.plrb-tools-output-group {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 50%;
}

.plrb-tools-pane {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: var(--plrb-status-tools-height);
    align-items: center;
}

.plrb-tools-button-group {
    margin: 0 1rem;
    display: flex;
}

.plrb-tools-do-button {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    border-width: 1px;
    border-color: rgb(118, 118, 118);
    background-color: var(--plrb-color-primary);
    color: #ffffff;
    font-size: 100%;
    padding: 0.5rem 0.5rem;
    white-space: nowrap;
}

.plrb-tools-do-button:hover {
    background-color: var(--plrb-color-primary-hover);
    cursor: pointer;
}

.plrb-tools-do-button:active {
    background-color: var(--plrb-color-primary-active);
}

.plrb-tools-more-tools-button {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-width: 1px;
    border-color: rgb(118, 118, 118);
    background-color: #6c757d;
    font-size: 100%;
    font-family: inherit;
    font-weight: 600;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    color: #ffffff;
}

.plrb-tools-more-tools-button:hover {
    background-color: #5a6268;
}

.plrb-tools-more-tools-button:active {
    background-color: #4e555b;
}

.plrb-tools-metadata-message {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: small;
}

.plrb-tools-metadata-revision a {
    text-decoration-line: underline;
}

.plrb-output-pane {
    flex: 1 1 0%;
    overflow: auto;
    padding: 1rem;
    margin: 0 0.5rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
    white-space-collapse: preserve;
}

.plrb-output-range {
    text-decoration: underline;
}

.plrb-icon-button {
    border-width: 1px;
    border-radius: 0.25rem;
    background-color: #6c757d;
    font-size: 100%;
    font-family: inherit;
    font-weight: 600;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    color: #ffffff;
}

.plrb-icon-button:hover {
    background-color: #5a6268;
}

.plrb-icon-button:active {
    background-color: #4e555b;
}

.plrb-tools-config-button {
    margin-left: auto;
    margin-right: 1rem;
}

.plrb-tools-help-button {
    margin-right: 1rem;
}

.plrb-modal {
    border-radius: 0.5rem;
}

.plrb-modal-content {
    background-color: #ffffff;
    padding: 1rem;
    width: 50vw;
    height: 50vh;
    overflow: auto;
}

.plrb-modal-close-button {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0.5rem;
    border: transparent;
    background-color: transparent;
    font-size: 100%;
    font-family: inherit;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: underline;
}

.plrb-modal-config-input {
    width: 90%;
}

.plrb-modal-config-github-sign-in-button {
    border-radius: 0.25rem;
    border-width: 1px;
    border-color: rgb(118, 118, 118);
    background-color: #6c757d;
    color: #ffffff;
    font-size: 100%;
    font-family: inherit;
    font-weight: 600;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.plrb-modal-config-github-sign-out-button {
    border-radius: 0.25rem;
    border-width: 1px;
    border-color: rgb(118, 118, 118);
    background-color: #dc3545;
    color: #ffffff;
    font-size: 100%;
    font-family: inherit;
    font-weight: 600;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Keyboard shortcut table */
.plrb-shortcut-table {
    border-collapse: collapse;
    width: 100%;
}

.plrb-shortcut-table th {
    text-align: left;
    padding: 0.5rem;
}

.plrb-shortcut-table td {
    padding: 0.5rem;
}

.plrb-shortcut-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.plrb-shortcut-table th {
    background-color: #4e555b;
    color: white;
}

@media screen and (max-width: 768px) {
    .plrb-editor-pane {
        height: 50vh;
    }
    .plrb-pane-container {
        display: block;
    }
    .plrb-editor-status-group {
        width: 100%;
        height: 50vh;
    }
    .plrb-tools-output-group {
        display: block;
        width: 100%;
        height: 50%;
    }
    .plrb-output-pane {
        overflow: visible;
        min-height: 30vh;
    }
    .plrb-modal-content {
        width: 80vw;
        height: 60vh;
    }
}
