/* ==========================================
   ACCOUNTING SYSTEM - INTERACTIVE ONBOARDING TOUR & HELP GUIDE
   High aesthetic, responsive, multi-language tour stylesheet
   ========================================== */

/* Spotlight Overlay Container */
.tour-backdrop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99980;
    pointer-events: auto;
    transition: opacity 0.3s ease;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
}

/* Highlight Cutout Ring around Target Element */
.tour-highlight-box {
    position: absolute;
    z-index: 99985;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.70), 
                0 0 20px 4px rgba(13, 110, 253, 0.6);
    border: 2px solid #0d6efd;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    animation: tourPulse 2s infinite ease-in-out;
}

@keyframes tourPulse {
    0% {
        box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.70), 
                    0 0 12px 2px rgba(13, 110, 253, 0.4);
    }
    50% {
        box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.70), 
                    0 0 24px 8px rgba(13, 110, 253, 0.8);
    }
    100% {
        box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.70), 
                    0 0 12px 2px rgba(13, 110, 253, 0.4);
    }
}

/* Tooltip Card */
.tour-tooltip-card {
    position: absolute;
    z-index: 99990;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 20px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    animation: tourCardFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tourCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tour-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tour-step-badge {
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tour-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.tour-close-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}

.tour-tooltip-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.tour-tooltip-body {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 16px;
}

.tour-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.tour-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tour-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.tour-btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.tour-btn-primary {
    background: #0d6efd;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.tour-btn-primary:hover {
    background: #0b5ed7;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.tour-btn-finish {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tour-btn-finish:hover {
    background: #059669;
}

/* Floating Action Button (?) Bottom Right */
.tour-floating-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99950;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 10px 25px -5px rgba(13, 110, 253, 0.5),
                0 0 0 2px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    border: none;
}

.tour-floating-fab:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 30px -5px rgba(13, 110, 253, 0.6),
                0 0 0 3px rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.tour-floating-fab i {
    font-size: 1.15rem;
}

.tour-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: fabBadgePulse 2s infinite;
}

@keyframes fabBadgePulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Floating FAB Dropup Menu */
.tour-fab-menu {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 99960;
    width: 280px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 4px;
    animation: menuSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tour-fab-menu.show {
    display: flex;
}

@keyframes menuSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.tour-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #1e293b;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.tour-menu-item:hover {
    background: #f1f5f9;
    color: #0d6efd;
}

.tour-menu-item i {
    font-size: 1.1rem;
    color: #0d6efd;
}

/* Prompt Banner Modal for New Visitors */
.tour-welcome-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99970;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.tour-welcome-card {
    background: #ffffff;
    border-radius: 20px;
    width: 480px;
    max-width: 100%;
    padding: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    animation: tourModalZoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tourModalZoom {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.tour-welcome-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px auto;
}

.tour-welcome-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.tour-welcome-desc {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.tour-welcome-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* User Guide Slide Modal */
.tour-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99975;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.tour-guide-content {
    background: #ffffff;
    border-radius: 20px;
    width: 650px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    position: relative;
    padding: 28px;
    animation: tourModalZoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tour-guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.tour-guide-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-slide-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tour-slide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

.tour-slide-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-slide-body {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}
