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

}
/* ManbiTech - new enterprise platform notice (old server, UI only) */
#mte, #mte * { box-sizing: border-box; }
#mte { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
/* login page: small card, login stays usable */
#mte.mte-login .mte-card { position: fixed; z-index: 2147482999; left: 3vw; top: 50%; transform: translateY(-50%); width: 380px; max-width: calc(100vw - 32px);
  padding: 24px 24px 22px; border-radius: 18px; background: #fff; color: #0b1f4d; border: 1px solid #dbe6f5;
  box-shadow: 0 1px 2px rgba(16,40,90,.05), 0 18px 48px rgba(16,40,90,.16); overflow: hidden; }
#mte .mte-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #1ec8ea, #0a66e8 55%, #0a3fb8); }
#mte .mte-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: #eaf3ff; color: #0a55dc; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
#mte .mte-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #12a36b; box-shadow: 0 0 0 0 rgba(18,163,107,.6); animation: mteDot 1.8s ease-out infinite; }
@keyframes mteDot { to { box-shadow: 0 0 0 7px rgba(18,163,107,0); } }
#mte h2 { margin: 12px 0 8px; font-size: 22px; line-height: 1.25; font-weight: 800; color: #0b1f4d; letter-spacing: -.2px; }
#mte h2 span { color: #0a66e8; }
#mte p { margin: 0 0 14px; font-size: 13.8px; line-height: 1.6; color: #475569; }
#mte .mte-url { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: #f4f8fe; border: 1px solid #e3ecf8; font-size: 15px; font-weight: 700; color: #0a55dc; }
#mte .mte-url svg { width: 18px; height: 18px; flex: 0 0 18px; color: #0a66e8; }
#mte .mte-pts { list-style: none; margin: 0 0 16px; padding: 0; }
#mte .mte-pts li { position: relative; padding-left: 24px; margin: 0 0 7px; font-size: 13.2px; color: #334155; }
#mte .mte-pts li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #e6f7ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312a36b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
#mte .mte-btn { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 12px; text-decoration: none !important; font-size: 15px; font-weight: 700;
  color: #fff !important; background: linear-gradient(90deg, #1ba6f6, #0c75ec 55%, #0a55dc); box-shadow: 0 10px 24px rgba(10,95,230,.30); transition: transform .15s, filter .2s; }
#mte .mte-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
#mte .mte-foot { margin-top: 12px; font-size: 12px; color: #64748b; text-align: center; }
#mte .mte-foot a { color: #0a55dc !important; font-weight: 600; }
@media (max-width: 1100px) {
  #mte.mte-login .mte-card { left: 50%; top: auto; bottom: 12px; transform: translateX(-50%); width: 560px; padding: 16px 18px; }
  #mte.mte-login .mte-pts, #mte.mte-login p { display: none; }
  #mte.mte-login h2 { font-size: 18px; margin: 8px 0 10px; }
  html.mte-on-login body { padding-bottom: 230px; }
}
/* sign-out page: full screen */
html.mte-on-out, html.mte-on-out body { overflow: hidden !important; }
html.mte-on-out body > *:not(#mte) { visibility: hidden !important; }
#mte.mte-out { position: fixed; inset: 0; z-index: 2147483000; overflow-y: auto; visibility: visible !important;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(30,200,234,.18), rgba(255,255,255,0) 70%), linear-gradient(160deg, #f5f9ff 0%, #eaf2fd 55%, #dfeafb 100%); }
#mte.mte-out .mte-fit { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
#mte.mte-out .mte-card { position: relative; width: 100%; max-width: 560px; padding: 34px 34px 28px; border-radius: 22px; background: #fff; border: 1px solid #dbe6f5;
  box-shadow: 0 30px 80px rgba(16,40,90,.16); overflow: hidden; text-align: center; opacity: 0; }
#mte.mte-out.ready .mte-card { opacity: 1; transition: opacity .15s; }
#mte.mte-out h2 { font-size: 28px; }
#mte.mte-out .mte-pts { display: inline-block; text-align: left; }
#mte .mte-ok { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e6f7ef, #d2f4e3); box-shadow: 0 0 0 8px rgba(18,163,107,.08); }
#mte .mte-ok svg { width: 30px; height: 30px; color: #12a36b; }
#mte .mte-cd { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 16px; font-size: 14px; color: #334155; }
#mte .mte-ring { position: relative; width: 52px; height: 52px; flex: 0 0 52px; }
#mte .mte-ring svg { width: 52px; height: 52px; transform: rotate(-90deg); }
#mte .mte-ring .bg { fill: none; stroke: #e3ecf8; stroke-width: 9; }
#mte .mte-ring .fg { fill: none; stroke: #0a66e8; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
#mte .mte-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #0a55dc; }
#mte .mte-stay { font-size: 12.5px; color: #64748b !important; text-decoration: underline; margin-left: 4px; }
#mte .mte-cd.off { opacity: .55; }
