/* Webboll Contact Manager — Frontend */
.wcm-wrapper {
    display: flex;
    align-items: center;
    z-index: 9999;
}
.wcm-fixed  { position: fixed; }
.wcm-static { position: relative; display: inline-flex; }
.wcm-vertical   { flex-direction: column; }
.wcm-horizontal { flex-direction: row; }

.wcm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,.18);
    transition: transform .2s ease, box-shadow .2s ease;
    padding: 0 16px;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}
.wcm-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,.25);
    text-decoration: none !important;
    color: inherit !important;
}
.wcm-btn:active { transform: translateY(-1px) scale(1.02); }

.wcm-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wcm-icon svg { width: 100%; height: 100%; fill: currentColor; }
.wcm-label { font-weight: 600; }

/* Pulse */
.wcm-pulse { position: relative; }
.wcm-pulse::before {
    content: ''; position: absolute; inset: 0;
    border-radius: inherit; background: inherit;
    animation: wcm-pulse 2s ease-out infinite;
    pointer-events: none;
}
@keyframes wcm-pulse {
    0%   { transform: scale(1); opacity: .7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Animations */
.wcm-anim-bounce { animation: wcm-bounce 2.5s ease infinite; animation-delay: 1s; }
@keyframes wcm-bounce {
    0%,20%,50%,80%,100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}
.wcm-anim-bounce:hover { animation: none; }

.wcm-anim-pulse { animation: wcm-scale-pulse 1.5s ease-in-out infinite; }
@keyframes wcm-scale-pulse {
    0%,100% { transform: scale(1); }
    50%     { transform: scale(1.07); }
}

.wcm-anim-shake { animation: wcm-shake 3s ease infinite; animation-delay: 2s; }
@keyframes wcm-shake {
    0%,90%,100% { transform: rotate(0); }
    92% { transform: rotate(-10deg); }
    94% { transform: rotate(10deg); }
    96% { transform: rotate(-8deg); }
    98% { transform: rotate(8deg); }
}

.wcm-anim-tada { animation: wcm-tada 3.5s ease infinite; animation-delay: 2s; }
@keyframes wcm-tada {
    0%,85%,100% { transform: scale(1) rotate(0); }
    87% { transform: scale(.9) rotate(-3deg); }
    89%,93%,97% { transform: scale(1.1) rotate(3deg); }
    91%,95%,99% { transform: scale(1.1) rotate(-3deg); }
}

/* Tooltip */
.wcm-btn[data-tooltip] { position: relative; }
.wcm-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    background: rgba(0,0,0,.8); color: #fff;
    padding: 5px 10px; border-radius: 6px;
    font-size: 12px; font-weight: 500;
    white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity .2s, transform .2s;
    z-index: 10000;
}
.wcm-wrapper[style*="right"] .wcm-btn[data-tooltip]::after {
    right: calc(100% + 10px); top: 50%;
    transform: translateY(-50%) translateX(5px);
}
.wcm-wrapper[style*="left"] .wcm-btn[data-tooltip]::after {
    left: calc(100% + 10px); top: 50%;
    transform: translateY(-50%) translateX(-5px);
}
.wcm-btn[data-tooltip]:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* Mobile: hide labels */
@media (max-width: 480px) {
    .wcm-label { display: none; }
    .wcm-btn   { padding: 0; }
}
