/* Guided Tour Styles */

/* Tour Overlay */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999998;
    pointer-events: none;
}

.tour-overlay-svg {
    width: 100%;
    height: 100%;
}

#tour-spotlight {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tour Tooltip */
.tour-tooltip {
    position: fixed;
    z-index: 999999;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    min-width: 320px;
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
}

.tour-tooltip.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.tour-tooltip-center {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 500px;
}

.tour-tooltip-center.show {
    transform: translate(-50%, -50%) scale(1);
}

/* Tooltip Arrows */
.tour-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.tour-tooltip-top::before {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: white;
}

.tour-tooltip-bottom::before {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: white;
}

.tour-tooltip-left::before {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: white;
}

.tour-tooltip-right::before {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: white;
}

/* Progress Bar */
.tour-progress {
    height: 4px;
    background: #e9ecef;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.tour-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    transition: width 0.4s ease;
}

/* Tour Content */
.tour-content {
    padding: 24px;
}

.tour-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.tour-title {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 12px;
}

.tour-description {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

.tour-tip {
    margin-top: 16px;
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 14px;
    color: #856404;
}

.tour-tip i {
    color: #ffc107;
    margin-right: 8px;
}

/* Tour Footer */
.tour-footer {
    padding: 16px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-step-counter {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.tour-buttons {
    display: flex;
    gap: 8px;
}

/* Tour Buttons */
.tour-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.tour-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tour-btn:active {
    transform: translateY(0);
}

.tour-btn-skip {
    background: transparent;
    color: #6c757d;
    padding: 8px 12px;
}

.tour-btn-skip:hover {
    background: #f8f9fa;
    color: #495057;
    transform: none;
    box-shadow: none;
}

.tour-btn-prev {
    background: #e9ecef;
    color: #495057;
}

.tour-btn-prev:hover {
    background: #dee2e6;
}

.tour-btn-next {
    background: #0d6efd;
    color: white;
}

.tour-btn-next:hover {
    background: #0b5ed7;
}

.tour-btn-finish {
    background: #198754;
    color: white;
}

.tour-btn-finish:hover {
    background: #157347;
}

/* Welcome Dialog */
.tour-welcome-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tour-welcome-dialog.show {
    opacity: 1;
}

.tour-welcome-content {
    background: white;
    border-radius: 16px;
    max-width: 560px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tour-welcome-header {
    padding: 40px 40px 24px;
    text-align: center;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.tour-welcome-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tour-welcome-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tour-welcome-header p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

.tour-welcome-body {
    padding: 32px 40px;
}

.tour-welcome-body > p {
    font-size: 16px;
    color: #495057;
    margin-bottom: 20px;
    text-align: center;
}

.tour-welcome-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tour-welcome-features li {
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #495057;
    transition: all 0.2s ease;
}

.tour-welcome-features li:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.tour-welcome-features li i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.tour-welcome-footer {
    padding: 24px 40px 32px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.tour-welcome-footer .btn {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
}

/* Completion Message */
.tour-completion-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tour-completion-message.show {
    opacity: 1;
}

.tour-completion-content {
    background: white;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    max-width: 480px;
    animation: celebrate 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes celebrate {
    0% {
        transform: scale(0.5) rotate(-5deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.tour-completion-icon {
    font-size: 80px;
    color: #ffc107;
    margin-bottom: 24px;
    animation: trophy 1s ease-in-out infinite alternate;
}

@keyframes trophy {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.tour-completion-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 16px;
}

.tour-completion-content p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 12px;
}

/* Tour Help Button in Footer */
.tour-help-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.tour-help-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(13, 110, 253, 0.6);
}

.tour-help-button:active {
    transform: scale(0.95);
}

/* Pulse animation for help button */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 16px rgba(13, 110, 253, 0.4);
    }
    50% {
        box-shadow: 0 4px 24px rgba(13, 110, 253, 0.6), 0 0 0 8px rgba(13, 110, 253, 0.1);
    }
    100% {
        box-shadow: 0 4px 16px rgba(13, 110, 253, 0.4);
    }
}

.tour-help-button.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tour-tooltip {
        max-width: 90%;
        min-width: 280px;
    }
    
    .tour-welcome-content {
        width: 95%;
        max-width: none;
    }
    
    .tour-welcome-header,
    .tour-welcome-body,
    .tour-welcome-footer {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .tour-completion-content {
        padding: 32px 24px;
        width: 90%;
    }
    
    .tour-help-button {
        width: 48px;
        height: 48px;
        font-size: 20px;
        bottom: 16px;
        right: 16px;
    }
}
