/* ============================
   Page Guide - Trigger Button
   ============================ */

.page-guide-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
    color: #075e2b;
    font-size: 18px;
    margin-left: 10px;
    vertical-align: middle;
    transition: background 0.2s;
}

.page-guide-trigger:hover {
    background: #e8f5e9;
}

/* ============================
   Page Guide - Click Catcher
   ============================ */

#pageGuideClickCatcher {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10004;
}

/* ============================
   Page Guide - Spotlight
   ============================ */

#pageGuideSpotlight {
    display: none;
    position: fixed;
    z-index: 10005;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* ============================
   Page Guide - Tooltip
   ============================ */

#pageGuideTooltip {
    display: none;
    position: fixed;
    z-index: 10006;
    width: 340px;
    max-width: 90vw;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    font-family: "Segoe UI", Arial, sans-serif;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.page-guide-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 8px;
}

.page-guide-tooltip-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.page-guide-tooltip-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}

.page-guide-tooltip-close:hover {
    color: #333;
}

.page-guide-tooltip-body {
    padding: 0 16px 12px;
    font-size: 13px;
    line-height: 1.55;
    color: #555;
}

.page-guide-tooltip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 14px;
    border-top: 1px solid #f0f0f0;
}

.page-guide-step-counter {
    font-size: 12px;
    color: #999;
}

.page-guide-nav {
    display: flex;
    gap: 8px;
}

.page-guide-btn {
    min-width: 70px;
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    outline: none;
}

.page-guide-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.page-guide-btn-secondary:hover {
    background: #e0e0e0;
}

.page-guide-btn-primary {
    background: #006a34;
    color: #fff;
}

.page-guide-btn-primary:hover {
    background: #075e2b;
}

/* ============================
   Page Guide - Arrow
   ============================ */

.page-guide-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.06);
}

.page-guide-arrow[data-position="bottom"] {
    top: -6px;
}

.page-guide-arrow[data-position="top"] {
    bottom: -6px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.06);
}

.page-guide-arrow[data-position="right"] {
    left: -6px;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.06);
}

.page-guide-arrow[data-position="left"] {
    right: -6px;
    box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.06);
}

/* ============================
   Page Guide - Responsive
   ============================ */

@media (max-width: 600px) {
    #pageGuideTooltip {
        width: 280px;
    }

    .page-guide-btn {
        min-width: 56px;
        padding: 6px 12px;
        font-size: 12px;
    }
}
