/* Inter (SIL Open Font License 1.1), embarcada na extensão para funcionar sem internet. */
@font-face {
    font-family: 'Inter AV';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('app/ext/addvalue-branding/resources/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter AV';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('app/ext/addvalue-branding/resources/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter AV';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('app/ext/addvalue-branding/resources/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter AV';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('app/ext/addvalue-branding/resources/fonts/inter-latin-800-normal.woff2') format('woff2');
}
/*
 * Identidade visual Add Value para o Apache Guacamole 1.6.x
 * Laboratório de treinamento GlobalProtect (bolhas por aluno)
 *
 * Login no mesmo estilo do Firewall Insights: painel da marca à esquerda,
 * formulário escuro à direita, botão em degradê ciano → azul.
 */

/* ---------- Base (páginas internas, fundo claro) ---------- */

body {
    font-family: 'Inter AV', Carlito, FreeSans, Helvetica, Arial, sans-serif;
    color: #10182F;
}

input[type="submit"], button, a.button {
    font-family: 'Inter AV', Carlito, FreeSans, Helvetica, Arial, sans-serif;
    font-weight: 600;
    background-color: #0B5FD6;
    border: 1px solid #0B5FD6;
    border-radius: 6px;
    text-shadow: none;
    box-shadow: 0 1px 2px rgba(6, 18, 46, 0.25);
    transition: background-color 0.15s ease;
}
input[type="submit"]:hover, button:hover, a.button:hover { background-color: #0A74FF; }
input[type="submit"]:active, button:active, a.button:active { background-color: #094CB0; }
input[type="submit"]:disabled, button:disabled, button.danger:disabled {
    background-color: #8A93A8;
    border-color: #8A93A8;
}
button.danger, a.button.danger { background: #B4412F; border-color: #B4412F; }
button.danger:hover, a.button.danger:hover { background: #C9543F; }

a, a:visited { color: #0A74FF; }

.header {
    background: #FFFFFF;
    border-bottom: 2px solid #00B8F0;
    box-shadow: 0 1px 3px rgba(6, 18, 46, 0.08);
}
.header h2 { color: #071A3D; font-weight: 700; letter-spacing: 0.04em; }

.menu-dropdown { background-color: #F3F6FB; }
.menu-dropdown:hover { background-color: #E6F4FC; }
.menu-dropdown.open, .menu-dropdown.open:hover { background-color: #D6EEFA; }
.menu-dropdown .menu-title { color: #071A3D; font-weight: 600; }
.menu-dropdown .menu-contents { background-color: #FFFFFF; }
.menu-dropdown .menu-contents li a:hover { background-color: #E6F4FC; }

.list-item:not(.selected) .caption:hover,
.recent-connections .connection:hover { background-color: #E6F4FC; }
.list-item.selected { background-color: #D3ECF8; }
.list-item .name { color: #10182F; }
.all-connections .connection-group > .caption .name { font-weight: 700; color: #071A3D; }

/* ---------- Faixa da página inicial (html/inicio-faixa.html) ---------- */

.av-faixa {
    display: flex;
    align-items: center;
    gap: 1.5em;
    padding: 1em 1.5em;
    background:
        radial-gradient(circle at 0% 0%, rgba(11, 74, 160, 0.55) 0, rgba(11, 74, 160, 0) 45%),
        linear-gradient(100deg, #061633 0%, #04102A 100%);
    border-bottom: 3px solid #00B8F0;
    color: #FFFFFF;
}
.av-faixa .av-faixa-logo {
    flex: 0 0 auto;
    width: 118px;
    height: 32px;
    background: url('app/ext/addvalue-branding/resources/images/logo-addvalue-branco.png') no-repeat left center;
    background-size: 118px 32px;
}
.av-faixa .av-faixa-texto { flex: 1 1 auto; line-height: 1.35; border-left: 1px solid rgba(255,255,255,0.15); padding-left: 1.5em; }
.av-faixa .av-faixa-titulo { font-weight: 800; font-size: 1.05em; letter-spacing: 0.04em; text-transform: uppercase; }
.av-faixa .av-faixa-sub { font-size: 0.85em; color: #9FB0CF; }
.av-faixa .av-faixa-guia {
    flex: 0 0 auto;
    padding: 0.6em 1.2em;
    border-radius: 6px;
    background: linear-gradient(90deg, #00B8F0 0%, #0B4AA0 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.9em;
    text-decoration: none;
    white-space: nowrap;
}
.av-faixa .av-faixa-guia:hover { filter: brightness(1.12); text-decoration: none; }
.av-faixa .av-faixa-guia::after { content: " \2197"; }

/* ---------- Tela de login ---------- */

div.login-ui {
    background-color: #020B22;
    color: #E8EEFA;
}

/* Painel da marca (html/login-painel.html), metade esquerda */
.login-ui .av-painel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 52.5%;
    padding: 56px 60px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(11, 74, 160, 0.75) 0, rgba(11, 74, 160, 0) 55%),
        radial-gradient(ellipse at 85% 100%, rgba(0, 140, 190, 0.22) 0, rgba(0, 140, 190, 0) 50%),
        linear-gradient(160deg, #0A2552 0%, #061633 45%, #04102A 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-sizing: border-box;
}
.login-ui .av-painel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #00C8FF, #0A74FF 60%, rgba(10, 116, 255, 0.2));
}
.login-ui .av-painel-logo {
    width: 118px;
    height: 32px;
    background: url('app/ext/addvalue-branding/resources/images/logo-addvalue-branco.png') no-repeat left center;
    background-size: 118px 32px;
}
.login-ui .av-painel-centro {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-ui .av-painel-titulo {
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: clamp(34px, 3.2vw, 54px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #F2F6FF;
}
.login-ui .av-painel-texto {
    margin: 22px 0 0;
    max-width: 23em;
    font-size: 15px;
    line-height: 1.6;
    color: #9FB0CF;
}
.login-ui .av-painel-rodape {
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #5E6F92;
}

/* Metade direita: formulário */
.login-ui .login-dialog-middle {
    padding-left: 52.5%;
}
.login-ui .login-dialog {
    max-width: 392px;
    width: 100%;
    padding: 0 0 1em;
    font-size: 1em;
    text-align: left;
    background: transparent;
    color: #E8EEFA;
    border: none;
    box-shadow: none;
}
.login-ui .login-dialog .logo,
.login-ui .login-dialog .version { display: none; }

.login-ui .login-dialog .av-titulo {
    font-size: 26px;
    font-weight: 700;
    color: #F2F6FF;
    margin: 0 0 22px;
}

/* Rótulos acima dos campos, em caixa alta */
.login-ui .login-fields .labeled-field { margin-bottom: 18px; z-index: auto; }
.login-ui .login-fields .labeled-field .field-header {
    position: static;
    display: block;
    margin: 0 0 7px;
    padding: 0;
    z-index: auto;
    opacity: 1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8C9BBF;
}
.login-ui .login-dialog .login-fields input,
.login-ui .login-fields .labeled-field.empty input,
.login-ui .login-fields .labeled-field input:focus {
    font-family: 'Inter AV', Carlito, FreeSans, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.2;
    height: 42px;
    padding: 0 14px;
    margin: 0;
    background: #06102B;
    border: 1px solid #1C2A4D;
    border-radius: 8px;
    color: #F2F6FF;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-ui .login-fields .labeled-field input:focus {
    outline: none;
    border-color: #00B8F0;
    box-shadow: 0 0 0 3px rgba(0, 184, 240, 0.18);
}
.login-ui .login-fields input:-webkit-autofill {
    -webkit-text-fill-color: #F2F6FF;
    -webkit-box-shadow: 0 0 0 40px #06102B inset;
    caret-color: #F2F6FF;
}

/* Botão em degradê */
.login-ui .login-dialog .buttons { margin-top: 24px; }
.login-ui .login-dialog .buttons input[type="submit"] {
    height: 44px;
    padding: 0 1em;
    font-size: 14px;
    font-weight: 700;
    color: #031026;
    background: linear-gradient(90deg, #00C8FF 0%, #0A74FF 100%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 150, 255, 0.28);
    cursor: pointer;
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.login-ui .login-dialog .buttons input[type="submit"]:hover {
    filter: brightness(1.08);
    box-shadow: 0 10px 28px rgba(0, 150, 255, 0.4);
}
.login-ui .login-dialog .buttons input[type="submit"]:disabled { filter: grayscale(0.6) brightness(0.8); }

.login-ui .login-dialog .av-ajuda {
    margin-top: 22px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #6F80A6;
}

/* Textos de instrução (troca de senha obrigatória, etc.) */
.login-ui .login-dialog .login-form > p {
    font-size: 14px;
    line-height: 1.5;
    color: #B8C5E0;
    margin: 0 0 18px;
}

/* Mensagem de erro */
.login-ui.error p.login-error {
    left: 52.5%;
    margin: 0;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #7A2A2A;
    background: #3A1218;
    color: #FFC9C9;
    font-weight: 600;
}

/* Continuação (troca de senha obrigatória, etc.): só a instrução do Guacamole */
.login-ui.continuation .login-dialog { max-width: 392px; }
.login-ui.continuation .login-dialog .av-titulo,
.login-ui.continuation .login-dialog .av-ajuda { display: none; }
.login-ui.continuation .login-dialog .buttons input[type="submit"] { width: 100%; }

/* Telas estreitas: painel vira faixa no topo */
@media (max-width: 900px) {
    .login-ui .av-painel {
        width: 100%;
        bottom: auto;
        height: 72px;
        padding: 20px 24px;
        border-right: none;
    }
    .login-ui .av-painel-centro,
    .login-ui .av-painel-rodape { display: none; }
    .login-ui .login-dialog-middle { padding: 96px 24px 24px; }
    .login-ui.error p.login-error { left: 0; }
}

@media (max-width: 480px) {
    .av-faixa .av-faixa-sub { display: none; }
    .av-faixa { flex-wrap: wrap; gap: 0.8em 1.2em; }
    .av-faixa .av-faixa-guia { width: 100%; text-align: center; }
}

/* ---------- Lista de conexões sem ícones ---------- */
/* Sem ícone de protocolo (monitor / >_) e sem as linhas de árvore.
   O grupo (bolha) mantém só uma seta discreta para abrir/fechar. */
.all-connections .connection .icon.type,
.recent-connections .connection .icon.type,
.all-connections .connection-group > .caption .icon.type { display: none; }

.all-connections .expandable.expanded > .children > .list-item:before,
.all-connections .expandable.expanded > .children > .list-item:after { display: none; }

.all-connections .expandable > .children {
    margin-left: 0;
    padding-left: 1.6em;
}

.all-connections .expandable > .caption .icon.expand,
.all-connections .expandable.expanded > .caption .icon.expand {
    background-image: none;
    width: 1.1em;
    height: 1.1em;
    position: relative;
    cursor: pointer;
}
.all-connections .expandable > .caption .icon.expand::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 6px;
    height: 6px;
    border-right: 2px solid #0A74FF;
    border-bottom: 2px solid #0A74FF;
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
}
.all-connections .expandable.expanded > .caption .icon.expand::before { transform: rotate(45deg); top: 2px; }

.all-connections .connection > .caption { padding: 0.3em 0.6em; border-radius: 6px; }
.all-connections .connection-group > .caption { padding: 0.35em 0.2em; }

/* ---------- Menu do usuário sem ícones repetidos ---------- */
/* "Principal", "Configurações" e "Sair" (e os demais itens do menu do usuário) ficam só com o texto:
   no Guacamole 1.6 os ícones desses itens apareciam repetidos (lado a lado) abaixo do usuário. */
.user-menu .menu-dropdown .menu-contents li a,
.user-menu .menu-dropdown .menu-contents li a:hover {
    background-image: none !important;
    padding-left: 1em !important;
}
.user-menu .menu-dropdown .menu-title {
    background-repeat: no-repeat !important;
    background-size: 1em !important;
    background-position: 0.5em center !important;
}
.menu-dropdown .menu-indicator { background-repeat: no-repeat !important; }

/* ---------- Tela "Você saiu" (logout) no mesmo padrão do login ---------- */
.logged-out-modal guac-modal {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(11, 74, 160, 0.75) 0, rgba(11, 74, 160, 0) 55%),
        radial-gradient(ellipse at 85% 100%, rgba(0, 140, 190, 0.22) 0, rgba(0, 140, 190, 0) 50%),
        linear-gradient(160deg, #0A2552 0%, #061633 45%, #04102A 100%);
}
.logged-out-modal guac-modal::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #00C8FF, #0A74FF 60%, rgba(10, 116, 255, 0.2));
}
.logged-out-modal .notification {
    max-width: 420px;
    width: calc(100% - 32px);
    box-sizing: border-box;
    padding: 36px 36px 30px;
    background: rgba(4, 12, 34, 0.88);
    border: 1px solid #1C2A4D;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    color: #E8EEFA;
    text-align: left;
    font-family: 'Inter AV', Carlito, FreeSans, Helvetica, Arial, sans-serif;
}
.logged-out-modal .notification::before {
    content: '';
    display: block;
    width: 118px;
    height: 32px;
    margin-bottom: 26px;
    background-image: url('app/ext/addvalue-branding/resources/images/logo-addvalue-branco.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 118px 32px;
}
.logged-out-modal .notification p { margin: 0; }
.logged-out-modal .notification p:first-of-type {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    color: #F2F6FF;
}
.logged-out-modal .notification p:first-of-type::after {
    content: 'Treinamento Palo Alto GlobalProtect';
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8C9BBF;
}
.logged-out-modal .notification button {
    width: 100%;
    height: 44px;
    margin-top: 26px;
    padding: 0 1em;
    font-size: 14px;
    font-weight: 700;
    color: #031026;
    background: linear-gradient(90deg, #00C8FF 0%, #0A74FF 100%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 150, 255, 0.28);
    cursor: pointer;
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.logged-out-modal .notification button:hover {
    filter: brightness(1.08);
    box-shadow: 0 10px 28px rgba(0, 150, 255, 0.4);
}
.logged-out-modal .notification button:disabled { filter: grayscale(0.6) brightness(0.8); cursor: default; }
/*
 * 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;

}
