/**
 * Guided Tours Custom Styling
 * Windows 11 Fluent Design theme for Shepherd.js tours
 */

/* Custom Shepherd Theme */
.shepherd-theme-arrows {
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(16px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    max-width: 400px !important;
}

.shepherd-theme-arrows .shepherd-content {
    padding: 1.5rem !important;
    border-radius: 12px !important;
}

.shepherd-theme-arrows .shepherd-header {
    border-bottom: 1px solid #e9ecef !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
}

.shepherd-theme-arrows .shepherd-title {
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    color: #2c3e50 !important;
    margin: 0 !important;
}

.shepherd-theme-arrows .shepherd-text {
    color: #495057 !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
}

.shepherd-theme-arrows .shepherd-text p {
    margin-bottom: 0.75rem !important;
}

.shepherd-theme-arrows .shepherd-text p:last-child {
    margin-bottom: 0 !important;
}

/* Enhanced content styling */
.shepherd-welcome,
.shepherd-completion {
    text-align: left;
}

.shepherd-welcome ul,
.shepherd-completion ul {
    margin: 0.5rem 0 !important;
    padding-left: 1.5rem !important;
}

.shepherd-welcome li,
.shepherd-completion li {
    margin-bottom: 0.25rem !important;
    color: #495057 !important;
}

/* Footer buttons */
.shepherd-theme-arrows .shepherd-footer {
    border-top: 1px solid #e9ecef !important;
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
}

.shepherd-theme-arrows .shepherd-button {
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
}

.shepherd-theme-arrows .shepherd-button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Modal overlay */
.shepherd-modal-overlay-container {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(4px) !important;
}

.shepherd-target-highlighted {
    border-radius: 8px !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25) !important;
    transition: all 0.3s ease !important;
}

/* Arrow styling */
.shepherd-theme-arrows .shepherd-arrow:before {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* Cancel button */
.shepherd-theme-arrows .shepherd-cancel-icon {
    color: #6c757d !important;
    transition: color 0.2s ease !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

.shepherd-theme-arrows .shepherd-cancel-icon:hover {
    color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.1) !important;
}

/* Progress indicator */
.shepherd-theme-arrows .shepherd-progress {
    position: absolute;
    bottom: -8px;
    left: 1.5rem;
    right: 1.5rem;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.shepherd-theme-arrows .shepherd-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #0056b3);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Step indicators for multi-step tours */
.shepherd-theme-arrows .shepherd-step-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.shepherd-theme-arrows .shepherd-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dee2e6;
    transition: all 0.2s ease;
}

.shepherd-theme-arrows .shepherd-step-dot.active {
    background: #0d6efd;
    transform: scale(1.25);
}

.shepherd-theme-arrows .shepherd-step-dot.completed {
    background: #28a745;
}

/* Special content styling */
.tour-highlight {
    background: linear-gradient(135deg, #fff3cd, #fef5e7);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.75rem 0;
}

.tour-warning {
    background: linear-gradient(135deg, #f8d7da, #f5c2c7);
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.75rem 0;
}

.tour-tip {
    background: linear-gradient(135deg, #d1ecf1, #b6e0e8);
    border: 1px solid #17a2b8;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.75rem 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .shepherd-theme-arrows {
        max-width: 300px !important;
        margin: 0 1rem !important;
    }
    
    .shepherd-theme-arrows .shepherd-content {
        padding: 1rem !important;
    }
    
    .shepherd-theme-arrows .shepherd-title {
        font-size: 1rem !important;
    }
    
    .shepherd-theme-arrows .shepherd-text {
        font-size: 0.875rem !important;
    }
    
    .shepherd-theme-arrows .shepherd-button {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    .shepherd-theme-arrows .shepherd-footer {
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }
}

/* Animation enhancements */
.shepherd-theme-arrows {
    animation: shepherdFadeIn 0.3s ease-out;
}

@keyframes shepherdFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Pulse effect for highlighted elements */
.shepherd-target-highlighted {
    animation: shepherdPulse 2s infinite;
}

@keyframes shepherdPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(13, 110, 253, 0.15);
    }
}

/* Tour alert styling */
.tour-alert {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(16px) !important;
}

.tour-alert .btn-close {
    filter: brightness(0.8);
}

/* Loading state for tours */
.shepherd-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.shepherd-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Success/completion styling */
.shepherd-theme-arrows .shepherd-success-icon {
    color: #28a745;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.shepherd-theme-arrows .shepherd-completion-content {
    text-align: center;
    padding: 1rem 0;
}

.shepherd-theme-arrows .shepherd-completion-title {
    color: #28a745;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Interactive elements indicators */
.tour-interactive-hint {
    display: inline-flex;
    align-items: center;
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.tour-interactive-hint i {
    margin-right: 0.25rem;
}

/* Z-index management */
.shepherd-modal-overlay-container {
    z-index: 9998 !important;
}

.shepherd-theme-arrows {
    z-index: 9999 !important;
}