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

.login-ui .sso-providers {

    padding: 0.25em 0.5em;
    position: absolute;
    bottom: 0;
    left: 0;

}

.sso-providers ul {
    list-style: none;
}

.sso-providers ul, .sso-providers li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.sso-providers li::before {
    content: ' / ';
}

.sso-providers li:first-child::before {
    display: none;
}
/*
 * 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;

}

/* SENAR ACCESS V3 - GUACAMOLE 1.6.0 */

body,
.home-view {
    background: #f3f6f5 !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
}

/* Cabecalhos */
.home-view .header {
    background: #174b3b !important;
    color: #fff !important;
    padding: 14px 22px !important;
    box-sizing: border-box;
}

.home-view .header h2 {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: .2px;
}

/* Area de conexoes */
.home-view .all-connections {
    margin: 20px !important;
    padding: 0 !important;
}

/* Cartoes: seletor real do Guacamole */
.home-view .all-connections a.home-connection {
    display: inline-flex !important;
    vertical-align: top;
    align-items: center;
    gap: 15px;
    width: 250px;
    max-width: calc(100% - 28px);
    min-height: 85px;
    padding: 20px !important;
    margin: 9px !important;
    box-sizing: border-box;
    background: #fff !important;
    color: #263d33 !important;
    border: 1px solid #dde8e1 !important;
    border-left: 5px solid #248451 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(20,60,40,.08);
    text-decoration: none !important;
    transition: background .2s, box-shadow .2s,
                transform .2s;
}

/* Hover dos cartoes */
.home-view .all-connections a.home-connection:hover,
.home-view .all-connections a.home-connection:focus {
    background: #eaf6ee !important;
    box-shadow: 0 8px 22px rgba(20,60,40,.16);
    transform: translateY(-3px);
}

/* Nome da conexao */
.home-view .all-connections a.home-connection .name {
    color: #263d33 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Icones */
.home-view .all-connections a.home-connection .icon {
    flex-shrink: 0;
}

/* Area de conexoes recentes */
.home-view .recent-connections {
    background: #f3f6f5;
    border-radius: 10px;
}

/* Filtro */
.home-view .header input {
    border-radius: 7px;
}

/* Adaptacao mobile */
@media (max-width: 650px) {
    .home-view .all-connections {
        margin: 12px !important;
    }

    .home-view .all-connections a.home-connection {
        width: calc(100% - 18px);
    }
}



/* SENAR ACCESS V4 - HORIZONTAL E RODAPE */

/* Conexoes organizadas em linha */
.home-view .all-connections guac-group-list
    :has(> a.home-connection) {
    display: inline-block !important;
    width: auto !important;
    max-width: 100%;
    vertical-align: top !important;
}

/* Container intermediario de conexoes */
.home-view .all-connections guac-group-list
    :has(> :has(> a.home-connection)) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 16px !important;
}

/* Distribuicao dos cartoes */
.home-view .all-connections a.home-connection {
    display: inline-flex !important;
    align-items: center !important;
    width: 260px !important;
    min-height: 100px !important;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Area principal */
.home-view {
    min-height: 100vh;
    box-sizing: border-box;
    padding-bottom: 90px;
}

/* Rodape institucional */
.home-view::after {
    content: "SENAR RONDÔNIA  |  Acesso restrito a usuários autorizados. As atividades poderão ser registradas para fins de segurança.";
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 52px;
    padding: 12px 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #174b3b;
    color: #ffffff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .2px;
    z-index: 20;
    box-shadow: 0 -2px 10px rgba(0,0,0,.08);
}

/* Responsividade */
@media (max-width: 700px) {
    .home-view .all-connections
        a.home-connection {
        width: min(260px, 100%) !important;
    }

    .home-view::after {
        font-size: 10px;
        padding: 10px 12px;
    }
}
