/* ==============================================
   ERP ONBOARDING TOUR - First Login Experience
   ============================================== */

/* Overlay */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: all;
    transition: opacity 0.4s ease;
}

.tour-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Backdrop with hole */
.tour-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 10001;
    transition: all 0.4s ease;
}

/* Spotlight hole - uses box-shadow trick */
.tour-spotlight {
    position: fixed;
    border-radius: 12px;
    z-index: 10002;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.tour-spotlight::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(107, 91, 149, 0.6);
    border-radius: 14px;
    animation: tour-pulse 2s infinite;
}

@keyframes tour-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.02); }
}

/* Tooltip */
.tour-tooltip {
    position: fixed;
    z-index: 10003;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: tour-tooltip-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: all;
}

@keyframes tour-tooltip-in {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tour-tooltip-header {
    background: linear-gradient(135deg, #6B5B95 0%, #8E7CC3 100%);
    color: white;
    padding: 20px 24px 16px;
}

.tour-tooltip-step {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
    margin-bottom: 6px;
    font-weight: 600;
}

.tour-tooltip-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.tour-tooltip-body {
    padding: 20px 24px;
}

.tour-tooltip-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

.tour-tooltip-footer {
    padding: 12px 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Progress dots */
.tour-progress {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tour-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.tour-progress-dot.active {
    background: #6B5B95;
    width: 24px;
    border-radius: 4px;
}

.tour-progress-dot.completed {
    background: #10b981;
}

/* Buttons */
.tour-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.tour-btn-skip {
    background: transparent;
    color: #94a3b8;
}

.tour-btn-skip:hover {
    color: #64748b;
}

.tour-btn-next {
    background: linear-gradient(135deg, #6B5B95 0%, #8E7CC3 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 91, 149, 0.3);
}

.tour-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(107, 91, 149, 0.4);
}

.tour-btn-prev {
    background: #f1f5f9;
    color: #475569;
}

.tour-btn-prev:hover {
    background: #e2e8f0;
}

.tour-btn-finish {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.tour-btn-finish:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* Arrow indicator */
.tour-arrow {
    position: fixed;
    z-index: 10003;
    pointer-events: none;
}

.tour-arrow svg {
    width: 60px;
    height: 40px;
    animation: tour-arrow-bounce 1.5s infinite;
}

.tour-arrow.arrow-down svg {
    animation: tour-arrow-bounce-down 1.5s infinite;
}

@keyframes tour-arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes tour-arrow-bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Welcome screen */
.tour-welcome {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10005;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tour-fade-in 0.5s ease;
}

@keyframes tour-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tour-welcome-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    max-width: 520px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: tour-welcome-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tour-welcome-in {
    from { opacity: 0; transform: scale(0.9) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.tour-welcome-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6B5B95 0%, #8E7CC3 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 32px rgba(107, 91, 149, 0.3);
}

.tour-welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.tour-welcome-text {
    font-size: 15px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 32px;
}

.tour-welcome-features {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    justify-content: center;
}

.tour-welcome-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    min-width: 100px;
}

.tour-welcome-feature i {
    font-size: 20px;
    color: #6B5B95;
}

.tour-welcome-feature span {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.tour-welcome-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
