/* DirectChat Floating Button Styles - Version 1.0.5 */

.dcfbbtn-wrapper {
    position: fixed;
    bottom: 25px;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    opacity: 0;
    transform: translateY(50px);
    animation: dcfbbtnSlideUp 0.5s forwards 1s;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dcfbbtn-wrapper:hover {
    transform: translateY(-3px);
}

.dcfbbtn-right {
    right: 20px;
    flex-direction: row;
}

.dcfbbtn-left {
    left: 20px;
    flex-direction: row-reverse;
}

.dcfbbtn-main {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.dcfbbtn-wrapper:hover .dcfbbtn-main {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.dcfbbtn-main svg {
    width: 34px;
    height: 34px;
    fill: #ffffff;
    position: relative;
    z-index: 2;
}

.dcfbbtn-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    z-index: 1;
    animation: dcfbbtnPulseEffect 2s infinite;
}

.dcfbbtn-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.dcfbbtn-tooltip {
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
    opacity: 0;
    animation: dcfbbtnFadeIn 0.3s forwards 1.5s;
}

/* Animations */
@keyframes dcfbbtnSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dcfbbtnPulseEffect {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes dcfbbtnFadeIn {
    to {
        opacity: 1;
    }
}

/* Visibility Controls */
@media (min-width: 769px) {
    .dcfbbtn-v-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .dcfbbtn-v-desktop {
        display: none !important;
    }
    
    .dcfbbtn-wrapper {
        bottom: 20px;
    }
    
    .dcfbbtn-right {
        right: 15px;
    }
    
    .dcfbbtn-left {
        left: 15px;
    }
    
    .dcfbbtn-main {
        width: 55px;
        height: 55px;
    }
    
    .dcfbbtn-main svg {
        width: 30px;
        height: 30px;
    }
    
    .dcfbbtn-tooltip {
        font-size: 13px;
        padding: 8px 14px;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .dcfbbtn-main {
        box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .dcfbbtn-wrapper {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .dcfbbtn-pulse {
        animation: none;
        display: none;
    }
    
    .dcfbbtn-tooltip {
        animation: none;
        opacity: 1;
    }
    
    .dcfbbtn-wrapper:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .dcfbbtn-wrapper {
        display: none !important;
    }
}