/* 
 * Default styles for Voxel webhook buttons
 * No !important rules - custom classes can override these styles easily
 */
.voxel-webhook-btn {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
    box-sizing: border-box;
    vertical-align: top;
}

.voxel-webhook-btn:hover {
    background: #005a87;
    color: white;
}

.voxel-webhook-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.voxel-webhook-btn:disabled:hover {
    background: #ccc;
}

/* Result messages */
.voxel-webhook-result {
    margin-top: 10px;
}

.voxel-webhook-success {
    color: #46b450;
    padding: 10px;
    background: #f7fff7;
    border: 1px solid #46b450;
    border-radius: 3px;
    font-size: 14px;
}

.voxel-webhook-error {
    color: #dc3232;
    padding: 10px;
    background: #ffeaea;
    border: 1px solid #dc3232;
    border-radius: 3px;
    font-size: 14px;
}

/* Button variations */
.voxel-webhook-btn.btn-success {
    background: #46b450;
}

.voxel-webhook-btn.btn-success:hover {
    background: #2f7d32;
}

.voxel-webhook-btn.btn-warning {
    background: #f56c6c;
}

.voxel-webhook-btn.btn-warning:hover {
    background: #f34343;
}

.voxel-webhook-btn.btn-danger {
    background: #dc3232;
}

.voxel-webhook-btn.btn-danger:hover {
    background: #b52727;
}

.voxel-webhook-btn.btn-secondary {
    background: #6c757d;
}

.voxel-webhook-btn.btn-secondary:hover {
    background: #545b62;
}

/* Small button */
.voxel-webhook-btn.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Large button */
.voxel-webhook-btn.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

/* Loading animation */
.voxel-webhook-btn.loading {
    position: relative;
}

.voxel-webhook-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .voxel-webhook-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    .voxel-webhook-result {
        font-size: 14px;
    }
}

/* Integration with common WordPress themes */
.wp-block-button .voxel-webhook-btn {
    padding: .667em 1.333em;
    font-size: 1.125em;
    border-radius: 0;
}

/* Integration with Elementor */
.elementor-widget .voxel-webhook-btn {
    font-family: inherit;
}

/* Focus styles for accessibility */
.voxel-webhook-btn:focus {
    outline: 2px solid #005a87;
    outline-offset: 2px;
}

.voxel-webhook-btn:focus:not(:focus-visible) {
    outline: none;
}

.voxel-webhook-btn:focus-visible {
    outline: 2px solid #005a87;
    outline-offset: 2px;
}

/* 
 * Example custom styles - you can override these or create your own
 * Usage: [voxel_webhook_button config_id="..." button_class="my-custom-btn"]
 */

/* Example: Red danger button */
.danger-btn {
    background: #dc3545;
    border: 1px solid #dc3545;
    padding: 12px 24px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.danger-btn:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Example: Green success button */
.success-btn {
    background: #28a745;
    border: 1px solid #28a745;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.success-btn:hover {
    background: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Example: Minimal flat button */
.flat-btn {
    background: transparent;
    color: #007cba;
    border: 2px solid #007cba;
    padding: 8px 16px;
    font-weight: 600;
    text-transform: none;
}

.flat-btn:hover {
    background: #007cba;
    color: white;
}

/* Example: Large call-to-action button */
.cta-btn {
    background: linear-gradient(45deg, #007cba, #005a87);
    border: none;
    border-radius: 8px;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    box-shadow: 0 4px 15px rgba(0,124,186,0.3);
}

.cta-btn:hover {
    background: linear-gradient(45deg, #005a87, #007cba);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,124,186,0.4);
}