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

}
/* ============================================
   Guacamole Wizard Overlay
   – Top banner panel matching production design
   ============================================ */

/* ── Panel (sits at top of screen) ────────── */
.wizard-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.7);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 20px 16px;
    box-sizing: border-box;
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform: translateY(0);
    opacity: 1;
}

.wizard-panel.collapsed {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.wizard-panel.hidden {
    display: none;
}

/* ── Collapse / expand toggle (↗ icon) ────── */
.wizard-collapse-btn {
    position: absolute;
    top: 10px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
    transition: opacity 0.2s;
}

.wizard-collapse-btn:hover {
    opacity: 1;
}

.wizard-collapse-btn svg {
    width: 20px;
    height: 20px;
}

/* Floating restore button (shown when collapsed) */
.wizard-restore-btn {
    position: fixed;
    top: 8px;
    right: 16px;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #bbb;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    padding: 8px 12px;
    transition: opacity 0.2s, background 0.2s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wizard-restore-btn.visible {
    display: flex;
}

.wizard-restore-btn:hover {
    background: #fff;
}

.wizard-restore-btn .restore-label {
    color: #111;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: none;
}

.wizard-restore-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Title ────────────────────────────────── */
.wizard-title {
    color: #111;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 0.2px;
}

/* ── Step instruction text ────────────────── */
.wizard-instruction {
    color: #111;
    text-align: center;
    font-size: 15px;
    line-height: 1.65;
    max-width: 620px;
    padding: 0 16px;
    margin-bottom: 14px;
}

.wizard-instruction b,
.wizard-instruction strong {
    font-weight: 700;
    color: #111;
}

.wizard-instruction .warning {
    color: #d32f2f;
    font-weight: 700;
}

.wizard-instruction .underline {
    text-decoration: underline;
}

/* ── Navigation bar ───────────────────────── */
.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 560px;
    padding: 0 8px;
}

/* Pagination dots */
.wizard-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wizard-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #222;
    transition: background 0.25s;
    cursor: pointer;
}

.wizard-dot.active {
    background: #222;
}

.wizard-dot:hover:not(.active) {
    background: rgba(0, 0, 0, 0.15);
}

/* Nav buttons (Back / Next) */
.wizard-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 2px;
    color: #111;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    transition: opacity 0.2s;
    min-width: 110px;
}

.wizard-nav-btn.backz {
    justify-content: center;
}

.wizard-nav-btn.next {
    justify-content: center;
}

.wizard-nav-btn:hover {
    opacity: 0.65;
}

.wizard-nav-btn svg {
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.wizard-nav-btn.invisible {
    visibility: hidden;
    pointer-events: none;
}

.wizard-nav-btn.disabled {
    opacity: 0.25;
    pointer-events: none;
}

/* ── Step image area ───────────────────────── */
.wizard-step-image {
    margin-top: 6px;
    margin-bottom: 10px;
    max-width: 520px;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    background: #1b2838;
}

.wizard-step-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Step transition ──────────────────────── */
.wizard-step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: wizardSlideIn 0.25s ease;
}

@keyframes wizardSlideIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 600px) {
    .wizard-panel {
        padding: 10px 10px 12px;
    }

    .wizard-instruction {
        font-size: 13px;
        padding: 0 8px;
    }

    .wizard-title {
        font-size: 15px;
    }

    .wizard-nav-btn {
        font-size: 14px;
        min-width: 80px;
    }

    .wizard-nav-btn svg {
        width: 28px;
        height: 16px;
    }

    .wizard-dot {
        width: 12px;
        height: 12px;
    }
}
