/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

/* Label/tag denoting the user that shared a connection */
.jdbc-share-tag {

    background: #0095ff;
    padding: 0.25em;

    -moz-border-radius:    0.25em;
    -webkit-border-radius: 0.25em;
    -khtml-border-radius:  0.25em;
    border-radius:         0.25em;

    color: white;
    font-size: 0.75em;
    font-weight: bold;

}
.chc-vm-reset {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: #0d1117;
    color: #e6edf3;
}

.chc-vm-reset[hidden] {
    display: none;
}

.chc-vm-reset__panel {
    box-sizing: border-box;
    width: min(100%, 28rem);
    padding: 1.5rem;
    border: 1px solid #30363d;
    border-radius: .75rem;
    background: #161b22;
    font: 1rem/1.5 system-ui, sans-serif;
}

.chc-vm-reset__panel p {
    margin: 0;
}

.chc-vm-reset__panel progress {
    display: block;
    width: 100%;
    margin-top: .9rem;
    accent-color: #58a6ff;
}

.chc-vm-reset__panel progress[hidden],
.chc-vm-reset__panel button[hidden] {
    display: none;
}

.chc-vm-reset__panel button {
    margin-top: .9rem;
    color: inherit;
    background: #21262d;
    border-color: #8b949e;
}

.chc-clipboard {
    position: fixed;
    top: .35rem;
    right: .35rem;
    z-index: 9000;
    max-width: calc(100vw - .7rem);
    padding: .25rem;
    background: #161b22;
    color: #e6edf3;
    border-radius: .35rem;
    font: .875rem/1.4 system-ui, sans-serif;
}

.chc-clipboard [hidden], .chc-clipboard[hidden] {
    display: none;
}

.chc-clipboard button {
    margin: .2rem;
    color: inherit;
    background: #21262d;
    border: 1px solid #8b949e;
    border-radius: .25rem;
}

.chc-clipboard p {
    margin: .4rem .2rem;
}

.chc-clipboard textarea {
    display: block;
    box-sizing: border-box;
    width: min(24rem, 100%);
    min-height: 6rem;
    margin-bottom: .4rem;
}
