/* ==========================================================================
   Colour codes preserved:
   - Guacamole grassy green: #88bf5b
   - Warning red: #ff2233
   - Main background charcoal: #3f3f3f
   - Input fields dark charcoal: #2b2b2b
   - Login dialog background black: #000000 (with opacity upgrades)
   - All text: #ececec
   ========================================================================== */

/* Modern typography enhancements */
@import url('https://googleapis.com');

/* General Style */
body {
    color: #ececec;
    background-color: #3f3f3f;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

pre {
    color: #ececec;
    background-color: #2b2b2b;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    padding: 10px;
}

a[href], a[href]:visited {
    color: #88bf5b;
    transition: color 0.15s ease;
    text-decoration: none;
    font-weight: 500;
}
a[href]:hover {
    filter: brightness(1.1);
    text-decoration: underline;
}

div.location,
input[type=text],
input[type=email],
input[type=number],
input[type=password],
textarea,
select {
    background-color: #2b2b2b !important;
    color: #ececec !important;
    border: 1px solid rgba(0, 0, 0, 0.4) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out !important;
}

/* Subtle focus glow for inputs */
input:focus, textarea:focus, select:focus {
    border-color: #88bf5b !important;
    box-shadow: 0 0 0 3px rgba(136, 191, 91, 0.2) !important;
    outline: none !important;
}


/* ==========================================================================
   Login Interface (Upgraded to Modern Box Style)
   ========================================================================== */
div.login-ui {
    color: #ececec;
    background-color: #3f3f3f;
}

/* Clean up input behaviors inside login framework */
.login-ui .login-fields .labeled-field {
    background-color: transparent !important;
    color: #ececec;
    margin-bottom: 12px;
}

.login-ui .login-fields .labeled-field input:focus {
    background-color: #2b2b2b !important;
    color: #ececec;
}

/* Updated Custom Logo Positioning */
.login-ui .login-dialog .logo {
    background-image: url('app/ext/custom-namespace/images/logo.png');
    width: 120px;
    height: 70px;
    background-size: contain !important;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto 1.5rem auto !important;
}

/* Frosted modern look for the login container - Now in an elevated mid-tone gray */
.login-ui .login-dialog {
    background-color: rgba(30, 30, 30, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Crisp subtle border to separate it from the background */
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important; /* Soft premium shadow */
    padding: 2.5em !important;
}


.login-ui .login-dialog .version .app-name {
    font-weight: 600;
    text-transform: none;
    text-align: center;
    font-size: 1.8em;
    color: #ececec;
    letter-spacing: -0.025em;
}

/* Modern Primary Button Accent Styling */
.login-ui .login-button, button:not(.danger) {
    background: #88bf5b !important;
    color: #1e1e1e !important; /* Dark text for perfect readability on green */
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
}
.login-ui .login-button:hover, button:not(.danger):hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(136, 191, 91, 0.2);
}


/* ==========================================================================
   Modals, Floating Panels & Popups
   ========================================================================== */
div.logged-out-modal .ng-scope {
    color: #ececec;
    background-color: #000000;
    border-radius: 12px;
}

div.logged-out-modal .ng-scope button {
    color: #ececec;
    background-color: #3f3f3f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

div.modal-contents, 
.logged-out-modal guac-modal {
    color: #ececec;
    background-color: #3f3f3f;
    border-radius: 12px !important;
}

/* System Messages & Notifications */
div.notification {
    color: #ececec;
    background-color: #2b2b2b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.notification.error,
.client-status-modal .notification.error,
.login-ui.error p.login-error,
.transfer.error {
    background-color: #ff2233 !important;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 500;
}

button.danger, 
.menu-dropdown .menu-contents li a.danger {
    background: #ff2233 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
}
button.danger:hover {
    filter: brightness(1.1);
}


/* ==========================================================================
   Home Dashboard & Dynamic Menus
   ========================================================================== */
/* Smooth List Hovers with rounded touchpoints */
.recent-connections .connection, 
.list-item, 
.menu-dropdown .menu-contents li a {
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

.recent-connections .connection:hover,
.menu-dropdown .menu-contents li a:hover,
.list-item:not(.selected) .caption:hover,
.settings table.session-list tr.session:hover,
#filesystem-menu .header.breadcrumbs .breadcrumb:hover,
#guac-menu #zoom-out:hover,
#guac-menu #zoom-in:hover,
.page-tabs .page-list li a[href]:hover,
.section-tabs li a:hover {
    background-color: rgba(136, 191, 91, 0.15) !important; /* Soft transparent green layer instead of glaring solid green */
    color: #88bf5b !important; /* Changes text to accent color instead */
    cursor: pointer;
}

/* For actual selections, keep the solid background color but round the container */
.list-item.selected {
    background: #88bf5b !important;
    color: #1e1e1e !important;
    border-radius: 6px;
}
.list-item.selected .name {
    color: #1e1e1e !important;
}

.list-item .name {
    color: #ececec;
}

.menu-dropdown .menu-contents {
    background-color: #2b2b2b;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    padding: 6px;
}
.menu-dropdown .menu-contents li a {
    color: #ececec;
    padding: 8px 12px;
}

.settings.connections .connection-list .new-sharing-profile {
    opacity: .6;
}

/* ==========================================================================
   Pop-out Sidebar Panels & Menus
   ========================================================================== */
.menu, .menu-panel {
    color: #ececec;
    background-color: rgba(63, 63, 63, 0.96) !important; /* Added clean transparency layer */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.clipboard,
.clipboard-service-target {
    background-color: #2b2b2b;
    color: #88bf5b;
    border-radius: 8px;
    padding: 10px;
}

#connection-warning {
    background-color: #3f3f3f;
    border-radius: 8px;
}

.transfer-manager {
    background-color: #2b2b2b;
    border-radius: 8px;
}


/* ==========================================================================
   Settings Views
   ========================================================================== */
.page-tabs .page-list li a[href],
.section-tabs li a {
    color: #ececec;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.location-chooser .dropdown {
    background-color: #2b2b2b;
    border-radius: 8px;
}

.settings.connectionHistory a.history-session-recording {
    color: #88bf5b;
}
.settings.connectionHistory a.history-session-recording:after {
    opacity: .0;
}

.user a, .user-group a, .connection a, .connection-group a {
    color: #ececec;
    transition: color 0.15s ease;
}
.user a:hover, .user-group a:hover, .connection a:hover, .connection-group a:hover {
    color: #88bf5b;
}

.manage-user .notice.read-only {
    color: #ececec;
    background-color: #2b2b2b;
    border-radius: 6px;
    padding: 8px;
}
/*
 * 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;

}
