/* =======================================================
   THÈME DIGIGRAM - APACHE GUACAMOLE
   ======================================================= */

/* --- 1. GLOBAUX --- */
html, body, .guac-view, .login-ui {
    background: #407fb2 !important;
    background-attachment: fixed !important;
    color: #ffffff !important; 
}

/* --- 2. EN-TÊTES ET LOGOS --- */
.header {
    background-color: #2f6a99 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
}

h2::after, h2::before {
    content: none !important;
}

.header > h2::after {
    content: "" !important;
    display: inline-block !important;
    vertical-align: middle !important;
    background-image: url('/guacamole/app/ext/digigram-style/images/logo.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    width: 130px !important;
    height: 40px !important;
    margin-left: 20px !important;
    filter: none !important;
}

.related-objects .header, .attributes .header, .form-group .header,
.form-section .header, .form .header, .management .header,
.system-permissions .header, .connection-permissions .header,
.connection-group-permissions .header, .section .header {
    background-color: transparent !important;
    box-shadow: none !important;
}

.related-objects h2::after, .attributes h2::after, .form-group h2::after,
.form-section h2::after, .form h2::after, .management h2::after,
.system-permissions h2::after, .connection-permissions h2::after,
.connection-group-permissions h2::after, .section h2::after,
#section-header-all-connections::after {
    content: none !important;
    background-image: none !important;
}

/* --- 3. PAGE DE CONNEXION --- */
.login-ui .login-dialog {
    background-color: #ffffff !important;
    border-radius: 8px !important;
    color: #000000 !important;
}

.login-ui .logo {
    background-image: url('/guacamole/app/ext/digigram-style/images/logo.png') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    height: 80px !important;
    width: 100% !important;
    filter: none !important;
}

.login-ui .login-fields .buttons button {
    background-color: #ff993f !important;
    color: #ffffff !important;
}

/* --- 4. MENU DÉROULANT UTILISATEUR --- */
.header .user-menu .menu-title { 
    color: #000000 !important; /* Texte du bouton en noir */
}

.header .menu-dropdown .menu-contents { 
    background-color: #2f6a99 !important; /* Fond du menu en bleu */
    border: 1px solid #1a3a55 !important; 
}

.header .menu-dropdown .menu-contents a { 
    background-color: #ffffff !important; /* Lignes blanches */
    color: #000000 !important; /* Texte des liens en noir */
    margin: 1px 0 !important; 
    display: block !important;
}

.header .menu-dropdown .menu-contents a:hover, 
.header .menu-dropdown .menu-contents a.current { 
    background-color: #f9b76f !important; /* Survol orange */
    color: #000000 !important; 
}

/* --- 5. NAVIGATION ET LISTES (SURVOLS) --- */
.page-list a, .page-list .home.ng-binding, .navigation .menu-title, .name, .caption {
    color: #ffffff !important;
    text-decoration: none !important;
}

.connection:hover, .list-item:hover, table tr:hover td, .navigation li a:hover,
a.home:hover, .menu-contents .action-list li:hover, a.logout:hover, 
a.settings-connection:hover, a.home-connection:hover, .caption:hover, 
.list-item:hover .caption, .section-tabs a:hover {
    background-color: #f9b76f !important;
    color: #000000 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
}

.connection:hover *, .list-item:hover *, table tr:hover td *,
.menu-contents .action-list li:hover *, a.logout:hover *, 
a.settings-connection:hover *, a.home-connection:hover *,
.caption:hover *, .list-item:hover .caption *, .section-tabs a:hover * {
    color: #000000 !important;
}

/* --- 6. ICÔNES --- */
.icon, .menu-icon, .user-info .icon, .logout .icon, .settings .icon {
    filter: brightness(0) invert(1) !important;
}

.list-item:hover .icon, .navigation li a:hover .icon, a.home:hover .icon {
    filter: brightness(0) !important;
}

.header .menu-dropdown .icon {
    filter: brightness(0) !important; /* Icônes noires dans le menu déroulant */
}

/* --- 7. CROIX D'EXPANSION SVG (PLUS/MOINS) --- */
.icon.expand {
    background-color: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    filter: none !important; 
    width: 20px !important; 
    height: 20px !important;
    background-size: 20px 20px !important; 
    background-position: center !important; 
    background-repeat: no-repeat !important;
}

.icon.expand { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 2v12M2 8h12" stroke="white" stroke-width="2"/></svg>') !important; }
.expanded > .caption > .icon.expand { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2 8h12" stroke="white" stroke-width="2"/></svg>') !important; }
.list-item:hover > * > .caption > .icon.expand { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 2v12M2 8h12" stroke="black" stroke-width="2"/></svg>') !important; }
.list-item:hover > .expanded > .caption > .icon.expand { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2 8h12" stroke="black" stroke-width="2"/></svg>') !important; }

/* --- 8. BARRE DE RECHERCHE --- */
input.search-string::placeholder { color: #ffffff !important; opacity: 1 !important; }
input.search-string::-webkit-input-placeholder { color: #ffffff !important; opacity: 1 !important; }
input.search-string::-moz-placeholder { color: #ffffff !important; opacity: 1 !important; }

/* --- 9. CORRECTIFS FINAUX --- */

/* Forcer le placeholder du QuickConnect en blanc */
.quickconnect-field::placeholder { 
    color: #ffffff !important; 
    opacity: 1 !important; 
}
.quickconnect-field::-webkit-input-placeholder { 
    color: #ffffff !important; 
    opacity: 1 !important; 
}
.quickconnect-field::-moz-placeholder { 
    color: #ffffff !important; 
    opacity: 1 !important; 
}
.quickconnect-field:-ms-input-placeholder { 
    color: #ffffff !important; 
    opacity: 1 !important; 
}

/* Fond du menu latéral (votre 2ème screen) en bleu Digigram */
.menu-content {
    background-color: #2f6a99 !important;
}

/* Optionnel : Couleur du texte que vous tapez dans le QuickConnect (pour qu'il soit lisible sur le bleu) */
.quickconnect-field {
    color: #ffffff !important;
}
/*
 * 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;

}
.quickconnect-container{margin:.25em 0;width:100%;margin-left:.50em}.quickconnect-container .quickconnect-field{background-image:url('images/protocol-icons/guac-text.png');background-repeat:no-repeat;background-size:1.50em;background-position:.25em center;background-color:transparent;padding:.25em;padding-left:2.50em;width:100%;max-width:none;border:0;box-sizing:border-box}.quickconnect-button{clear:both;float:right;margin-right:.75em;font-size:.75em;padding:.25em}.quickconnect-list-item{vertical-align:middle;align-content:center;display:flex}.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}