@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

.webhook-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-family: 'Outfit', sans-serif;
}

.beautiful-webhook-button {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    color: white;
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    box-shadow: 0 25px 60px rgba(168, 85, 247, 0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
    z-index: 1;
}

.beautiful-webhook-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
    z-index: -1;
    transition: opacity 0.3s ease;
}

.beautiful-webhook-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 30px 60px rgba(168, 85, 247, 0.6);
}

.beautiful-webhook-button:active {
    transform: scale(0.95);
}

.button-content {
    transition: all 0.3s ease;
}

.beautiful-webhook-button.loading .button-content {
    opacity: 0;
    transform: translateY(-20px);
}

.button-loader {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(168, 85, 247, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
    }
}

.beautiful-webhook-button:not(.loading) {
    animation: pulse 2s infinite;
}

.webhook-message {
    margin-top: 25px;
    font-size: 18px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    height: 20px;
}

.webhook-message.show {
    opacity: 1;
    transform: translateY(0);
}

.webhook-message.success {
    color: #10b981;
}

.webhook-message.error {
    color: #ef4444;
}

/* Glassmorphism background circle */
.webhook-button-container::after {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.beautiful-webhook-button.pressed {
    animation: buttonPress 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1.2);
    cursor: not-allowed;
}

@keyframes buttonPress {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.beautiful-webhook-button:disabled {
    opacity: 0.8;
    filter: grayscale(0.3);
    cursor: not-allowed;
    animation: none;
}