/* AttentionVerify Frontend Styles */

#av-widget-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.av-container {
    margin-top: 80px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
    clear: both !important;
}

.av-container iframe {
    width: 100% !important;
    max-width: 100% !important;
} 

/* Video Container */
#av-video-container {
    position: relative;
    width: 100%;
    background: #000;
}

#av-video {
    width: 100%;
    display: block;
}

/* Camera Container */
#av-camera-container {
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 160px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #fff;
    background: #000;
}

#av-webcam {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

#av-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Status Bar */
#av-status-bar {
    background: rgba(0, 0, 0, 0.85);
    padding: 15px 20px;
    color: #fff;
}

/* Countdown */
#av-countdown {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    margin-bottom: 10px;
}

/* Progress Bar */
#av-progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 10px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
}

#av-progress-fill {
    background: linear-gradient(90deg, #00c851, #007bff);
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Message */
#av-message {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    min-height: 20px;
}

/* Reward Container */
#av-reward-container {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 30px;
    text-align: center;
    color: #fff;
}

#av-coupon-display {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #00c851;
    background: rgba(0, 200, 81, 0.1);
    border: 2px dashed #00c851;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

/* Watermark */
.av-watermark {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}

.av-watermark a {
    color: #00c851;
    text-decoration: none;
}

/* Upgrade Button */
.av-upgrade-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    margin-top: 15px;
    transition: transform 0.2s ease;
}

.av-upgrade-btn:hover {
    transform: scale(1.05);
    color: #fff !important;
}

/* Upgrade Prompt */
#av-upgrade-prompt {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 20px;
    text-align: center;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Error Message */
.av-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px 20px;
    color: #856404;
    font-size: 14px;
}

/* Responsive */
@media ( max-width: 600px ) {
    #av-camera-container {
        width: 100px;
        height: 75px;
        bottom: 60px;
        right: 10px;
    }

    #av-coupon-display {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .av-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}