﻿
.tts-captcha-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
    z-index: 10;
}

.tts-captcha-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: captchaSpin 0.8s linear infinite;
    margin-bottom: 8px;
}

@keyframes captchaSpin {
    to {
        transform: rotate(360deg);
    }
}

.tts-captcha-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(170, 170, 170, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.tts-captcha-modal-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    position: relative;
    width: 340px;
    box-sizing: border-box;
    animation: captchaFadeIn 0.25s ease-in-out;
}

@keyframes captchaFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tts-captcha-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.tts-captcha-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.tts-captcha-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #94a3b8;
}

.tts-captcha-close-btn:hover {
    color: #ef4444;
}

.tts-captcha-wrapper {
    width: 300px;
    margin: 0 auto;
    user-select: none;
    font-family: Arial, sans-serif;
}

.tts-captcha-img-box {
    position: relative;
    width: 300px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    background: #f8fafc;
}

.tts-captcha-bg-img {
    width: 100%;
    height: 100%;
    display: block;
}

.tts-captcha-target-box {
    position: absolute;
    width: 42px;
    height: 42px;
    border: 2px dashed #ffffff;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8), inset 0 0 6px rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    box-sizing: border-box;
    display: none;
    pointer-events: none;
    z-index: 1;
}

.tts-captcha-slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 42px;
    box-shadow: 0 0 8px rgba(0,0,0,0.6);
    border: 1px solid #fff;
    border-radius: 4px;
    z-index: 2;
}

.tts-captcha-btn-refresh {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    z-index: 3;
}

.tts-captcha-btn-refresh:hover {
    background: rgba(0,0,0,0.7);
}

.tts-captcha-slider-track {
    position: relative;
    width: 100%;
    height: 40px;
    background: #f1f5f9;
    border-radius: 20px;
    margin-top: 12px;
    border: 1px solid #e2e8f0;
}

.tts-captcha-slider-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
    z-index: 4;
}

.tts-captcha-slider-btn svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.tts-captcha-slider-status {
    text-align: center;
    margin-top: 8px;
    min-height: 20px;
}

.tts-captcha-slider-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    transition: color 0.2s;
}

.tts-captcha-slider-btn:hover {
    background: #2563eb;
}