.scan-area {
    margin-bottom: 20px;
}

.scan-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.scan-item.scanned {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.scan-item.active {
    border-color: #2196F3;
    background-color: #e3f2fd;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
    }
}

.scan-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.scan-icon {
    font-size: 24px;
    margin-right: 10px;
}

.scan-label {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.scan-status {
    margin-left: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ddd;
    transition: all 0.3s ease;
}

.scan-status.scanned {
    background-color: #4CAF50;
    animation: checkmark 0.5s ease;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.scan-status.scanned::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.scan-value {
    font-size: 20px;
    font-weight: bold;
    color: #4CAF50;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.scan-value.show {
    display: block;
}

.hidden-input {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

.waiting-message {
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
    padding: 8px;
}

.count-input {
    width: 100%;
    font-size: 24px;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #4CAF50;
    text-align: center;
}
