/* ================================================================
   SafeStorage Cloud Services - Custom Theme for Apache Guacamole
   Paleta: Azul profesional (#1B4F99) para servicios de seguridad
   ================================================================ */

/* --- Fondo global --- */
body {
    background: #EEF4FC;
}

/* ----------------------------------------------------------------
   BOTONES
   ---------------------------------------------------------------- */
input[type="submit"], button, a.button {
    background-color: #1B4F99;
    border: 1px solid rgba(0, 0, 0, 0.3);
}
input[type="submit"]:hover, button:hover, a.button:hover {
    background-color: #2462B8;
}
input[type="submit"]:active, button:active, a.button:active {
    background-color: #133D7A;
    box-shadow:
        inset 1px 1px 0.25em rgba(0,0,0,0.25),
        -1px -1px 0.25em rgba(0,0,0,0.15),
        1px 1px 0.25em rgba(255,255,255,0.1);
}
input[type="submit"]:disabled, button:disabled {
    background-color: #7BA3D0;
}
button.danger, a.button.danger {
    background: #C62828;
}
button.danger:hover, a.button.danger:hover {
    background: #E53935;
}
button.danger:active, a.button.danger:active {
    background: #B71C1C;
}

/* ----------------------------------------------------------------
   ITEMS DE LISTA - reemplazar verde por azul
   ---------------------------------------------------------------- */
.list-item.selected {
    background: #C8DEFF;
}
.list-item:not(.selected) .caption:hover {
    background: #D9E9FF;
}

/* ----------------------------------------------------------------
   MENÚ DESPLEGABLE DE NAVEGACIÓN
   ---------------------------------------------------------------- */
.menu-dropdown .menu-contents {
    background: #F5F9FF;
    border-left: 1px solid rgba(27, 79, 153, 0.2);
    border-bottom: 1px solid rgba(27, 79, 153, 0.2);
}
.menu-dropdown .menu-contents li a:hover {
    background-color: #D9E9FF;
    color: #0D2B5E;
}
.menu-dropdown .menu-contents li a.danger {
    background-color: #C62828;
}
.menu-dropdown .menu-contents li a.danger:hover {
    background-color: #E53935;
}
.menu-dropdown.open,
.menu-dropdown.open:hover {
    background: rgba(13, 43, 94, 0.35);
}

/* ----------------------------------------------------------------
   CABECERA / HEADER
   ---------------------------------------------------------------- */
.header {
    background: #1B4F99;
    color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
h1 {
    color: white;
}
.header h2 {
    color: white;
}
.header .filter input {
    background: rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    border-radius: 0;
}
.header .filter input::-webkit-input-placeholder { color: rgba(255,255,255,0.55); }
.header .filter input::-moz-placeholder           { color: rgba(255,255,255,0.55); }
.header .filter input:-ms-input-placeholder       { color: rgba(255,255,255,0.55); }

/* ----------------------------------------------------------------
   ÍCONOS CLAROS EN CABECERA (logout, config, etc.)
   ---------------------------------------------------------------- */
.header .button.logout::before,
.header button.logout::before {
    filter: brightness(0) invert(1);
}

/* ----------------------------------------------------------------
   ÁRBOL DE CONEXIONES - conectores de línea
   ---------------------------------------------------------------- */
.expandable.expanded > .children > .list-item:before,
.expandable.expanded > .children > .list-item:after {
    border-color: #88B4E0;
}

/* ----------------------------------------------------------------
   INPUT FOCO - highlight azul
   ---------------------------------------------------------------- */
input[type=text]:focus,
input[type=email]:focus,
input[type=number]:focus,
input[type=password]:focus,
textarea:focus {
    outline: none;
    border-color: #1B4F99;
    box-shadow: 0 0 0 2px rgba(27, 79, 153, 0.2);
}

/* ----------------------------------------------------------------
   PANEL DE LOGIN - fondo degradado azul
   ---------------------------------------------------------------- */
div.login-ui {
    background: linear-gradient(145deg, #0A1F4A 0%, #1B4F99 55%, #2E7DD4 100%);
}

.login-ui .login-dialog {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    padding: 2em 2.2em;
}

/* ----------------------------------------------------------------
   LOGO EN LOGIN - reemplazar guac-tricolor con SafeStorage
   ---------------------------------------------------------------- */
.login-ui .login-dialog .logo {
    background-image: url("images/safestorage-logo.svg") !important;
    width: 4em !important;
    height: 4em !important;
    background-size: 4em 4em !important;
    -moz-background-size: 4em 4em !important;
    -webkit-background-size: 4em 4em !important;
}

/* ----------------------------------------------------------------
   NOMBRE DE APP Y SUBTÍTULO "CLOUD SERVICES"
   ---------------------------------------------------------------- */
.login-ui .login-dialog .version .app-name {
    color: #0D2B5E;
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* Reemplaza el badge de versión por un subtítulo elegante */
.login-ui .login-dialog .version .version-number {
    position: static;
    display: block;
    background: none;
    color: #5A8ABF;
    font-size: 0.72em;
    font-style: normal;
    font-weight: normal;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    opacity: 1;
    padding: 0.2em 0 0 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

/* ----------------------------------------------------------------
   ERROR DE LOGIN
   ---------------------------------------------------------------- */
.login-ui.error p.login-error {
    background: #FFF0F0;
    border: 1px solid #C62828;
    color: #C62828;
}

/* ----------------------------------------------------------------
   TEXTO "CLOUD SERVICES" DEBAJO DEL LOGIN
   ---------------------------------------------------------------- */
.cloud-services-text {
    text-align: center;
    color: #7A9EC8;
    font-size: 0.68em;
    font-family: Carlito, FreeSans, Helvetica, Arial, sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 1.4em;
    padding-top: 0.9em;
    border-top: 1px solid #E0EAF5;
}

/* ----------------------------------------------------------------
   CONEXIONES RECIENTES EN HOME
   ---------------------------------------------------------------- */
div.recent-connections div.connection {
    background: #EEF4FC;
    border: 1px solid #C8DEFF;
}

/* ----------------------------------------------------------------
   BARRA LATERAL DE CLIENTE
   ---------------------------------------------------------------- */
.client-panel {
    background: #0D2B5E;
    color: white;
}
