/* AI Vision HUD Styles */
.ai-vision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

/* Grid Overlay */
.ai-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(29, 233, 182, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 233, 182, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 1000px;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(20deg) scale(1.2);
    opacity: 0.3;
}

/* Scanning Line */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, transparent, var(--accent-green));
    opacity: 0.5;
    animation: scan 8s linear infinite;
    box-shadow: 0 0 10px var(--accent-green);
}

@keyframes scan {
    0% {
        top: -10%;
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

/* Bounding Boxes */
.detection-box {
    position: absolute;
    border: 2px solid var(--accent-green);
    box-shadow: 0 0 10px rgba(29, 233, 182, 0.3), inset 0 0 20px rgba(29, 233, 182, 0.1);
    background: rgba(29, 233, 182, 0.05);
    opacity: 0;
    transition: all 0.3s ease;
}

.detection-box::before,
.detection-box::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--accent-green);
    border-style: solid;
    transition: all 0.3s ease;
}

.detection-box::before {
    top: -2px;
    left: -2px;
    border-width: 2px 0 0 2px;
}

.detection-box::after {
    bottom: -2px;
    right: -2px;
    border-width: 0 2px 2px 0;
}

.detection-box.active {
    opacity: 1;
    transform: scale(1);
}

.detection-label {
    position: absolute;
    top: -25px;
    left: -2px;
    background: var(--accent-green);
    color: var(--bg-primary);
    font-size: 10px;
    font-family: 'Exo 2', monospace;
    font-weight: 700;
    padding: 2px 6px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(29, 233, 182, 0.4);
}

.confidence-meter {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.confidence-level {
    height: 100%;
    background: var(--accent-green);
    width: 0%;
    transition: width 1s ease-out;
}

/* HUD Corners */
.hud-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: rgba(29, 233, 182, 0.5);
    border-style: solid;
    pointer-events: none;
}

.top-left {
    top: 20px;
    left: 20px;
    border-width: 2px 0 0 2px;
}

.top-right {
    top: 20px;
    right: 20px;
    border-width: 2px 2px 0 0;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
    border-width: 0 0 2px 2px;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
    border-width: 0 2px 2px 0;
}

/* Status Text */
.hud-status {
    position: absolute;
    top: 25px;
    right: 70px;
    font-family: 'Exo 2', monospace;
    color: var(--accent-green);
    font-size: 12px;
    text-align: right;
    text-shadow: 0 0 5px rgba(29, 233, 182, 0.5);
    line-height: 1.4;
}

.status-line {
    opacity: 0.7;
}

.status-line.blink {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Data Stream */
.data-stream {
    position: absolute;
    bottom: 30px;
    left: 30px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: rgba(29, 233, 182, 0.6);
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.data-row {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ai-grid {
        background-size: 30px 30px;
    }

    .hud-status {
        font-size: 10px;
        right: 40px;
    }

    .data-stream {
        display: none;
        /* Hide dense data on mobile */
    }
}