/* Walkthrough Styles - Professional and Modern */

/* Walkthrough Overlay */
.walkthrough-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.walkthrough-overlay.active {
    display: block;
    opacity: 1;
}

/* Walkthrough Spotlight */
.walkthrough-spotlight {
    position: absolute;
    border: 4px solid #1e3a5f;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 30px rgba(30, 58, 95, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 10000;
    backdrop-filter: brightness(1.5);
}

/* Walkthrough Tooltip */
.walkthrough-tooltip {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    max-width: 350px;
    z-index: 10002;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
    display: block;
}

.walkthrough-tooltip.active {
    opacity: 1;
    transform: scale(1);
}

/* Tooltip Arrow */
.walkthrough-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 12px solid transparent;
}

/* Arrow positions */
/* Arrow pointing UP - tooltip is below element */
.walkthrough-tooltip.arrow-up::before {
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: white;
    border-top-color: transparent;
}

/* Arrow pointing DOWN - tooltip is above element */
.walkthrough-tooltip.arrow-down::before {
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: white;
    border-bottom-color: transparent;
}

/* Arrow pointing LEFT - tooltip is to the right of element */
.walkthrough-tooltip.arrow-left::before {
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: white;
    border-left-color: transparent;
}

/* Arrow pointing RIGHT - tooltip is to the left of element */
.walkthrough-tooltip.arrow-right::before {
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: white;
    border-right-color: transparent;
}

/* Tooltip Content */
.walkthrough-tooltip-content {
    padding: 24px;
}

.walkthrough-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.walkthrough-tooltip-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.walkthrough-tooltip-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.walkthrough-tooltip-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.walkthrough-tooltip-description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 16px;
    line-height: 1.5;
}

.walkthrough-tooltip-content-text {
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Tooltip Actions */
.walkthrough-tooltip-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.walkthrough-tooltip-buttons {
    display: flex;
    gap: 8px;
}

.walkthrough-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.walkthrough-btn-primary {
    background: #1e3a5f;
    color: white;
}

.walkthrough-btn-primary:hover {
    background: #0056b3;
    color: white;
}

.walkthrough-btn-secondary {
    background: #6c757d;
    color: white;
}

.walkthrough-btn-secondary:hover {
    background: #545b62;
    color: white;
}

.walkthrough-btn-outline {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.walkthrough-btn-outline:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Progress Indicator */
.walkthrough-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.walkthrough-progress-dots {
    display: flex;
    gap: 4px;
}

.walkthrough-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dee2e6;
    transition: all 0.2s ease;
}

.walkthrough-progress-dot.active {
    background: #1e3a5f;
}

.walkthrough-progress-dot.completed {
    background: #28a745;
}

/* Skip Button */
.walkthrough-skip {
    color: #6c757d;
    font-size: 12px;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.walkthrough-skip:hover {
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .walkthrough-tooltip {
        max-width: 300px;
        margin: 0 16px;
    }
    
    .walkthrough-tooltip-content {
        padding: 20px;
    }
    
    .walkthrough-tooltip-title {
        font-size: 16px;
    }
    
    .walkthrough-tooltip-description,
    .walkthrough-tooltip-content-text {
        font-size: 13px;
    }
    
    .walkthrough-tooltip-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .walkthrough-tooltip-buttons {
        justify-content: center;
    }
}

/* Animation Classes */
.walkthrough-fade-in {
    animation: walkthroughFadeIn 0.3s ease;
}

.walkthrough-fade-out {
    animation: walkthroughFadeOut 0.3s ease;
}

@keyframes walkthroughFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes walkthroughFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Highlight Animation */
.walkthrough-highlight {
    animation: walkthroughPulse 2s infinite;
}

@keyframes walkthroughPulse {
    0% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 30px rgba(30, 58, 95, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3);
        border-color: #1e3a5f;
    }
    50% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 40px rgba(30, 58, 95, 1), inset 0 0 30px rgba(255, 255, 255, 0.5);
        border-color: #0099ff;
    }
    100% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 30px rgba(30, 58, 95, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3);
        border-color: #1e3a5f;
    }
}

/* Accessibility */
.walkthrough-tooltip:focus {
    outline: 2px solid #1e3a5f;
    outline-offset: 2px;
}

.walkthrough-btn:focus {
    outline: 2px solid #1e3a5f;
    outline-offset: 2px;
}

/* Enhanced visibility for navigation tabs during walkthrough */
.nav-tabs-container[style*="z-index: 10002"] .nav-link,
.nav-tabs-container[style*="z-index: 10002"] .nav-item {
    filter: brightness(1.5) !important;
    opacity: 1 !important;
}

.nav-tabs-container[style*="z-index: 10002"] .nav-link {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .walkthrough-tooltip {
        background: #2c3e50;
        color: white;
    }
    
    .walkthrough-tooltip-title {
        color: white;
    }
    
    .walkthrough-tooltip-description {
        color: #bdc3c7;
    }
    
    .walkthrough-tooltip-content-text {
        color: #ecf0f1;
    }
    
    .walkthrough-tooltip-close {
        color: #bdc3c7;
    }
    
    .walkthrough-tooltip-close:hover {
        background: #34495e;
        color: white;
    }
}

/* Hide walkthrough button on mobile devices */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}
