/* Tooltip and Modal Styles */

.issue-tooltip {
    position: absolute;
    background: rgba(45, 55, 72, 0.98);
    color: white;
    border-radius: 8px;
    padding: 15px;
    max-width: 400px;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 10000;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid #4a5568;
    backdrop-filter: blur(10px);
    animation: tooltipFadeIn 0.2s ease-out;
    pointer-events: auto;
    user-select: text;
}

.issue-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2d3748;
}

.tooltip-header {
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tooltip-category {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
}

.tooltip-message {
    margin-bottom: 10px;
    color: #e2e8f0;
}

.tooltip-suggestion {
    background: rgba(72, 187, 120, 0.2);
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
    border-left: 3px solid #48bb78;
}

.tooltip-suggestion-header {
    font-weight: bold;
    color: #68d391;
    margin-bottom: 4px;
    font-size: 12px;
}

.tooltip-actions {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #4a5568;
    display: flex;
    gap: 8px;
}

.tooltip-action-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tooltip-action-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

/* Modal Animations */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

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

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

/* Example Modal Enhancements */
.example-modal .example-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.example-modal .example-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: currentColor;
}

.example-modal .modal-close:hover {
    background: rgba(255,255,255,0.3) !important;
    transform: rotate(90deg);
}

/* Health Modal Styling */
.health-modal {
    animation: modalSlideIn 0.3s ease-out;
}

.health-modal .modal-close:hover {
    background: #3182ce !important;
    transform: translateY(-2px);
}