/* Onboarding Tour Styles */
:root {
    --tour-bg: #0f172a;
    --tour-border: rgba(56, 189, 248, 0.3);
    --tour-primary: var(--primary, #3b82f6);
    --tour-text: #f1f5f9;
    --tour-text-muted: #94a3b8;
    /* Reduced opacity for less intrusive feel */
    --tour-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    --tour-z-index: 10000;
}

/* Highlighted Element */
.tour-highlight {
    position: relative;
    z-index: 10001 !important;
    box-shadow: 0 0 0 4px var(--tour-primary), var(--tour-shadow);
    border-radius: 8px;
    pointer-events: none;
    transition: all 0.4s ease;
    /* Smoother transition */
}

.tour-highlight-active {
    pointer-events: auto;
    cursor: pointer;
}

/* Tooltip Container */
.tour-tooltip {
    position: absolute;
    background: var(--tour-bg);
    border: 1px solid var(--tour-border);
    border-radius: 16px;
    padding: 24px;
    width: 340px;
    /* Slightly wider */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 10002;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--tour-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.tour-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tour-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tour-icon {
    width: 36px;
    height: 36px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    /* Rounded square modern look */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tour-primary);
    font-size: 20px;
}

.tour-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.tour-step-badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tour-text-muted);
}

.tour-close-btn {
    background: none;
    border: none;
    color: var(--tour-text-muted);
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.tour-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ef4444;
    /* Red on hover */
}

/* Content */
.tour-content {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.tour-content strong {
    color: white;
    font-weight: 600;
}

/* Footer & Actions */
.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separator */
}

.tour-btn {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tour-btn-prev {
    background: transparent;
    border: 1px solid transparent;
    color: var(--tour-text-muted);
}

.tour-btn-prev:hover {
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Styles for skip button (now simplified text) */
.tour-skip-text {
    font-size: 12px;
    color: var(--tour-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.7;
}

.tour-skip-text:hover {
    opacity: 1;
    color: white;
}

.tour-btn-next {
    background: var(--grad-magic, linear-gradient(135deg, #3b82f6, #06b6d4));
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.tour-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.tour-btn-finish {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Decoration */
.tour-arrow {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--tour-bg);
    border-left: 1px solid var(--tour-border);
    border-top: 1px solid var(--tour-border);
    transform: rotate(45deg);
    z-index: -1;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .tour-tooltip {
        width: 90%;
        left: 50% !important;
        transform: translate(-50%, 0);
        margin-top: 0;
        position: fixed;
        bottom: 30px;
        top: auto !important;
    }

    .tour-arrow {
        display: none;
    }
}