/* ===== Custom Guacamole Branding ===== */
#app {
    --app-favicon: url("images/favicon.png");
    --app-favicon: url("app/ext/custom-branding-1.6.0/images/favicon.png");
}
/* Login page background */
body.login-ui {
  background: linear-gradient(135deg, #004080, #0066cc);
  color: #fff;
}

/* Replace Guacamole logo */
.login-ui .login-dialog .logo {
    background-image: url('app/ext/custom-branding-1.6.0/images/guac-tricolor_new.svg') !important;
    /*background-image: url('images/guac-tricolor_new.svg') !important;
    /*background-image: url('app/ext/custom-branding-1.5.5/images/guac-tricolor_new.svg') !important;*/
  background-size: contain !important;
  /*height: 100px !important;*/
}
.login-ui .login-dialog .version .app-name{ font-size: 1em}

.list-item .caption{border: 1px solid #aaa;border-radius: 5px;margin-bottom: 5px;}
.filter .search-string{border-radius: 5px;}
/* Container list */
.page-list-level {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #ffffff;
    padding: 10px 0;
    font-family: "Inter", Arial, sans-serif;
}

/* Each menu item */
.page-list-level li {
    margin: 5px 0;
}

/* Link styling */
.page-list-level li a {
    display: block;
    padding: 12px 18px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s ease;
    font-weight: 500;
}

/* Hover effect */
.page-list-level li a:hover {
    background: #f3f4f6;
    color: #111;
}

/* Active (current) page */
.page-list-level li a.current {
    background: #0059b3;
    color: white !important;
    font-weight: 600;
    border-bottom: 4px solid #003d80;
    padding-bottom: 14px; /* compensate for border */
}

/* Change button color */
div.buttons, a.button, button, input[type=submit] {
  background-color: #0073e6 !important;
  border-radius: 8px;
}
.login-ui .login-dialog .buttons input[type=submit]
{
  background-color: #0073e6 !important;
  border-radius: 8px;
}

/* Example: change the top bar color */
.guac-toolbar {
  background-color: #004080 !important;
}

/* Hide the “Apache Guacamole” footer text */
.footer .branding {
  display: none !important;
}
/* Table container */
table:not(table.properties) {
    width: 100%;
    border-collapse: separate !important;    
    border-spacing: 0;
    border: 2px solid #aaa;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-family: "Inter", Arial, sans-serif;
}

/* Header styling */
table:not(table.properties) thead th {
    background: #f5f7fa;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    text-align: left;
    border-bottom: 1px solid #aaa !important;
    border-left: 1px solid #aaa !important;
    border-top: none !important;
    border-right:none !important;
    cursor: pointer;
}

table:not(table.properties) thead th.sortable:hover {
    background: #eef1f5;
}

/* Table rows */
table:not(table.properties) tbody tr {
    transition: background 0.25s ease;
}

table:not(table.properties) tbody tr:nth-child(even) {
    background: #fafbfc;
}

table:not(table.properties) tbody tr:hover {
    background: #f1f5ff;
}

/* Cell styling */
table:not(table.properties) td  {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
    border-bottom: 1px solid #aaa !important;
    border-left: 1px solid #aaa !important;
    border-right: none !important;
    border-top: none !important;
}

/* Last row no border */
table:not(table.properties) tbody tr:last-child td {
    border-bottom: none;
}

/* Username link */
table:not(table.properties) td.username a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #0059b3;
    font-weight: 600;
    gap: 8px;
}

/* Hover color */
table:not(table.properties) td.username a:hover {
    text-decoration: underline;
}

/* User icon */
.user-list .icon.user {
    width: 20px;
    height: 20px;
    background: #d0d7e2;
    border-radius: 50%;
}

/* Disabled users */
table:not(table.properties) tr.disabled {
    opacity: 0.55;
}

/* Loading state */
table.loading {
    opacity: 0.4;
    pointer-events: none;
}
/* ------------------------------- */
/* 🌙 DARK MODE SUPPORT            */
/* ------------------------------- */
@media (prefers-color-scheme: dark) {

    /* Global background + text */
    body, #app {
        background: #1e1f22 !important;
        color: #e5e5e5 !important;
    }

    /* Login page background */
    body.login-ui {
        background: linear-gradient(135deg, #001f3f, #003366) !important;
        color: #ffffff !important;
    }

    /* Top toolbar */
    .guac-toolbar {
        background-color: #0f1a2b !important;
        border-bottom: 1px solid #2a2f3a !important;
    }

    /* Sidebar navigation */
    .page-list-level {
        background: #22252a !important;
    }

    .page-list-level li a {
        color: #ddd !important;
        background: transparent !important;
    }

    .page-list-level li a:hover {
        background: #2d323b !important;
        color: #fff !important;
    }

    .page-list-level li a.current {
        background: #0066cc !important;
        border-bottom: 4px solid #004f99 !important;
        color: white !important;
    }

    /* Buttons */
    div.buttons, a.button, button, input[type=submit] {
        background-color: #005bbf !important;
        color: #fff !important;
        border: 1px solid #004a9c !important;
    }

    /* Tables */
    table:not(table.properties) {
        background: #2a2d33 !important;
        border: 1px solid #3a3f47 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.4) !important;
    }

    table:not(table.properties) thead th {
        background: #353941 !important;
        color: #ddd !important;
        border-bottom: 1px solid #444 !important;
        border-left: 1px solid #444 !important;
    }

    table:not(table.properties) tbody tr:nth-child(even) {
        background: #30343a !important;
    }

    table:not(table.properties) tbody tr:hover {
        background: #3a3f47 !important;
    }

    table:not(table.properties) td {
        color: #e5e5e5 !important;
        border-bottom: 1px solid #444 !important;
        border-left: 1px solid #444 !important;
    }

    /* Links inside table */
    table:not(table.properties) td.username a {
        color: #4ea8ff !important;
    }

    table:not(table.properties) td.username a:hover {
        color: #82c5ff !important;
    }

    /* Icons */
    .user-list .icon.user {
        background: #4b5361 !important;
    }

    /* Footer */
    .footer {
        background: transparent !important;
        color: #777 !important;
    }
    .list-item .name{color: white !important;}
    .connection .icon.rdp, .connection .icon.vnc{background-color: white !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;

}
