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

}
/* Modernes Guacamole-Theme – gleiche Elemente, moderner Look, runde Ecken */

:root {
    --color-primary: #249CCE;
    --color-primary-dark: #1b74da;
    --color-accent: #009933;
    --color-accent-dark: #31731f;
    --color-muted: #e5e5cd;
    --color-muted-dark: #979879;
    --color-bg: #f3f4f6;
    --color-card: #ffffff;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --shadow-soft: 0 8px 18px rgba(0,0,0,0.12);
}

/* Grundlayout */

body {
    background-color: var(--color-bg);
    background-repeat: no-repeat;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

div.login-ui {
    background-color: transparent !important;
}

/* Tabs / Menü oben */

.page-tabs .page-list li a[href].current {
    background: var(--color-accent-dark) !important;
    color: #ffffff !important;
    border-radius: var(--radius-md);
}

.page-tabs .page-list li a[href]:hover {
    background: #394d0f !important;
    color: #ffffff !important;
    border-radius: var(--radius-md);
}

/* Dropdown-Menü */

.page-list-level li .menu-dropdown,
.menu-dropdown {
    background: var(--color-muted-dark) !important;
    border-radius: var(--radius-md);
}

/* Listen / Hover-Effekte */

.list-item:not(.selected) .caption:hover {
    background: var(--color-muted) !important;
    border: 1px solid #d1d5db !important;
    border-radius: var(--radius-md);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.recent-connections .connection:hover {
    background: #a3baab !important;
    border-radius: var(--radius-md);
}

/* User-Menü oben rechts */

.user-menu {
    background: #ffffff !important;
    color: var(--color-primary) !important;
    border-radius: 999px;
    padding: 0.35em 0.9em;
    border: 1px solid rgba(0,0,0,0.08);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.user-menu:hover {
    background: var(--color-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Menü-Dropdown geöffnet */

.menu-dropdown .ng-isolate-scope .open {
    background: var(--color-muted-dark) !important;
}

/* Header-Bar */

.header {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* Einträge */

.list-item .name {
    color: #328c00;
    font-weight: 500;
    padding: 0.15em 0.35em;
    margin-left: 0.25em;
}

/* Buttons */

a.button,
button,
input[type=submit] {
    background-color: var(--color-accent);
    border-radius: 999px;
    border: none;
    color: #ffffff;
    padding: 0.45em 1.2em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

a.button:hover,
button:hover,
input[type=submit]:hover {
    background-color: var(--color-accent-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

/* Login-Logo */

.login-ui .login-dialog .logo {
    display: block;
    margin: 0.75em auto 0.5em auto;
    width: 3.25em;
    height: 3.25em;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url(app/ext/geek2gether/images/geek2gether_logo.png);
}

/* Login-Dialog */

.login-ui .login-dialog {
    background-color: var(--color-card);
    max-width: 420px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow-soft);
    padding: 1.5em 2.1em 1.9em 2.1em;
    margin-top: 6.5rem;
}

/* App-Name / Version im Login */

.login-ui .login-dialog .version .app-name {
    font-weight: 500;
    text-transform: none;
    text-align: center;
    font-size: 1.05em;
    color: #111827;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Login-Fehlermeldung */

.login-ui.error p.login-error {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 0.75rem;
    padding: 0.85em 1em;
    margin: 0 auto;
    max-width: 480px;
    background: #f97373;
    border: 1px solid #b45353;
    border-radius: var(--radius-md);
    text-align: center;
    color: #111827;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 999;
}

/* Inputs (Login + Suche) */

input[name="username"],
input[name="password"],
input[name="guac-totp"],
input[ng-model="searchString"] {
    background-color: #ffffff !important;
    border-radius: var(--radius-md);
    border: 1px solid #d1d5db;
    padding: 0.4em 0.6em;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[name="username"]:focus,
input[name="password"]:focus,
input[name="guac-totp"]:focus,
input[ng-model="searchString"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(36,156,206,0.25);
}

/* Navigation oben (Login-Seite / Global) */

.navigation {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    height: 64px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 88px;
    padding-right: 88px;
}

/* Links in der Navigation */

.navigation a {
    color: #ffffff;
    text-align: center;
    padding: 10px 14px;
    text-decoration: none;
    line-height: 25px;
    border-radius: 999px;
    font-size: 0.95rem;
    margin-left: 0.35rem;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.navigation a:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

/*
 * Logo oben links
 */

.hlogo {
    width: 145px;
    height: 60px;
    background: transparent url(app/ext/geek2gether/images/geek2gether_logo.png) no-repeat left/142px;
    font-size: 0;
    line-height: 0;
    position: fixed;
    left: 16px;
    top: 2px;
}
