@keyframes scan-animate {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 180, 255, 0.4), 0 0 20px rgba(0, 180, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 180, 255, 0.8), 0 0 40px rgba(0, 180, 255, 0.5);
    }
}

.scanner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    background: var(--dark-linear);
    border-radius: 12px;
    animation: glow-pulse 3s infinite ease-in-out;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.scanner-area {
    position: relative;
    width: 300px;
    height: 200px;
    background: var(--dark-linear);
    box-shadow: 0 0 10px var(--light);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, transparent, var(--info), transparent);
    box-shadow: 0 0 10px var(--light);
    animation: scan-animate 2s infinite linear;
    transform-origin: top;
}

.rfid-tag {
    font-size: 80px;
    color: var(--light);
    text-shadow: 0 0 10px var(--info);
    transition: opacity 0.3s ease;
}

.scan-status {
    color: var(--light);
    font-weight: bold;
    margin-top: 10px;
    text-shadow: 0 0 5px var(--info);
    min-height: 25px;
    text-align: center;
}

.welcome-text {
    color: var(--info);
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    animation: fadeIn 0.8s ease;
    padding: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .scanner-area {
        width: 90%;
        height: 150px;
    }
    .rfid-tag {
        font-size: 60px;
    }
    .welcome-text {
        font-size: 1rem;
    }
}