/* Onboarding (Tutorial) Styles */

/* Overlay to dim background */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Let clicks pass through initially */
}

.onboarding-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Container for the active step tooltip */
.onboarding-tooltip {
    position: absolute;
    background: var(--surface-light, #fff);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 300px;
    max-width: 90vw;
    z-index: 9002;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--primary-light, #3498DB);
}

.onboarding-tooltip::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--surface-light, #fff);
    border-left: 1px solid var(--primary-light, #3498DB);
    border-top: 1px solid var(--primary-light, #3498DB);
    transform: rotate(45deg);
    z-index: -1;
}

/* Arrow positioning classes */
.onboarding-tooltip.arrow-bottom::before {
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(225deg);
}
.onboarding-tooltip.arrow-top::before {
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}
.onboarding-tooltip.arrow-left::before {
    left: -7px;
    top: 20px;
    transform: rotate(-45deg);
}
.onboarding-tooltip.arrow-right::before {
    right: -7px;
    top: 20px;
    transform: rotate(135deg);
}

.onboarding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.onboarding-title {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-dark, #2C3E50);
}

.onboarding-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: var(--text-light, #95a5a6);
    padding: 0;
    line-height: 1;
}

.onboarding-content {
    color: var(--text-dark, #333);
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.95em;
}

.onboarding-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.onboarding-dots {
    display: flex;
    gap: 5px;
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color, #e0e0e0);
    transition: background 0.3s;
}

.onboarding-dot.active {
    background: var(--primary-light, #3498DB);
}

.onboarding-next-btn {
    background: var(--primary-light, #3498DB);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.onboarding-next-btn:hover {
    background: var(--primary-dark, #2980b9);
}

/* Highlighting elements */
.onboarding-highlighted {
    position: relative;
    z-index: 9001 !important;
    pointer-events: none; /* Prevent interaction during tutorial unless specificially allowed */
    box-shadow: 0 0 0 4px var(--primary-light, #3498DB), 0 0 0 5000px rgba(0,0,0,0.7);
    border-radius: 8px;
    background: var(--surface-light, #fff); /* Ensure background is opaque */
    transition: box-shadow 0.3s ease;
}

/* For circular elements like Panda */
.onboarding-highlighted.circle-highlight {
    border-radius: 50%;
}
