/* Audio Captcha Styles */
.audio-captcha-container {
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 0;
    padding: 24px;
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.2);
    max-width: 400px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.audio-captcha-title {
    color: #00ffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.audio-captcha-title svg {
    width: 24px;
    height: 24px;
}

.audio-captcha-player {
    background: rgba(0, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: none;
}

.audio-captcha-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.audio-captcha-btn {
    background: transparent;
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 0;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
}

.audio-captcha-btn:hover {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.05);
    transform: none;
}

.audio-captcha-btn:active {
    transform: none;
}

.audio-captcha-btn:disabled {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.audio-captcha-btn svg {
    width: 18px;
    height: 18px;
}

.audio-captcha-btn-secondary {
    background: transparent;
    border-color: rgba(0, 255, 255, 0.15);
}

.audio-captcha-btn-secondary:hover {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.4);
}

.audio-captcha-input-group {
    margin-bottom: 16px;
}

.audio-captcha-label {
    display: block;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.audio-captcha-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0;
    background: rgba(10, 10, 15, 0.8);
    color: #e0e0e0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 4px;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.audio-captcha-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

.audio-captcha-input.error {
    border-color: #ff4444;
    animation: shake 0.5s;
}

.audio-captcha-input.success {
    border-color: #00ffff;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.audio-captcha-message {
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    text-align: center;
}

.audio-captcha-message.error {
    background: rgba(255, 50, 50, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 50, 50, 0.3);
}

.audio-captcha-message.success {
    background: rgba(0, 255, 255, 0.05);
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.audio-captcha-message.info {
    background: rgba(0, 255, 255, 0.05);
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.audio-captcha-message.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
    font-weight: 700;
    font-size: 16px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.audio-captcha-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #aaa;
    font-size: 14px;
    padding: 20px;
}

.audio-captcha-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 255, 0.1);
    border-top-color: #00ffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.audio-captcha-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    margin: 12px 0;
}

.audio-captcha-wave-bar {
    width: 4px;
    background: #00ffff;
    border-radius: 0;
    animation: wave 1s ease-in-out infinite;
}

.audio-captcha-wave-bar:nth-child(1) { animation-delay: 0s; }
.audio-captcha-wave-bar:nth-child(2) { animation-delay: 0.1s; }
.audio-captcha-wave-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-captcha-wave-bar:nth-child(4) { animation-delay: 0.3s; }
.audio-captcha-wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 10px; }
    50% { height: 30px; }
}

.audio-captcha-hidden {
    display: none;
}

.audio-captcha-instructions {
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Dark mode is default - no media query needed */

/* Mobile responsive */
@media (max-width: 480px) {
    .audio-captcha-container {
        padding: 20px;
        margin: 16px;
        border-radius: 0;
    }
    
    .audio-captcha-controls {
        flex-direction: column;
    }
    
    .audio-captcha-btn {
        width: 100%;
        justify-content: center;
    }
}
