@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* Colour codes used */
/*    Guacamole grassy green: #88bf5b */
/*    Warning red #ff2233 */
/*    Main background charcoal #3f3f3f */
/*    Input fields dark charcoal #2b2b2b */
/*    Login dialog background black #000000 */
/*    All text: #ececec */


/* General Style */
body {
    color: #ececec;
    background-color: #3f3f3f;
}
pre {
    color: #ececec;
    background-color: #2b2b2b;
    border: 1px solid #000000;
}

a[href]:visited {
    color: #88bf5b;
}
a[href] {
    color: #88bf5b;
}

div.location,
input[type=text],
input[type=email],
input[type=number],
input[type=password],
textarea {
    background-color: #2b2b2b;
    color: #ececec;
}


/* Login */
div.login-ui {
    color: #ececec;
    background-color: #3f3f3f;
}
.login-ui .login-fields .labeled-field input:focus {
    background-color: #3f3f3f;
    color: #ececec;
}

.login-ui .login-fields .labeled-field {
    background-color: #3f3f3f;
    color: #ececec;
}

.login-ui .login-dialog .logo {
    background-image: url('app/ext/custom-namespace/images/logo-estreito.png');
    width: 7em;
    height:	7em;
    -webkit-background-size: 7em auto;

}

.login-ui .login-dialog {
    background-color: #000000;
    color: #ececec;
}

.login-ui .login-dialog .version .app-name {
    font-weight: 300;
    text-transform: none;
    text-align: center;
    font-size: 2.25em;
    color: #ececec;
    font-family: arial black, sans-serif;
}

div.logged-out-modal .ng-scope {
    color: #ececec;
    background-color: #000000;
}

div.logged-out-modal .ng-scope button {
    color: #ececec;
    background-color: #3f3f3f;
    border: 1px solid #ececec;
}

div.modal-contents {
    color: #ececec;
    background-color: #3f3f3f;
}

.logged-out-modal guac-modal {
    color: #ececec;
    background-color: #3f3f3f;
}

div.notification.ng.scope {
    border: 1px solid #ececec;
}

.notification.error {
    background-color: #ff2233;
}

.client-status-modal .notification.error {
    background-color: #ff2233;
}

button.danger {
    background: #ff2233;
 }

.login-ui.error p.login-error {
    color: #ececec;
    background-color: #ff2233;
}


/* Home */
.recent-connections .connection:hover {
    background-color: #88bf5b;
}

.menu-dropdown .menu-contents {
    background-color: #2b2b2b;
}
.menu-dropdown .menu-contents li a {
    color: #ececec;
}
.menu-dropdown .menu-contents li a:hover {
    background-color: #88bf5b;
}

.list-item.selected {
    background: #88bf5b
}
.list-item:not(.selected) .caption:hover {
    background-color: #88bf5b;
}
.list-item .name {
    color: #ececec;
}

.settings.connections .connection-list .new-sharing-profile {
    opacity: .6;
}

.notification {
    color: #ececec;
    background-color: #2b2b2b;
}


/* Menus */
.menu {
    color: #ececec;
    background-color: #3f3f3f;
}

.clipboard,
.clipboard-service-target {
    background-color: #2b2b2b;
    color: #88bf5b;
}

.menu-dropdown .menu-contents li a.danger {
    color: #ececec;
    font-weight: 700;
    background-color: #ff2233;
}

/* Connections */
#connection-warning {
    background-color: #3f3f3f;
}

.transfer-manager {
    background-color: #2b2b2b;
}
.transfer.error {
    background-color: #ff2233;
}


/* Settings */
.page-tabs .page-list li a[href],
.section-tabs li a {
    color: #ececec;
}
.page-tabs .page-list li a[href]:hover,
.section-tabs li a:hover {
    background-color: #88bf5b;
}
.page-tabs .page-list li a[href]:visited {
    color: #ececec;
}

.settings table.session-list tr.session:hover {
    background-color: #88bf5b;
}

.location-chooser .dropdown {
    background-color: #2b2b2b;
}

.settings.connectionHistory a.history-session-recording {
    color: #88bf5b;
}

.settings.connectionHistory a.history-session-recording:after {
    opacity: .0;
}

.user a,
.user-group a,
.connection a,
.connection-group a {
    color: #ececec;
}
.user a:hover,
.user-group a:hover,
.connection a:hover,
.connection-group a:hover {
    color: #ececec;
}
.user a:visited,
.user-group a:visited,
.connection a:visited,
.connection-group a:visited {
    color: #ececec;
}

.manage-user .notice.read-only {
    color: #ececec;
    background-color: #2b2b2b;
}

#filesystem-menu .header.breadcrumbs .breadcrumb:hover {
    background-color: #88bf5b;
}

#guac-menu #zoom-out:hover,
#guac-menu #zoom-in:hover {
    background-color: #88bf5b;
}


/* ============================================================
   Login institucional - Prefeitura de Estreito
   Inspirado no layout do portal municipal:
   card central, cantos arredondados, azul/indigo + verde,
   tipografia Plus Jakarta Sans / Nunito.
   ============================================================ */

div.login-ui {
    color: #0B1422;
    background:
        radial-gradient(1100px 560px at 8% -10%, rgba(62, 64, 149, .20), transparent 62%),
        radial-gradient(900px 520px at 105% 110%, rgba(0, 168, 89, .18), transparent 62%),
        linear-gradient(135deg, #F7F9FC 0%, #EEF3F9 55%, #F2F5FA 100%);
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.login-ui .login-dialog-middle {
    position: relative;
    z-index: 1;
}

.login-ui .login-dialog {
    box-sizing: border-box;
    background: #FFFFFF;
    color: #0B1422;
    width: calc(100% - 32px);
    max-width: 420px;
    padding: 34px 32px 30px;
    font-size: 16px;
    border: 1px solid rgba(62, 64, 149, .10);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(11, 20, 34, .16), 0 4px 12px rgba(11, 20, 34, .06);
    position: relative;
}

.login-ui .login-dialog::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3E4095 0%, #1974BE 55%, #00A859 100%);
}

.login-ui .login-dialog .logo {
    display: block;
    width: 280px;
    max-width: 100%;
    height: 105px;
    margin: 2px auto 22px;
    background-image: url('app/ext/custom-namespace/images/logo-estreito.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-background-size: contain;
}

/* O logo ja contem o nome; esconde nome/versao duplicados */
.login-ui .login-dialog .version {
    display: none;
}

.login-ui .login-dialog .login-fields {
    margin-top: 2px;
}

.login-ui .login-fields .labeled-field {
    background: transparent;
    color: #0B1422;
}

.login-ui .login-dialog .login-fields input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 52px;
    margin: 0 0 14px;
    padding: 13px 14px;
    border: 1px solid #D5D7DA;
    border-radius: 10px;
    background: #F8FAFC;
    color: #0B1422;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    line-height: 22px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.login-ui .login-dialog .login-fields input:focus {
    background: #FFFFFF;
    border-color: #3E4095;
    box-shadow: 0 0 0 3px rgba(62, 64, 149, .16);
    outline: none;
}

.login-ui .login-dialog .login-fields .labeled-field .field-header {
    margin: 14px;
    color: #6E7070;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 500;
    opacity: 1;
}

.login-ui .login-dialog .buttons {
    margin-top: 6px;
    text-align: center;
}

.login-ui .login-dialog .buttons input[type=submit] {
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    margin: 0;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #3E4095 0%, #1974BE 100%);
    color: #FFFFFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(62, 64, 149, .26);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.login-ui .login-dialog .buttons input[type=submit]:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 24px rgba(62, 64, 149, .34);
    transform: translateY(-1px);
}

.login-ui .login-dialog .buttons input[type=submit]:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(62, 64, 149, .24);
}

.login-ui .login-dialog .buttons input[type=submit]:focus-visible {
    outline: 3px solid rgba(0, 168, 89, .45);
    outline-offset: 2px;
}

/* Etapa de continuacao (TOTP): mantem o logo e o botao full width */
.login-ui.continuation .login-dialog {
    max-width: 420px;
}

.login-ui.continuation .login-dialog .logo {
    display: block;
    width: 200px;
    height: 75px;
    margin-bottom: 18px;
}

.login-ui.continuation .login-dialog .buttons input[type=submit] {
    width: 100%;
}

.login-ui.error p.login-error {
    position: fixed;
    top: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 420px;
    margin: 0;
    padding: 12px 16px;
    background: #FDECEA;
    border: 1px solid #F5C2C7;
    border-radius: 10px;
    color: #B02A37;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 10px 24px rgba(220, 53, 69, .16);
    z-index: 100;
}

@media (max-width: 480px) {
    .login-ui .login-dialog {
        padding: 28px 22px 24px;
        border-radius: 16px;
    }

    .login-ui .login-dialog .logo {
        width: 220px;
        height: 83px;
        margin-bottom: 18px;
    }

    .login-ui.continuation .login-dialog .logo {
        width: 170px;
        height: 64px;
    }

    .login-ui .login-dialog .login-fields input,
    .login-ui .login-dialog .buttons input[type=submit] {
        height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-ui .login-dialog .login-fields input,
    .login-ui .login-dialog .buttons input[type=submit] {
        transition: none;
    }
}

/* ============================================================
   Correcao de legibilidade dos campos de login
   ============================================================ */

.login-ui {
    color-scheme: light;
}

.login-ui .login-dialog .login-fields input {
    color: #0B1422 !important;
    -webkit-text-fill-color: #0B1422 !important;
    caret-color: #3E4095;
    text-shadow: none;
}

.login-ui .login-dialog .login-fields input:-webkit-autofill,
.login-ui .login-dialog .login-fields input:-webkit-autofill:hover,
.login-ui .login-dialog .login-fields input:-webkit-autofill:focus {
    -webkit-text-fill-color: #0B1422 !important;
    -webkit-box-shadow: 0 0 0 1000px #F8FAFC inset !important;
    box-shadow: 0 0 0 1000px #F8FAFC inset !important;
    caret-color: #3E4095;
    transition: background-color 9999s ease-out 0s;
}
/*
 * 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;

}
.totp-enroll p,.totp-details{font-size:.8em}.totp-qr-code{text-align:center}.totp-qr-code img{margin:1em;border:1px solid rgba(0,0,0,0.25);box-shadow:1px 1px 2px rgba(0,0,0,0.25);cursor:pointer}h3.totp-details-header{font-size:.8em}h3.totp-details-header::before{content:'▸ '}.totp-details-visible h3.totp-details-header::before{content:'▾ '}.totp-details,.totp-hide-details{display:none}.totp-details-visible .totp-details{display:table}.totp-details-visible .totp-hide-details{display:inline}.totp-details-visible .totp-show-details{display:none}.totp-hide-details,.totp-show-details{color:blue;text-decoration:underline;cursor:pointer;margin:0 .25em;font-weight:normal}.totp-details{margin:0 auto}.totp-details th{padding-right:.25em;text-align:left}.totp-details td{font-family:monospace}.totp-detail{display:inline-block;margin:0 .25em}