/* Guided Tour Styles */

/* Shepherd.js Theme Customization */
.shepherd-theme-custom {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid #e2e8f0;
}

.shepherd-theme-custom .shepherd-content {
    padding: 0;
    border-radius: 12px;
}

.shepherd-theme-custom .shepherd-header {
    background: linear-gradient(135deg, #0078D4 0%, #00BCF2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.shepherd-theme-custom .shepherd-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.shepherd-theme-custom .shepherd-text {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
}

.shepherd-theme-custom .shepherd-footer {
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shepherd-theme-custom .shepherd-button {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shepherd-theme-custom .shepherd-button.btn-primary {
    background: #0078D4;
    color: white;
    border-color: #0078D4;
}

.shepherd-theme-custom .shepherd-button.btn-primary:hover {
    background: #106ebe;
    border-color: #106ebe;
}

.shepherd-theme-custom .shepherd-button.btn-secondary {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

.shepherd-theme-custom .shepherd-button.btn-secondary:hover {
    background: #e2e8f0;
    color: #475569;
}

.shepherd-theme-custom .shepherd-button.btn-success {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.shepherd-theme-custom .shepherd-button.btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.shepherd-theme-custom .shepherd-cancel-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    position: absolute;
    top: 12px;
    right: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.shepherd-theme-custom .shepherd-cancel-icon:hover {
    color: white;
}

/* Tour Content Styles */
.tour-welcome p,
.tour-step p,
.tour-complete p {
    margin-bottom: 12px;
}

.tour-welcome p:last-child,
.tour-step p:last-child,
.tour-complete p:last-child {
    margin-bottom: 0;
}

.tour-list {
    margin: 12px 0 0 16px;
    padding: 0;
}

.tour-list li {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.tour-checklist {
    margin: 12px 0 0 16px;
    padding: 0;
}

.tour-checklist li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #374151;
}

/* Element Highlighting */
.tour-highlight {
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.3) !important;
    border-radius: 8px !important;
    position: relative !important;
    z-index: 10001 !important;
    transition: all 0.3s ease !important;
}

/* Shepherd Modal Overlay */
.shepherd-modal-overlay-container {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shepherd-theme-custom {
        max-width: 90vw;
        margin: 10px;
    }
    
    .shepherd-theme-custom .shepherd-text {
        padding: 16px;
        font-size: 0.9rem;
    }
    
    .shepherd-theme-custom .shepherd-header {
        padding: 12px 16px;
    }
    
    .shepherd-theme-custom .shepherd-footer {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .shepherd-theme-custom .shepherd-button {
        width: 100%;
        justify-content: center;
    }
}

/* Tour Restart Button */
.tour-restart-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #0078D4 0%, #00BCF2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: none;
}

.tour-restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 212, 0.4);
}

.tour-restart-btn.show {
    display: block;
}

/* Animation for highlighted elements */
@keyframes tour-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 120, 212, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 120, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 120, 212, 0);
    }
}

.tour-highlight::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 8px;
    animation: tour-pulse 2s infinite;
}

/* Tour badge indicator */
.tour-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    animation: tour-pulse 2s infinite;
}

/* Custom tooltip for tour elements */
.tour-tooltip {
    position: absolute;
    background: #374151;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tour-tooltip.show {
    opacity: 1;
}

.tour-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #374151 transparent transparent transparent;
}
