/* You can add any base styles here, but most positioning is handled by dynamic CSS in PHP */
/* For example, if you want to add a hover effect */
.idevelop-floating-circle-button:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Styles for the text label */
.idevelop-floating-circle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Ensure no underline on the button itself */
}

.idevelop-floating-circle-button-label {
    margin-left: 8px; /* Space between icon and text */
    font-size: 16px;
    color: #fff; /* Default text color */
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0; /* Initially hide the text */
    transition: max-width 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.idevelop-floating-circle-button:hover .idevelop-floating-circle-button-label {
    max-width: 200px; /* Adjust as needed to reveal text */
    opacity: 1;
}

/* Call-to-action text on hover (using a data attribute for content) */
.idevelop-floating-circle-button::before {
    content: attr(data-cta-text);
    position: absolute;
    bottom: 100%; /* Position above the button */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: 12px;
    pointer-events: none; /* Allow clicks to pass through */
}

.idevelop-floating-circle-button:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px); /* Move up slightly on hover */
}

/* Animation effects */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.idevelop-floating-circle-button.animate-pulse {
    animation: pulse 2s infinite;
}

.idevelop-floating-circle-button.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}