/* Styles for Slider Captcha Widget */

/* �������й��ɺͶ���Ч�� */
.slider-captcha-widget *,
.slider-captcha-widget *::before,
.slider-captcha-widget *::after {
    transition: none !important;
    animation: none !important;
}

/* ������֤�뵯������ */
.slider-captcha-float-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-light, #f8fafc);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.2));
    width: 360px;
    max-width: 90vw;
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-captcha-float-panel.show {
    display: flex;
}

/* Container for the entire slider captcha assembly */
.slider-captcha-widget {
    margin: 15px 0;
    position: relative;
}

.slider-captcha-widget .slider-bg {
    position: relative;
    height: 40px;
    background-color: var(--bg-light, #f8fafc);
    border-radius: var(--radius-lg, 12px);
    line-height: 40px;
    text-align: center;
    user-select: none;
    overflow: hidden; /* Ensures mask stays within bounds */
    border: 1px solid var(--border-color, #e2e8f0);
}

.slider-captcha-widget .slider-text {
    position: absolute;
    width: 100%;
    color: var(--text-light, #4a5568);
    font-size: 14px;
    z-index: 1;
    pointer-events: none; /* Text should not interfere with dragging */
    font-weight: 500;
}

.slider-captcha-widget .slider-mask {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: var(--radius-lg, 12px);
    background: var(--primary-color, #3b7dd8);
    width: 0;
    z-index: 2;
}

.slider-captcha-widget .slider-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.slider-captcha-widget .slider-icon {
    color: var(--primary-color, #3b7dd8);
    font-weight: bold;
    font-size: 18px;
}

/* Verification result message styling */
.slider-captcha-widget .verification-result {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    min-height: 20px;
    padding: 6px 10px;
    border-radius: var(--radius-sm, 4px);
}

.slider-captcha-widget .verification-result.success-text {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color, #27ae60);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.slider-captcha-widget .verification-result.fail-text {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error-color, #e74c3c);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Debug info specific to slider (if used) */
.slider-captcha-widget .debug-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm, 4px);
    font-size: 12px;
    max-height: 150px;
    overflow-y: auto;
}

.slider-captcha-widget .debug-info h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.slider-captcha-widget .debug-info p {
    margin-bottom: 4px;
    word-break: break-all;
}
