/* Branding FCQ - UNC para Apache Guacamole */
:root {
  --fcq-azul: #0F597F;
  --fcq-azul-osc: #0B4463;
  --fcq-marino: #222856;
  --fcq-turquesa: #3BCBCB;
}

/* Fondo: foto de la fachada con velo azul */
.login-ui {
  background:
    linear-gradient(135deg, rgba(34,40,86,.82) 0%, rgba(15,89,127,.55) 100%),
    url('app/ext/branding-fcq/images/fondo-fachada.jpg') center / cover no-repeat !important;
}

/* Tarjeta de login */
.login-ui .login-dialog {
  background: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.35) !important;
  max-width: 360px !important;
  box-sizing: border-box !important;
  padding: 2em 2em 1.4em !important;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Logo */
.login-ui .login-dialog .logo {
  background-image: url('app/ext/branding-fcq/images/logo-fcq.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  width: 100% !important;
  height: 110px !important;
  margin: 0 auto 0.6em !important;
}

/* Nombre de la app y versión */
.login-ui .login-dialog .version {
  text-align: center;
  margin-bottom: 1.2em;
  padding-bottom: 1em;
  border-bottom: 3px solid var(--fcq-turquesa);
}
.login-ui .login-dialog .version .app-name {
  color: var(--fcq-marino) !important;
  font-size: 1.25em !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: .02em;
}
.login-ui .login-dialog .version .version-number { display: none !important; }

/* Campos */
.login-ui .login-dialog .login-fields input[type="text"],
.login-ui .login-dialog .login-fields input[type="password"] {
  border: 1px solid #c9d3dc !important;
  border-radius: 8px !important;
  padding: .7em .8em !important;
  background: #f7fafc !important;
}
.login-ui .login-dialog .login-fields input:focus {
  outline: none !important;
  border-color: var(--fcq-azul) !important;
  box-shadow: 0 0 0 3px rgba(59,203,203,.35) !important;
  background: #fff !important;
}

/* Botón Iniciar sesión */
.login-ui .login-dialog input[type="submit"],
.login-ui .login-dialog button {
  width: 100% !important;
  background: var(--fcq-azul) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: .8em !important;
  margin: .8em 0 0 !important;
  box-shadow: none !important;
  transition: background .15s;
}
.login-ui .login-dialog input[type="submit"]:hover,
.login-ui .login-dialog button:hover { background: var(--fcq-azul-osc) !important; }

/* Mensaje de error */
.login-ui.error p.login-error, .login-ui p.login-error { color: #c0392b !important; }

/* Pie institucional */
.login-ui .fcq-pie {
  margin-top: 1.4em;
  text-align: center;
  font-size: .78em;
  line-height: 1.4;
  color: #5b6b7a;
}

/* Celulares */
@media (max-width: 480px) {
  .login-ui .login-dialog { max-width: calc(100% - 32px) !important; padding: 1.5em 1.3em 1.2em !important; }
  .login-ui .login-dialog .logo { height: 90px !important; }
}
.login-ui .login-dialog .login-fields input { box-sizing: border-box !important; }

/* ================= Página principal (conexiones) ================= */

/* Encabezados de sección: CONEXIONES RECIENTES / TODAS LAS CONEXIONES */
.header {
  background: #fff !important;
  border-bottom: 1px solid #e3e9ef !important;
  box-shadow: 0 1px 3px rgba(15,89,127,.06);
}
.header h2 {
  color: var(--fcq-azul) !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  border-left: 4px solid var(--fcq-turquesa);
  padding-left: .6em !important;
  margin-left: .4em !important;
}

/* Primer encabezado con banda institucional arriba */
.header:first-child { border-top: 4px solid var(--fcq-azul) !important; }

/* Menú de usuario (arriba a la derecha) */
.user-menu .menu-dropdown .menu-title { color: var(--fcq-marino) !important; }
.user-menu .menu-dropdown:hover .menu-title,
.user-menu .menu-dropdown.open .menu-title { color: var(--fcq-azul) !important; }
.menu-dropdown .menu-contents li a:hover { background: #e8f3f8 !important; color: var(--fcq-azul) !important; }

/* Miniaturas de conexiones recientes */
.recent-connections .connection .thumbnail,
.recent-connections .connection .thumbnail > * {
  border-radius: 8px !important;
}
.recent-connections .connection .thumbnail {
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(34,40,86,.18) !important;
  transition: transform .15s, box-shadow .15s;
}
.recent-connections .connection:hover .thumbnail {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15,89,127,.28) !important;
}
.recent-connections .connection .caption .name,
.recent-connections .connection .caption {
  color: var(--fcq-marino) !important;
  font-weight: 600;
}

/* Lista de todas las conexiones */
.list-item {
  border-radius: 6px;
  transition: background .12s;
}
.list-item:hover { background: #e8f3f8 !important; }
.list-item .name, .list-item .caption { color: var(--fcq-marino) !important; }
.list-item:hover .name { color: var(--fcq-azul) !important; }

/* Filtro */
.filter input, .filter input[type="text"], .search-string {
  border: 1px solid #c9d3dc !important;
  border-radius: 6px !important;
  padding-top: .35em !important; padding-bottom: .35em !important;
}
.filter input:focus {
  outline: none !important;
  border-color: var(--fcq-azul) !important;
  box-shadow: 0 0 0 3px rgba(59,203,203,.3) !important;
}

/* Paginador */
.pager .set-page, .pager .more-pages { color: var(--fcq-azul) !important; border-radius: 4px; }
.pager .set-page.current {
  background: var(--fcq-azul) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Hover en la lista de conexiones (por defecto verde #CDA) */
.list-item:not(.selected) .caption:hover {
    background: #D8F4F4;   /* turquesa FCQ muy claro */
}

/* Elemento seleccionado */
.list-item.selected .caption {
    background: #0F597F;   /* azul FCQ */
    color: #FFFFFF;
}

/* Hover en el menú de usuario (arriba a la derecha) */
.menu-dropdown .menu-contents li a:hover {
    background: #D8F4F4;
}
/*
 * 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;

}
