/* Modern Blue/Teal Theme */

:root {
  --primary-color: #00796b;
  --secondary-color: #0288d1;
  --accent-color: #00acc1;
  --light-bg: #e0f2f1;
  --lighter-bg: #f8fffe;
  --dark-text: #004d40;
  --shadow: rgba(0, 121, 107, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body{
  animation: fadeIn 0.6s ease-out;
  background: linear-gradient(135deg, var(--lighter-bg), var(--light-bg));
  background-repeat: no-repeat;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
div.login-ui{
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow);
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.page-tabs .page-list li a[href].current{
    background: var(--secondary-color) !important;
    color: #FFFFFF !important;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow);
    transition: all 0.3s ease;
}
/* menu page settings */
.page-tabs .page-list li a[href]:hover{
    background: var(--primary-color) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow);
    transition: all 0.3s ease;
}
.page-list-level li
.menu-dropdown{
    background: var(--light-bg) !important;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow);
}

.list-item:not(.selected) .caption:hover{
    background: var(--light-bg) !important;
    border:solid 1px var(--accent-color) !important;
    border-radius: 6px;
    transform: scale(1.02);
    box-shadow: 0 2px 4px var(--shadow);
    transition: all 0.3s ease;
}

.recent-connections .connection:hover {
    background: var(--light-bg) !important;
    border-radius: 6px;
    transform: translateX(5px);
    box-shadow: 0 2px 4px var(--shadow);
    transition: all 0.3s ease;
}
.user-menu{
    background: #fff !important;
    color: #000000 !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.user-menu:hover{
    background: var(--accent-color) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
    transition: all 0.3s ease;
}
.menu-dropdown .ng-isolate-scope .open{
    background: var(--light-bg) !important;
    border-radius: 6px;
    box-shadow: inset 0 2px 4px var(--shadow);
}

.header {
    background: linear-gradient(135deg, var(--light-bg), var(--accent-color)) !important;
    color: var(--dark-text) !important;
    box-shadow: 0 6px 12px var(--shadow);
    border-radius: 0 0 12px 12px;
}

.list-item .name {
    color: var(--dark-text);
    font-weight: 500;
    padding: 0.1em;
    margin-left: 0.25em;
}

a.button, button, input[type=submit] {
    background-color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow);
    cursor: pointer;
}
a.button:hover, button:hover, input[type=submit]:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px var(--shadow);
}

.login-ui .login-dialog .logo {
    display: block;
    margin: 0.5em auto;
    width: 3em;
    height: 3em;
    background-size: 3em 3em;
    -moz-background-size: 3em 3em;
    -webkit-background-size: 3em 3em;
    -khtml-background-size: 3em 3em;
    background-image: url(app/ext/digides/images/digides.png);
}

.login-ui .login-dialog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    background: var(--lighter-bg) url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') right center / 50% 100% no-repeat;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 0 2rem 10%;
}

.login-ui .login-dialog .version .app-name {
    font-weight: 300;
    text-transform: none;
    text-align: center;
    font-size: 1.05em;
    color: var(--dark-text);
    font-family: Arial, Helvetica, sans-serif;
}

/* Modern Split Login Form */
.login-ui .login-dialog form {
    width: 35%;
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 20px 40px var(--shadow);
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.login-ui .login-dialog .logo {
    margin-bottom: auto;
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.login-ui .login-dialog .version {
    margin-top: auto;
    animation: fadeIn 0.6s ease-out 0.7s both;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-ui .login-dialog {
    background: var(--lighter-bg) url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center center / cover no-repeat;
  }

  .login-ui .login-dialog form {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    padding: 1.5rem;
  }

  .login-ui .login-dialog .logo,
  .login-ui .login-dialog .version {
    display: none;
  }
}

/* login page error */

.login-ui.error p.login-error {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    padding: 1em;
    margin: 0.2em;
    background: #f14141;
    border: 1px solid #9d5b5b;
    -moz-border-radius: .25em;
    -webkit-border-radius: 0.25em;
    -khtml-border-radius: .25em;
    text-align: center;
    color: #000;
}

input[name="username"],input[name="password"],input[name="guac-totp"],input[ng-model="searchString"]{
    background-color: #fff !important;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[name="username"]:focus,input[name="password"]:focus,input[name="guac-totp"]:focus,input[ng-model="searchString"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.1);
    outline: none;
    transform: translateY(-2px);
}

/* the login page header called "navigation" */

.navigation {
    background: linear-gradient(135deg, var(--light-bg), var(--lighter-bg)) !important;
    color: var(--dark-text) !important;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 8px var(--shadow);
}

.navigation a:hover {
  background-color: var(--accent-color);
  color: white;
  border-radius: 8px;
  transform: scale(1.05);
  box-shadow: 0 2px 4px var(--shadow);
  transition: all 0.3s ease;
}

.navigation a {
  float: left;
  color: var(--dark-text);
  text-align: center;
  padding: 12px;
  text-decoration: none;
  line-height: 25px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: inherit;
    max-width: unset;
    float: right;
}

.navigation{
    padding-left: 88px;
    padding-right: 88px;
}

.navigation {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    height: 64px;
    background: linear-gradient(135deg, var(--light-bg), var(--lighter-bg));
    box-shadow: 0 6px 12px var(--shadow);
    border-bottom: 1px solid var(--accent-color);
}

/*
  * Add logo on the upper left
  */
.hlogo {
    width: 60px;
    height: 60px;
    background: transparent url(app/ext/digides/images/digides.png) no-repeat left/60px;
    font-size: 0;
    line-height: 0;
}

/* footer style */
.footer {
    background: linear-gradient(135deg, var(--light-bg), var(--lighter-bg)) !important;
    color: var(--dark-text) !important;
    box-shadow: 0 -6px 12px var(--shadow);
    border-radius: 16px 16px 0 0;
    margin-top: 2rem;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
}

.footer-right a {
    margin-left: 1rem;
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: var(--accent-color);
}/*
 * 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;

}
