/*
 * 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;

}
/* KenUp Atalhos — tema dark + dourado do KenUp */

.kenup-atalhos-barra {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2147483000;
    display: flex;
    gap: 10px;
}

.kenup-atalhos-atalho {
    background: #151515;
    color: #e8c65a;
    border: 1px solid #e8c65a;
    border-radius: 22px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.kenup-atalhos-atalho:hover {
    background: #e8c65a;
    color: #111;
}

.kenup-atalhos-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kenup-atalhos-modal {
    background: #181818;
    color: #eee;
    border: 1px solid #e8c65a;
    border-radius: 12px;
    padding: 22px;
    width: min(560px, 92vw);
    max-height: 86vh;
    overflow: auto;
    font-family: inherit;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
}

.kenup-atalhos-titulo {
    font-size: 19px;
    font-weight: 700;
    color: #e8c65a;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kenup-atalhos-fechar {
    background: none;
    border: none;
    color: #999;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.kenup-atalhos-fechar:hover { color: #fff; }

.kenup-atalhos-label {
    margin: 12px 0 6px;
    font-size: 14px;
    color: #ccc;
}

.kenup-atalhos-select,
.kenup-atalhos-textarea {
    width: 100%;
    box-sizing: border-box;
    background: #0f0f0f;
    color: #eee;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 14px;
}

.kenup-atalhos-select:focus,
.kenup-atalhos-textarea:focus {
    outline: none;
    border-color: #e8c65a;
}

.kenup-atalhos-textarea {
    min-height: 180px;
    resize: vertical;
    font-family: inherit;
}

.kenup-atalhos-aviso {
    margin-top: 14px;
    font-size: 13px;
    color: #d8b24a;
    background: rgba(232, 198, 90, 0.08);
    border: 1px solid rgba(232, 198, 90, 0.35);
    border-radius: 8px;
    padding: 9px 11px;
}

.kenup-atalhos-erro {
    margin-top: 12px;
    font-size: 13px;
    color: #ff7b7b;
    background: rgba(255, 90, 90, 0.08);
    border: 1px solid rgba(255, 90, 90, 0.4);
    border-radius: 8px;
    padding: 9px 11px;
}

.kenup-atalhos-botoes {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.kenup-atalhos-btn-pri,
.kenup-atalhos-btn-sec {
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.kenup-atalhos-btn-pri {
    background: #e8c65a;
    color: #111;
    border: 1px solid #e8c65a;
}

.kenup-atalhos-btn-pri:disabled {
    opacity: 0.6;
    cursor: wait;
}

.kenup-atalhos-btn-sec {
    background: none;
    color: #ccc;
    border: 1px solid #555;
}

.kenup-atalhos-btn-sec:hover { border-color: #999; color: #fff; }

.kenup-atalhos-toast {
    position: fixed;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    z-index: 2147483002;
    background: #151515;
    color: #7ee787;
    border: 1px solid #7ee787;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    max-width: min(560px, 90vw);
}

.kenup-atalhos-toast-erro {
    color: #ffb86b;
    border-color: #ffb86b;
}
/* app.css é servido em /guacamole/, então a url() precisa do caminho completo
   até o recurso da extensão. !important pra vencer o bundle do Guacamole
   (.login-ui{background:#fff} e o logo guac-tricolor têm a mesma especificidade). */

/* logo do login (logo completa ~3:2) */
.login-ui .login-dialog .logo {
    background-image: url("app/ext/omnius-branding/omnius-logo.png") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 12em !important;
    height: 8em !important;
}

/* fundo azul-escuro na tela de login */
.login-ui {
    background: #0a1c3a !important;
    background: linear-gradient(160deg, #0d244a 0%, #081327 100%) !important;
}

/* card do login legível sobre o fundo escuro */
.login-ui .login-dialog {
    background-color: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 12px !important;
    padding: 1.5em 1.75em !important;
}
.login-ui .login-dialog,
.login-ui .login-dialog h1,
.login-ui .login-dialog .login-fields,
.login-ui .login-dialog label {
    color: #e6edf6 !important;
}
.login-ui .login-dialog input {
    background-color: rgba(255,255,255,0.95) !important;
    color: #0a1c3a !important;
    border-radius: 6px !important;
}
