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

}
/* --- 1. GLOBAL UI (The Foundation) --- */
html, body, .login-ui, .view, .logout-ui, .guac-viewport {
    background-color: #050505 !important;
    color: #ffffff !important;
    min-height: 100vh !important;
}

/* --- 2. THE PERFECT LOGIN PAGE (SHRUNK TO ORIGINAL SIZE) --- */
.login-ui {
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%) !important;
}

.login-ui .login-dialog {
    background-color: #111111 !important;
    border: 1px solid #4a90e2 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9) !important;
    padding: 25px !important; /* Slightly tighter padding */
    width: 380px !important;
}

.login-ui .login-dialog .logo {
    background-image: url('app/ext/moria-theme/logo-64.png') !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    height: 200px !important; 
    width: 100% !important;
    display: block !important;
    margin-bottom: 15px !important;
}

/* Shrinking the Input Fonts back to original size */
.login-ui .login-fields input {
    background-color: #000000 !important;
    color: #a0c4ff !important; /* The Mithril Blue you liked */
    border: 1px solid #333 !important;
    padding: 8px !important; /* Original compact padding */
    font-size: 0.9em !important; /* Original small font size */
    font-weight: normal !important;
}

/* --- 3. THE "NAZGUL" DASHBOARD VISIBILITY --- */
.view .group-name, .view .connection-group .caption {
    color: #FFD700 !important; /* Gold */
    font-size: 1.4em !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    text-shadow: 2px 2px 4px #000 !important;
    padding: 20px 0 10px 5px !important;
}

.view .connection-name, .view .connection .caption {
    color: #ffffff !important; 
    font-weight: 700 !important;
}

/* --- 4. SETTINGS & COLUMNS (THE CRITICAL FIX) --- */
/* This targets: Active Sessions, History, Users, Groups, Connections, Preferences */

/* 1. Sidebar Links (The Left Menu) */
.navigation .menu-item, 
.navigation a, 
.settings .menu-item, 
.settings a {
    color: #a0c4ff !important; /* Force Mithril Blue on menu items */
    font-weight: bold !important;
    font-size: 1.1em !important;
}

/* 2. Table Headers (Usernames, Protocols, etc.) */
.settings th, 
.view th, 
.header .breadcrumbs span, 
.header .breadcrumbs a {
    color: #FFD700 !important; /* Gold for Column Headers to separate from data */
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

/* 3. Username Column & Cell Data */
.settings td, 
.settings .name, 
.settings .username, 
.list-item .name {
    color: #ffffff !important; /* Bright White for actual data */
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px #000 !important;
}

/* 4. Hover Highlight (So you can see what is selected) */
.list-item:hover, .menu-item:hover {
    background-color: rgba(160, 196, 255, 0.2) !important;
}

/* --- 5. HEADER BAR --- */
.header {
    background-color: #000000 !important;
    border-bottom: 2px solid #4a90e2 !important;
}

.version { display: none !important; }
