/* ============================================
   STAFF PORTAL HINT TOOLTIP - STANDALONE
   Clean, creative design with visual connection
   ============================================ */

.staff-portal-hint-tooltip {
    position: fixed;
    top: 65px;
    right: 95px;
    background: #ffffff;
    color: #495057;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(74, 108, 247, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: hintSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Pulsing arrow pointing to button */
.staff-portal-hint-tooltip::before {
    content: '↑';
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 15px;
    color: #4a6cf7;
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-4px);
        opacity: 0.6;
    }
}

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

.staff-portal-hint-tooltip .hint-icon {
    font-size: 18px;
    line-height: 1;
    animation: iconWave 2s ease-in-out infinite;
}

@keyframes iconWave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

.staff-portal-hint-tooltip .hint-text {
    font-size: 13px;
    line-height: 1.4;
    color: #495057;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.staff-portal-hint-tooltip .hint-dismiss {
    background: #f1f3f5;
    border: none;
    color: #6c757d;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

.staff-portal-hint-tooltip .hint-dismiss:hover {
    background: #e9ecef;
    transform: scale(1.1) rotate(90deg);
}

.staff-portal-hint-tooltip .hint-dismiss:active {
    transform: scale(0.9);
}

.staff-portal-hint-tooltip.dismissing {
    animation: hintFadeOut 0.3s ease-out forwards;
}

@keyframes hintFadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
}

/* Mobile - Bottom position */
@media (max-width: 768px) {
    .staff-portal-hint-tooltip {
        top: auto;
        bottom: 100px;
        left: 16px;
        right: 16px;
        white-space: normal;
    }

    .staff-portal-hint-tooltip::before {
        display: none;
    }
}