/**
 * ALTCHA - Privacy-friendly CAPTCHA Styles
 */
.altcha-widget {
    display: inline-block;
    margin: 10px 0;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    text-align: center;
    transition: all 0.3s ease;
}

.altcha-widget:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.altcha-widget button {
    background: #007bff !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    width: auto !important;
}

.altcha-widget button:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-1px);
}

.altcha-widget button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.altcha-widget button.solved {
    background: #28a745;
}

.altcha-widget button.solved:hover {
    background: #1e7e34;
}

.altcha-widget .altcha-status {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.altcha-widget .altcha-status.solved {
    color: #28a745;
    font-weight: 500;
}

.altcha-widget input[type="hidden"] {
    display: none;
}

/* Loading animation */
.altcha-widget button:disabled::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: altcha-spin 1s ease-in-out infinite;
}

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

/* Responsive design */
@media (max-width: 480px) {
    .altcha-widget {
        padding: 10px;
    }
    
    .altcha-widget button {
        padding: 8px 16px;
        font-size: 13px;
    }
}