/**
 * Wizard Enhancements Styling
 * Additional styles for advanced wizard features
 */

/* Step Completion Notifications */
.wizard-step-completed-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1055;
    animation: slideInRight 0.4s ease;
}

.notification-content {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
}

.notification-content i {
    font-size: 1.5rem;
}

.notification-content .btn {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    padding: 4px 12px;
}

.notification-content .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

/* Dashboard Tour Styles */
.dashboard-tour-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 20px;
    max-width: 320px;
    border: 2px solid #4CAF50;
    animation: fadeInUp 0.3s ease;
}

.tour-content h6 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-content p {
    color: #4a5568;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.tour-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tour-progress {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

.tour-arrow {
    position: absolute;
    top: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #4CAF50;
}

.tour-arrow::after {
    content: '';
    position: absolute;
    top: 2px;
    left: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

/* Tour Highlighted Elements */
.tour-highlighted {
    position: relative;
    z-index: 1050;
    animation: tourHighlight 2s infinite;
    border-radius: 8px;
}

@keyframes tourHighlight {
    0% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.6); }
    50% { box-shadow: 0 0 30px rgba(76, 175, 80, 0.9); }
    100% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.6); }
}

/* Tour Completion Toast */
.tour-completion-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
    animation: slideInRight 0.5s ease, celebrate 0.6s ease 0.2s;
}

.tour-completion-toast .toast-content {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tour-completion-toast .toast-content i {
    font-size: 1.5rem;
}

.tour-completion-toast .toast-text strong {
    display: block;
    font-weight: 600;
}

.tour-completion-toast .toast-text small {
    opacity: 0.9;
    font-size: 0.85rem;
}

.tour-completion-toast .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    margin-left: auto;
}

/* Enhanced Tooltips */
.tooltip {
    font-size: 0.85rem;
}

.tooltip-inner {
    background: #2d3748;
    border-radius: 8px;
    padding: 8px 12px;
    max-width: 200px;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #2d3748;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #2d3748;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #2d3748;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #2d3748;
}

/* Keyboard Shortcuts Indicator */
.keyboard-shortcut-hint {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: rgba(45, 55, 72, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 1040;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

.keyboard-shortcut-hint kbd {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.75rem;
}

/* Mobile Responsiveness for Enhancements */
@media (max-width: 768px) {
    .wizard-step-completed-notification {
        right: 10px;
        left: 10px;
        top: 60px;
    }
    
    .notification-content {
        min-width: auto;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .dashboard-tour-modal {
        max-width: 280px;
        padding: 16px;
    }
    
    .tour-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .tour-completion-toast {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    .keyboard-shortcut-hint {
        display: none; /* Hide on mobile */
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .dashboard-tour-modal {
        background: #2d3748;
        border-color: #4CAF50;
    }
    
    .tour-content h6 {
        color: #e2e8f0;
    }
    
    .tour-content p {
        color: #a0aec0;
    }
    
    .tour-progress {
        color: #718096;
    }
    
    .tour-arrow::after {
        border-bottom-color: #2d3748;
    }
}

/* Smooth Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Focus States for Accessibility */
.floating-help-btn:focus,
.notification-content .btn:focus,
.tour-navigation .btn:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .notification-content,
    .dashboard-tour-modal {
        border: 3px solid #000;
    }
    
    .tour-highlighted {
        border: 3px solid #4CAF50;
    }
}